FAQ
Bookmarklets
Save page as PDF <- drag this to your bookmarks bar
I can't drag this link in Internet Explorer! Help!
If you really don't want to upgrade to Firefox, then follow the following instructions:
- Right click on the bookmarklet above and click on Add to Favorites...
- When warned you might be adding an un-safe link to your favorites, click Yes. All the link does is open a new page, and providing it the current page's URL.
- Click on Create in >> to reveal your bookmark folders
- Select the Links bookmark folder
- Click OK
Sample Code - using the web service
Sending a URL and getting a PDF in return - Method: Url2PdfDoc
Dim objHtm2Pdf As New htm2pdf.htm2pdf
Dim pdfBytes As Byte() = objHtm2Pdf.Url2PdfDoc("http://www.htm2pdf.co.uk/", "")
Dim objFileStream As System.IO.FileStream
objFileStream = New System.IO.FileStream("c:\apdf.pdf", System.IO.FileMode.Create)
objFileStream.Write(pdfBytes, 0, pdfBytes.Length)
objFileStream.Close()
Sending HTML and getting a PDF in return - Method: Htm2PdfDoc
Dim objHtm2Pdf As New htm2pdf.htm2pdf
Dim pdfBytes As Byte() = objHtm2Pdf.Htm2PdfDoc(WebBrowser1.DocumentText, "<your unique key here >")
Dim objFileStream As System.IO.FileStream
objFileStream = New System.IO.FileStream("c:\aDocument.pdf", System.IO.FileMode.Create)
objFileStream.Write(pdfBytes, 0, pdfBytes.Length)
objFileStream.Close()
Back to homepage