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

StampHOffset Property

Gets/Sets stamp horizontal placement offset setting.

Property StampHOffset(Index As Long) As Double

double get_StampHOffset(int Index)
void set_StampHOffset(int Index, double value)

double getStampHOffset(int Index) throws PrinterException
void setStampHOffset(int Index, double value) throws PrinterException

Type

Double (inches)

Parameters

Remarks

The value specified in StampHPostion and StampVPosition becomes the origin (0, 0).

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.StampZOrder(0) = PRN_STAMP_ZORDER_TOP

oPDFSetting.StampHPosition(0) = PRN_STAMP_HPOS_LEFT
oPDFSetting.StampVPosition(0) = PRN_STAMP_VPOS_TOP
oPDFSetting.StampHOffset(0) = 0.5
oPDFSetting.StampVOffset(0) = 0.5
oPDFSetting.StampTransparentColor(0) = RGB(0, 128, 128)
oPDFSetting.StampZoom(0) = 70

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