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

WatermarkHOffset Property

Gets/Sets watermark horizontal placement offset.

Property WatermarkHOffset(Index As Long) As Double

double get_WatermarkHOffset(int Index)
void set_WatermarkHOffset(int Index, double value)

double getWatermarkHOffset(int Index) throws PrinterException
void setWatermarkHOffset(int Index, double value) throws PrinterException

Type

Double (inches)

Parameters

Remarks

The value specified in WatermarkHPostion and WatermarkVPosition becomes the origin (0, 0).

Example Usage

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

oPDFSetting.Watermark(0) = True
oPDFSetting.WatermarkAngle(0) = 0
oPDFSetting.WatermarkFontSize(0) = 72

' place the text (two lines, center aligned)
' at 0.5 inch from the top-left corner

oPDFSetting.WatermarkText(0) = "SDK Sample" + vbCr + vbLf + "2nd Line"
oPDFSetting.WatermarkHPosition(0) = PRN_WMARK_HPOS_LEFT
oPDFSetting.WatermarkVPosition(0) = PRN_WMARK_VPOS_TOP
oPDFSetting.WatermarkTextAlignment(0) = PRN_WMARK_ALIGN_CENTER
oPDFSetting.WatermarkHOffset(0) = 0.5
oPDFSetting.WatermarkVOffset(0) = 0.5

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