BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

HTMLPrintJob Object Description

This object is a specialized version of the PrintJob object. In addition to all the features from PrintJob, the HTMLPrintJob object includes numerous HTML-specific capabilities.

HTMLPrintJob is different than other PrintJob-derived objects, such as IEPrintJob, because it does not use the printer driver to convert HTML into PDF. HTMLPrintJob also retains the hyperlinks during conversion.

HTMLPrintJob ignores the following settings:

In addition, if PDF encryption is enabled (PDFSetting.Security = True), digital signature (PDFSetting.Signature) is ignored (disabled).

Note: HTMLPrintJob does not work on Windows XP or Server 2003. It requires Vista or Server 2008 or later.

Note: HTMLPrintJob will default to the ISO-8859-1 (ISO Latin 1) Encoding if none is specified in the HTML file itself. If you are dealing with Non-Latin Characters, please make sure the encoding is properly specified in the input html.

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")

Set oPrintJob = oPrinter.HTMLPrintJob

' Set document-specific HTML options
oPrintJob.PageWidth = 11.0
oPrintJob.PageHeight = 17.0
oPrintJob.PrintOut "C:\temp\input.htm", "C:\temp\output.pdf"

' Set document-specific HTML options
oPrintJob.PageWidth = 8.5
oPrintJob.PageHeight = 11.0
oPrintJob.PrintView = True
oPrintJob.PrintOut "C:\temp\input.htm", "C:\temp\output.pdf"