Using HTmlCapture ActiveX 2.0, you can easily convert a webpage to multi-page PDF files.

//create HtmlCapture
var snap = new ActiveXObject("HtmlCapture.SnapShooter");
snap.SetRegInfo("username", "regcode"); //set your reg code here
snap.SetRenderingEngine("firefox"); //set firefox as default rendering engine

snap.CreatePDF("snapshot.pdf");

if(0 == snap.SnapUrl("http://www.google.com/“))
 snap.AddImageToPDF();

if(0 == snap.SnapUrl(”http://www.yahoo.com/“))
 snap.AddImageToPDF();

if(0 == snap.SnapUrl(”http://www.polestarsoft.com/“))
 snap.AddImageToPDF();

snap.ClosePDF();

//release the object
snap = null

HtmlCapture v2.0 Final Release!

December 25th, 2007

We are honored to announce that a new version of HtmlCapture ActiveX control (v2.0) has been released. New key features include:

  • Using not only MSIE but also Firefox as rendering engine
  • Save snapshot to PDF document
  • Set custom cookies, HTTP headers, credentials in a snap request
  • Take snapshots via a proxy server
  • etc

The new version is fully compatible with version 1.0. You can download the new version here