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

PDFSetting Property

Gets PDFSetting object.

PrintJobInfoPDFSetting PDFSetting { get; }
Property PDFSetting As PrintJobInfoPDFSetting ' ReadOnly
PrintJobInfoPDFSetting getPDFSetting()
BclPrintJobInfoPDFSetting* PDFSetting; /* read only */
Property PDFSetting As PrintJobInfoPDFSetting ' ReadOnly


IPDFSetting (read-only)


You can get the PDFSetting object from this property and get/set PDF conversion setting.

If you are not the owner of the print job, changes you make will be applied only if there is no other owner. There will be no owner if the print job was not started by the PrintOut method from one of the PrintJob objects (e.g., someone printing from application's "File"->"Print" menu).

Also, if there are multiple printer monitor instances running, the changes you have made may be overridden by other monitor instances.

Example Usage

' Declare variable with "WithEvents" keyword
Private WithEvents oJobMonitor As easyPDFPrinter.PrintJobMonitor

Private Function oJobMonitor_OnPrinterInit(ByVal uID As Long, ByVal JobInfo As easyPDFPrinter.PrintJobInfo) As Long
    Set oPDFSetting = JobInfo.PDFSetting
    oPDFSetting.Watermark = True
    oPDFSetting.WatermarkText = "Example"
    oJobMonitor_OnPrinterInit = PRN_MON_CONTINUE_CONVERSION
End Function

' ...

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.PrintJob
Set oJobMonitor = oPrinter.PrintJobMonitor
oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"