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 Image Stamp To PDF

AI-generated

Summary

Adds an image stamp to a PDF using PDF4me. Choose a PDF and image source, then configure which pages receive the stamp, its placement, size, opacity, and visibility; the operation returns the processed PDF as binary data.

Inputs

  • inputDataType (required) — Choose the PDF source: binary data from the previous node, a base64 string, or a URL.
  • binaryPropertyName (required) — When the PDF source is binary data, the binary property containing the PDF. Defaults to data.
  • base64Content (required) — When the PDF source is base64, the encoded PDF content.
  • pdfUrl (required) — When the PDF source is a URL, the PDF URL.
  • outputFileName — Output PDF filename; defaults to document_with_image_stamp.pdf.
  • docName — Source PDF filename for reference; defaults to document.pdf.
  • imageInputDataType (required) — Choose the image source: base64, binary data, or URL. Defaults to base64.
  • imageBinaryPropertyName (required) — When the image source is binary data, the binary property containing the image. Defaults to data.
  • imageContent (required) — When the image source is base64, the encoded image content.
  • imageUrl (required) — When the image source is a URL, the image URL.
  • imageName — Image filename with a .png or .jpeg extension; defaults to stamp.png.
  • pages — Pages to stamp, as comma-separated indices or ranges (for example, 1, 2, 3-7); defaults to all.
  • alignX — Horizontal placement: left, center, or right. Defaults to center.
  • alignY — Vertical placement: top, middle, or bottom. Defaults to middle.
  • heightInMM — Image height in millimeters (0–200); defaults to 30.
  • widthInMM — Image width in millimeters (0–200); defaults to 30.
  • heightInPx — Image height in points, despite the field label saying px; defaults to 85.
  • widthInPx — Image width in points, despite the field label saying px; defaults to 85.
  • marginXInMM — Horizontal margin in millimeters for left or right alignment; ignored when centered. Defaults to 10.
  • marginYInMM — Vertical margin in millimeters for top or bottom alignment; ignored when middle-aligned. Defaults to 10.
  • marginXInPx — Horizontal margin in the field labeled px; its description says millimeters. Defaults to 28.
  • marginYInPx — Vertical margin in the field labeled px; its description says millimeters. Defaults to 28.
  • opacity — Stamp opacity from 0 (transparent) to 100 (fully opaque); defaults to 50.
  • isBackground — Whether to use the image as a background stamp; defaults to false.
  • showOnlyInPrint — Whether the stamp is shown only in print; defaults to false.
  • advancedOptions.profiles — Optional custom profile properties as a string; the field suggests JSON, but the source details are not available here.
  • binaryDataName — Name for the output binary property; defaults to data.

Output shape

A PDF document returned as binary data.

The operation fields are declared in the supplied properties, but the source pack only shows the action function signature, not its implementation. Output behavior and how size and margin settings interact cannot be confirmed from the supplied source.

Links

Discussion