PDF Writer icon

PDF Writer

Write text, add images, or merge PDF pages

Write Text

AI-generated

Summary

Write specified text entries onto one or multiple pages of an input PDF file at given positions, using configurable fonts, colors, rotation, and opacity, producing a modified PDF as output.

Inputs

  • Input PDF Field (required) — Name of the binary field containing the input PDF file (e.g., 'data'). The input must be a valid PDF binary.
  • Output Field Name (required) — Name of the binary field where the modified PDF with the written text will be saved.
  • Text Entries (required) — A collection of one or more text entries to write on the PDF. Each entry specifies: a label for identification, the text string to write, the page number (1-based, or 0 to write on all pages), X and Y coordinates for position, Y origin (from top or bottom of page), font size, font family (e.g., Helvetica, Times Roman), text color in hex format, rotation angle in degrees (counter-clockwise), and opacity from 0 to 1.

Output shape

a list of items with the modified PDF binary data field named as specified by 'Output Field Name'

Each output item corresponds to an input item, preserving input JSON and binary data except replacing or adding the specified output binary field containing the edited PDF. The output JSON includes 'pdfModified' flag, page count, and count of text entries written. An error in processing an item returns an error message JSON if 'Continue On Fail' is enabled; otherwise, it raises an error.

Examples

Example 1: Write multiple text labels at custom positions on specific pages of an uploaded PDF

Configure the node with the operation 'Write Text', specify the binary field holding the input PDF (e.g., 'data'), set the output binary field name (e.g., 'data'), and provide one or more text entries specifying page number, coordinates, font, color, and other text style options.

Links

Discussion