PDF Text icon

PDF Text

Insert text at X/Y positions into an existing PDF using pdf-lib

PDF Text

AI-generated

Summary

Draws one or more text entries onto an existing PDF and outputs the modified PDF as binary data. Choose a page number, or use 0 to draw each entry on every page.

Inputs

  • Input Binary Property (required) — Name of the incoming item’s binary property containing the PDF; defaults to data.
  • Text Fields — Add entries with text (supports n8n expressions), X and Y coordinates in points from the left and bottom edges, font size, a standard font, and hex color. Defaults are X/Y 50, size 12, Helvetica, and black.
  • Page Number — 1-based page to edit; set to 0 to apply every text entry to all pages. Defaults to page 1. An out-of-range page number causes an error.
  • Output Binary Property (required) — Name of the output item’s binary property for the modified PDF; defaults to data.
  • Output File Name — Output filename; .pdf is appended if missing. If empty, uses the input filename with _edited before the extension, or output_edited.pdf if the input has no filename.

Output shape

One output item per input item, each containing the original JSON and the modified PDF under the configured binary property.

The input binary is not carried through. With Continue On Fail enabled, failed items contain the original JSON and an error instead of the generated PDF.

Links

Discussion