Add Text Activity
The Add Text activity inserts text content at a specific coordinate on a chosen page of a PDF document, and saves the result as a new file. This is useful for stamping values such as approval notes, dates, or reference numbers directly onto an existing PDF.
| Field | Description | Requirement |
|---|---|---|
| Pdf file name | The full file path to the existing PDF document to edit. | Required |
| Password | The password required to open the PDF, if it is encrypted. | Optional |
| Text | The text content to insert into the document. | Required |
| X-coordinate | The horizontal position on the page where the text will be placed. | Required |
| Y-coordinate | The vertical position on the page where the text will be placed. | Required |
| Font | The font family to use for the inserted text. | Optional |
| Font size | The size of the inserted text. | Optional |
| Page number | The page of the PDF on which the text will be inserted. | Required |
| New pdf file name | The full file path where the resulting PDF, containing the added text, will be saved. | Required |
Action Types & Examples
Text Placement
- Format: string
- Example Result: "Approved by Automation"
Implementation Examples
Field Setup - Pdf file name: C:\Robusta\invoice.pdf - Text: Approved by Automation - X-coordinate: 50 - Y-coordinate: 700 - Font: Helvetica - Font size: 12 - Page number: 1 - New pdf file name: C:\Robusta\invoice_stamped.pdf
Technical Notes
Coordinates are measured from the page's coordinate origin, so the exact placement of the inserted text depends on the page size and orientation of the target PDF. Always verify placement against a sample document before relying on fixed coordinates in production. The original file is left untouched; the result is written to
New pdf file name.