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

Barcode → Add Barcode to PDF

AI-generated

Summary

Adds the supplied text as a selected barcode to specified pages of a PDF, with configurable placement, size, margins, opacity, and text display. Supply the PDF as binary data from a previous node, a base64 string, or a URL.

Inputs

  • Input Data Type (required) — Choose Binary Data, Base64 String, or URL. For binary input, set Input Binary Field to the PDF’s binary property name (default data); otherwise provide Base64 PDF Content or PDF URL.
  • Barcode Text (required) — Text to encode in the barcode.
  • Barcode Type (required) — Select a supported barcode format, such as QR Code, Code 128, or EAN-13.
  • Pages (required) — Page selection; leave empty for all pages, or use values such as 1,3,5, 2-5, or 2-.
  • Horizontal Alignment (required) — Place the barcode left, center, or right.
  • Vertical Alignment (required) — Place the barcode at the top, middle, or bottom.
  • Size and margins (required) — Set height and width in millimeters and points, plus horizontal and vertical margins in both units. The fields default to 40 mm and 113 pt for size and 20 mm and 10 pt for margins; size fields describe 0 as auto-detect.
  • Opacity (required) — Set opacity from 0 (transparent) to 100.
  • Display Text — Choose to show the encoded text above or below the barcode, or select None.
  • Hide Text (required) — Choose whether to hide the barcode text.
  • Show Only In Print (required) — Choose whether the barcode is shown only in print.
  • Is Text Above (required) — Set whether the text is above the barcode.
  • Output Options — Optionally set the output PDF file name and provide custom profiles as JSON.
  • Binary Data Output Name — Name the binary property for the output PDF; defaults to data.

Output shape

A PDF file as binary data.

The output binary property name is configurable through Binary Data Output Name. The source pack exposes only the operation’s function signature, not its implementation, so response details beyond the declared binary output setting are not shown.

Links

Discussion