Html To Image Update

Monday, October 5th, 2009

We  just released a new version of html to image.  A coupe of issues are fixed.
Please welcome download and try freely!

How to use proxy with Html2Image Liux:

Saturday, May 30th, 2009

Sometimes you may want to use html2image in an enviroment that needs to set proxy.
One of our customers shares his tip on this problem. here it is:

Configure the proxy options into ./html2image/greprefs/all.js.

Example below, this is the standard firefox proxy setting
pref(“network.proxy.autoconfig_url”,        “http://myProxy/myScript”);
pref(“network.proxy.type”,                  2);
If you have any comments on this solution, let us know!
 

How to capture html to image on x64 windows

Sunday, July 20th, 2008

X64 windows is becoming more and more polular platform. Htmlsnapshot component has supported html to image on windows x64 platform along with the industry trend.
There are mainly four x64 windows: XP x64,  Vista X64, Windows 2003 x64, Windows 2008 X64.  The first two are client platform while the last two are server version.
To convert html [...]

How to run html2image linux on Ubuntu64

Saturday, March 8th, 2008

Here is detailed example on how to use html2image linux on Ubuntu 64 bit (Ubuntu 7.10 – the Gutsy Gibbon)
This serves as a good example on how to use html2image. Other 64 bit Linux distribution can be done similarly.
1. Install Ubuntu 64
2. Login into the server (you can use the text mode login here. This [...]

convert html to image with htmlsnapshot in php

Saturday, March 1st, 2008

Here are a more complete examples of using htmlsnapshot to convert html to image with php on Windows.
Note the following things:
1. You copy/paste the below code into test.php and run on command line
   php.exe test.php
 2. Yon can see it uses GetErrorCode to handle errors to make your code more robust.
<?php
$url = “http://google.com/“;
$path = “.\\”;
$img = “1.jpg”;
$timg [...]

A handy script to convert html to image

Monday, February 11th, 2008

You may need to run a command line utility to convert html or url to image. Here is a handy script that converts url/html to image with our award winning htmlsnapshot product.
Save the below code into a script snapurl.vbs (Or you can find this script in htmlsnapshot\demo\vbscript)
set args = WScript.Arguments
num = args.Count
if num <> 2 then
   [...]

Capture silverlight web page into image

Thursday, February 7th, 2008

Silverlight is the new web authoring technology proposed by Microsoft. It is implemented as an ActiveX like the Flash.
It can be used to build interactive, vector based web pages.
To convert such web page into image, you can do it with our award winning htmlsnapshot product.

50 good wordpress plugin list

Tuesday, January 1st, 2008

Manage WordPress Comments

Subscribe To Comments – Allows readers to recieve notifications of new comments that are posted to an entry.
WP AJAX Edit Comments – Allows users and admins to edit comments on a post inline using AJAX.
Get Recent Comments – displays excerpts of the most recent comments and/or trackbacks that have been posted to the [...]

Convert html to multipage tiff file

Tuesday, December 25th, 2007

 Htmlsnapshot now supports converting html into multiple page tiff files. here is the sample code. You just need to specify the page width in pixel. The component will save the image into a multipage tif.
‘demo html to multipage tiff generation function
Set WshShell = WScript.CreateObject(“WScript.Shell”)
‘Declare object
Dim snap
Set snap = CreateObject(“HTMLSNAP2.HtmlSnap.1″)
snap.SetTimeOut CLng(200000)
snap.SnapUrl “http://www.google.com/“, “google.tiff”
‘Set CCITT3 encoding for [...]

SnapHtmlString wtih CSS

Saturday, November 24th, 2007

It is possibe to use html CSS sheet with SnapHtmlString when converting a html string to image.  The trick is to store the css in a local file and refer to it in the html string like below:
<link href=”file://c:/Styles.css” rel=”stylesheet” type=”text/css” />
Then you can use htmlsnapshot to capture the html string into image with the [...]