Zum Inhalt

.StampText (.PdfDocument Objektmethode)

Beschreibung

Draws (stamps) a text string onto a page at the given position using the standard Helvetica font. Call Save afterwards to obtain the modified PDF.

Argumente

Name

Typ

Beschreibung

PageIndex

integer

zero-based page index

X

float

x position in points, measured from the left of the page

Y

ifloat

y position in points, measured from the bottom of the page

Text

string

the text to stamp

FontSize

float

font size in points

Red

integer

(optional) red component 0-255 (default 0)

Green

integer

(optional) green component 0-255 (default 0)

Blue

integer

(optional) blue component 0-255 (default 0)

Rückgabewert integer

1 on success, 0 on failure

Beispiel

xxx