PublisherPrintJobEx supports two modes of operation: one printing-based (where easyPDF SDK's printer driver generates the PDF), and one export-based (where Publisher itself natively generates the PDF). This property determines which mode of operation is used.
This property is set to False by default. In this printing-based mode, the output PDF is created by the easyPDF SDK printer driver. PublisherPrintJobEx requires .NET 3.0 or higher plus XmlLite (which should install as part of Office 2007) when NativeOfficePDF is False.
When this property is set to True, then PublisherPrintJobEx operates in export-based mode, and the output is a native Publisher PDF, meaning Publisher directly creates the PDF without doing any printing.
Note on Behavior When NativeOfficePDF is True:
A special mention is warranted regarding how PublisherPrintJobEx behavior changes when NativeOfficePDF is True. Since the conversion never goes through any kind of printing process when NativeOfficePDF is True, any print-time options and settings will not apply. The implications include the following:
Set oPrinter = CreateObject("easyPDF.Printer.8") Set oPrintJob = oPrinter.PublisherPrintJobEx oPrintJob.NativeOfficePDF = True oPrintJob.PrintOut "C:\test\input.pub", "C:\test\output.pdf"
Dim oPrinter As Printer = CreateObject("easyPDF.Printer.8") Dim oPrintJob As PublisherPrintJobEx = oPrinter.PublisherPrintJobEx oPrintJob.NativeOfficePDF = True oPrintJob.PrintOut "C:\test\input.pub", "C:\test\output.pdf"
Printer oPrinter = new Printer(); PublisherPrintJobEx oPrintJob = oPrinter.PublisherPrintJobEx; oPrintJob.NativeOfficePDF = true; oPrintJob.PrintOut(@"C:\test\input.pub", @"C:\test\output.pdf");