This object is a specialized version of the PrintJob object. In addition
to all the features from the PrintJob object, the
PublisherPrintJobEx object includes numerous Publisher
If you need to set Publisher specific options, use either PublisherPrintJobEx or PublisherPrintJob instead of the generalized PrintJob object. However, do not use this object for printing documents other than the ones Publisher can handle.
While PublisherPrintJobEx and PublisherPrintJob share some common properties, there are considerable differences between the two as well. Be sure to refer to the documentation to see which Publisher specific options each respective object supports. Of particular note is that PublisherPrintJobEx supports two considerably different modes of operation; see the NativeOfficePDF property for more information on this.
Be aware that PublisherPrintJobEx only works with Publisher 2007 or Publisher 2010. Note that Publisher 2007 requires the free "Save as PDF or XPS" add-in for Office 2007 to be installed. This add-in is available from Microsoft and does not install with easyPDF SDK. Publisher 2010 does not require any add-ins.
Furthermore, if NativeOfficePDF is False (its default value), then .NET 3.0 or higher plus XmlLite (XmlLite should install as part of Office 2007) are required to use PublisherPrintJobEx. If NativeOfficePDF is True, then this requirement does not apply.
Set oPrinter = CreateObject("easyPDF.Printer.8") Set oPrintJob = oPrinter.PublisherPrintJobEx ' Set Publisher specific option 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 ' Set Publisher specific option oPrintJob.NativeOfficePDF = True oPrintJob.PrintOut "C:\test\input.pub", "C:\test\output.pdf"
Printer oPrinter = new Printer(); PublisherPrintJobEx oPrintJob = oPrinter.PublisherPrintJobEx; // Set Publisher specific option oPrintJob.NativeOfficePDF = true; oPrintJob.PrintOut(@"C:\test\input.pub", @"C:\test\output.pdf");