---
title: ".StampText (.PdfDocument Objektmethode)"
---
[TOC]

#### 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

<table style="table-layout: fixed; width: min(100%, 602px);"><colgroup><col style="width: 18.1%"><col style="width: 14.8%"><col style="width: 67.1%"></colgroup><tr><th><p><strong>Name</strong></p></th><th><p><strong>Typ</strong></p></th><th><p><strong>Beschreibung</strong></p></th></tr><tr><td><p>PageIndex</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/integer/"><u>integer</u></a></p></td><td><p>zero-based page index</p></td></tr><tr><td><p>X</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/float/"><u>float</u></a></p></td><td><p>x position in points, measured from the left of the page</p></td></tr><tr><td><p>Y</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/integer/"><u>i</u></a><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/float/"><u>float</u></a></p></td><td><p>y position in points, measured from the bottom of the page</p></td></tr><tr><td><p>Text</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/string/"><u>string</u></a></p></td><td><p>the text to stamp</p></td></tr><tr><td><p>FontSize</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/float/"><u>float</u></a></p></td><td><p>font size in points</p></td></tr><tr><td><p>Red</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/integer/"><u>integer</u></a></p></td><td><p>(optional) red component 0-255 (default 0)</p></td></tr><tr><td><p>Green</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/integer/"><u>integer</u></a></p></td><td><p>(optional) green component 0-255 (default 0)</p></td></tr><tr><td><p>Blue</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/integer/"><u>integer</u></a></p></td><td><p>(optional) blue component 0-255 (default 0)</p></td></tr></table>

#### Rückgabewert [<u>integer</u>](../../../standard-datentypen/integer.md)

1 on success, 0 on failure

#### Beispiel

| `xxx` |
| --- |
