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

Stamp Property

Enables/Disables image stamp feature.

Property Stamp(Index As Long) As Boolean

bool get_Stamp(int Index)
void set_Stamp(int Index, bool value)

boolean getStamp(int Index) throws PrinterException
void setStamp(int Index, boolean value) throws PrinterException

Type

Boolean

Parameters

Remarks

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"