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

WatermarkZOrder Property

Gets/Sets watermark z-order placement setting.

Property WatermarkZOrder(Index As Long) As prnWmarkZOrder

prnWmarkZOrder get_WatermarkZOrder(int Index)
void set_WatermarkZOrder(int Index, prnWmarkZOrder value)

prnWmarkZOrder getWatermarkZOrder(int Index) throws PrinterException
void setWatermarkZOrder(int Index, prnWmarkZOrder value) throws PrinterException

Type

prnWmarkZOrder

Parameters

Remarks

Some application fills the entire background with white color before printing its contents. If you are printing from one of these applications, do not use PRN_WMARK_ZORDER_BOTTOM (place on bottom of z-order) since the watermark will be hidden underneath. Use PRN_WMARK_ZORDER_TOP (place on top of z-order) instead.

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.PrintJob
Set oPDFSetting = oPrintJob.PDFSetting

oPDFSetting.Watermark(0) = True
oPDFSetting.WatermarkAngle(0) = 60
oPDFSetting.WatermarkColor(0) = RGB(128, 128, 128)
oPDFSetting.WatermarkFirstPageOnly(0) = True
oPDFSetting.WatermarkFontName(0) = "Arial"
oPDFSetting.WatermarkFontSize(0) = 72
oPDFSetting.WatermarkOutlineOnly(0) = True
oPDFSetting.WatermarkText(0) = "SDK Sample"
oPDFSetting.WatermarkZOrder(0) = PRN_WMARK_ZORDER_TOP

oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"