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

NativeOfficePDF Property

PowerPointPrintJobEx supports two modes of operation: one printing-based (where easyPDF SDK's printer driver generates the PDF), and one export-based (where PowerPoint itself natively generates the PDF). This property determines which mode of operation is used.

bool NativeOfficePDF { get; set; }

Property NativeOfficePDF As Boolean

def getNativeOfficePDF(self)
def setNativeOfficePDF(self, value)
boolean getNativeOfficePDF() throws PrinterException
void setNativeOfficePDF(boolean value) throws PrinterException
function getNativeOfficePDF() 
function setNativeOfficePDF($value) 
BclPrnResult GetNativeOfficePDF(BclPrinter* pPrinter, BclBool* poutVal);
BclPrnResult SetNativeOfficePDF(BclPrinter* pPrinter, BclBool newVal);
Property NativeOfficePDF As Boolean

bepprint +PowerPoint -native
bepprint +PowerPoint -xps




This property is set to False by default. In this printing-based mode, the output PDF is created by the easyPDF SDK printer driver. PowerPointPrintJobEx 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 PowerPointPrintJobEx operates in export-based mode, and the output is a native PowerPoint PDF, meaning PowerPoint directly creates the PDF without doing any printing.

Note on Behavior When NativeOfficePDF is True:

A special mention is warranted regarding how PowerPointPrintJobEx 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:

Example Usage in VBScript

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.PowerPointPrintJobEx
oPrintJob.NativeOfficePDF = True
oPrintJob.PrintOut "C:\test\input.ppt", "C:\test\output.pdf"

Example Usage in VB.NET

Dim oPrinter As Printer = CreateObject("easyPDF.Printer.8")
Dim oPrintJob As PowerPointPrintJobEx = oPrinter.PowerPointPrintJobEx
oPrintJob.NativeOfficePDF = True
oPrintJob.PrintOut "C:\test\input.ppt", "C:\test\output.pdf"

Example Usage in C#

Printer oPrinter = new Printer();
PowerPointPrintJobEx oPrintJob = oPrinter.PowerPointPrintJobEx;
oPrintJob.NativeOfficePDF = true;
oPrintJob.PrintOut(@"C:\test\input.ppt", @"C:\test\output.pdf");