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

WatermarkAngle Property

Gets/Sets watermark text rotation angle.

int get_WatermarkAngle(int Index)
void set_WatermarkAngle(int Index, int value)
Function get_WatermarkAngle(Index As Integer) As Integer
Sub set_WatermarkAngle(Index As Integer, value As Integer)
def getWatermarkAngle(self, Index)
def setWatermarkAngle(self, Index, value)
int getWatermarkAngle(int Index) throws PrinterException
void setWatermarkAngle(int Index, int value) throws PrinterException
function getWatermarkAngle($Index) 
function setWatermarkAngle($Index, $value) 
BclPrnResult GetWatermarkAngle(BclPrinter* pPrinter, int Index, int* poutVal);
BclPrnResult SetWatermarkAngle(BclPrinter* pPrinter, int Index, int newVal);
Property WatermarkAngle(Index As Long) As Long

bepprint +Watermark -angle <int>

Type

Long (degrees)

Parameters

Remarks

N/A.

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"