add_text_stamp_to_pdf
Add a text stamp or watermark to PDF pages, customize text, position, font, and transparency, and save the stamped file to disk.
Instructions
Add a text stamp or watermark to a PDF using PDF4me Text Stamp (/api/v2/Stamp). Provide pdf_file_path, stamp text, pages (e.g. all, 1, 1-3), alignX/alignY, font and margin settings. Uses API field isItalics (italic). Saves the stamped PDF to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| pages | No | all | |
| rotate | No | ||
| align_x | No | center | |
| align_y | No | middle | |
| is_bold | No | ||
| opacity | No | 50 | |
| font_name | No | Arial | |
| font_size | No | ||
| underline | No | ||
| font_color | No | #000000 | |
| is_italics | No | ||
| output_dir | No | ||
| transverse | No | ||
| is_background | No | ||
| pdf_file_path | Yes | ||
| margin_x_in_mm | No | 10 | |
| margin_x_in_px | No | 0 | |
| margin_y_in_mm | No | 10 | |
| margin_y_in_px | No | 0 | |
| output_file_name | No | ||
| request_doc_name | No | ||
| fit_text_over_page | No | ||
| show_only_in_print | No |