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

Stamp Property

Enables/Disables image stamp feature.

bool get_Stamp(int Index)
void set_Stamp(int Index, bool value)
Function get_Stamp(Index As Integer) As Boolean
Sub set_Stamp(Index As Integer, value As Boolean)
def getStamp(self, Index)
def setStamp(self, Index, value)
boolean getStamp(int Index) throws PrinterException
void setStamp(int Index, boolean value) throws PrinterException
function getStamp($Index) 
function setStamp($Index, $value) 
BclPrnResult GetStamp(BclPrinter* pPrinter, int Index, BclBool* poutVal);
BclPrnResult SetStamp(BclPrinter* pPrinter, int Index, BclBool newVal);
Property Stamp(Index As Long) As Boolean

bepprint +Stamp -off
bepprint +Stamp -image <filename>





This feature stamps an image to a PDF file.

Supported image format are BMP and JPEG. For a BMP file with 256 colors or less, the color value R:0, G:128, B:128 is treated as a transparent color.

Example Usage

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

oPDFSetting.Stamp(0) = True
oPDFSetting.StampFileName(0) = "C:\test\stamp.bmp"
oPDFSetting.StampFirstPageOnly(0) = True
oPDFSetting.StampHPosition(0) = PRN_STAMP_HPOS_CENTER
oPDFSetting.StampVPosition(0) = PRN_STAMP_VPOS_CENTER
oPDFSetting.StampZOrder(0) = PRN_STAMP_ZORDER_TOP

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