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

IExtendedEPrintJob Object Description

This object is a specialized version of the PrintJob object. In addition to all the features from PrintJob, the IEExtendedPrintJob object includes numerous Internet Explorer specific capabilities.
IEExtendedPrintJob is different than other PrintJob derived objects, such as IEPrintJob, because it does not use the printer driver to convert HTML into PDF. IEExtendedPrintJob also retains the hyperlinks during conversion.

The properties under IEExtendedSetting are Internet Explorer specific, system-wide options, which apply to all conversions. On the other hand, the rest of the properties under IEExtendedPrintJob apply to the current conversion only, allowing each document to be processed with its own settings. This behavior is compatible with multi-threaded mode.

Considerations for Internet Explorer 9 and Above

Beginning with Internet Explorer 9, Microsoft has deprecated and de-implemented vital functionality that was necessary for our HTML to PDF rendering. This affects IEExtendedPrintJob only. IEPrintJob continues to work well, because it is based on printer driver technology.

However, IEExtendedPrintJob no longer works as expected with Internet Explorer 9 and above. Often PDF documents come out as raster images, instead of lines and text.

We recommend that IEPrintJob or HTMLPrintJob is used instead of IEExtendedPrintJob.

Example Usage

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

Set oPrintJob = oPrinter.IEExtendedPrintJob
Set oIESetting = oPrintJob.IEExtendedSetting

' Set global IE specific option
oIESetting.DisableScriptDebugger = true
oIESetting.DisplayErrorDialogOnEveryError = false
' Save changes

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

' Set document-specific IE options
oPrintJob.PageWidth = 8.5
oPrintJob.PageHeight = 11.0
oPrintJob.ContentOrientation = PRN_CONTENT_ORIENT_VERTICAL
oPrintJob.PrintOut "C:\test\input.htm", "C:\test\output.pdf"