PDF4me icon

PDF4me

PDF4me for n8n automates document workflows: AI-powered parsing, classification, and data extraction, plus PDF conversion, generation, merge/split, editing, forms, stamps, signatures, OCR, barcodes and Swiss QR, invoices, image processing, security, and Word tools.

Actions92

Edit → Add Text Stamp To PDF

AI-generated

Summary

Adds a text stamp to a PDF supplied as binary data, a base64 string, or a URL. Configure the stamp text and optionally its pages, alignment, margins, opacity, font, rotation, and background placement; the operation returns the processed PDF as binary data.

Inputs

  • Input Data Type (required) — Choose Binary Data, Base64 String, or URL as the PDF source.
  • Input Binary Field (required) — For Binary Data input, the name of the incoming binary property; defaults to data.
  • Base64 PDF Content (required) — For Base64 String input, the encoded PDF content.
  • PDF URL (required) — For URL input, the PDF's URL.
  • Text (required) — Text to place on the PDF.
  • Pages — Page range for the stamp; defaults to all.
  • Horizontal Alignment — Left, center, or right; defaults to center.
  • Vertical Alignment — Top, center, or bottom; defaults to center.
  • Horizontal Margin (Mm) — Horizontal margin in millimeters; defaults to 0.
  • Vertical Margin (Mm) — Vertical margin in millimeters; defaults to 0.
  • Opacity — Stamp opacity setting; defaults to 50.
  • Font Size — Font size; defaults to 24.
  • Font Color — Hex font color; defaults to #FF0000.
  • Rotation — Stamp rotation in degrees; defaults to 45.
  • Background — Whether to place the stamp in the background; defaults to false.
  • Document Name — Source PDF name for reference; defaults to document.pdf.
  • Output File Name — Output PDF filename; defaults to document_with_text_stamp.pdf.
  • Custom Profiles — Advanced JSON profile options for the API.
  • Binary Data Output Name — Name for the output binary property; defaults to data.

Output shape

A single item containing the processed PDF as binary data.

The output binary property name is configurable. Runtime details such as page-range parsing and profile handling are not visible in the provided source pack.

Links

Discussion