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

WatermarkOpacity Property

Gets/Sets watermark text opacity.

int get_WatermarkOpacity(int Index)
void set_WatermarkOpacity(int Index, int value)
Function get_WatermarkOpacity(Index As Integer) As Integer
Sub set_WatermarkOpacity(Index As Integer, value As Integer)
def getWatermarkOpacity(self, Index)
def setWatermarkOpacity(self, Index, value)
int getWatermarkOpacity(int Index) throws PrinterException
void setWatermarkOpacity(int Index, int value) throws PrinterException
function getWatermarkOpacity($Index) 
function setWatermarkOpacity($Index, $value) 
BclPrnResult GetWatermarkOpacity(BclPrinter* pPrinter, int Index, int* poutVal);
BclPrnResult SetWatermarkOpacity(BclPrinter* pPrinter, int Index, int newVal);
Property WatermarkOpacity(Index As Long) As Long

bepprint +Watermark -opacity <int>


Long (percent)



The allowed value range is from 0 (invisible) to 100 (fully visible).

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) = False
oPDFSetting.WatermarkText(0) = "SDK Sample"
oPDFSetting.WatermarkZOrder(0) = PRN_WMARK_ZORDER_TOP
oPDFSetting.WatermarkOpacity(0) = 50

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