How to Convert Html to Multi-page PDF with HtmlCapture V2.0?

 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

Leave a Reply

You must be logged in to post a comment.