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

WatermarkCount Property

Gets the maximum number of watermarks supported. Currently this is 4.

Property WatermarkCount As Long

int WatermarkCount

int getWatermarkCount() throws PrinterException

Type

Long (read-only)

Remarks

N/A.

Example Usage

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

wmarkCount = oPDFSetting.WatermarkCount

For I = 0 To (wmarkCount - 1)

    oPDFSetting.Watermark(I) = True
    oPDFSetting.WatermarkAngle(I) = 45 * I
    oPDFSetting.WatermarkColor(I) = RGB(128, 128, 128)
    oPDFSetting.WatermarkFirstPageOnly(I) = True
    oPDFSetting.WatermarkFontName(I) = "Arial"
    oPDFSetting.WatermarkFontSize(I) = 72
    oPDFSetting.WatermarkOutlineOnly(I) = True
    oPDFSetting.WatermarkText(I) = "Text " + CStr(I + 1)
    oPDFSetting.WatermarkZOrder(I) = PRN_WMARK_ZORDER_TOP

Next I

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