Skip to main content

Add Barcode to PDF in Make

What this module does

PDF4me — Add Barcode to PDF inserts a barcode or QR code at a precise location on specific pages of an existing PDF and returns a new document with the barcode embedded. Choose from six formats — QR Code, Data Matrix, Code128, Aztec, HanXin, and PDF417 — and position the barcode with millimeter-level accuracy using alignment anchors and margin offsets. Every document that passes through your Make scenario gets a barcode automatically, no manual editing required.

Authenticating Your API Request

Every PDF4me module in Make requires a valid Connection. Create or select one that holds your PDF4me API key so the scenario can authenticate barcode insertion requests securely.

Important Facts You Should Not Miss

Both alignment axes are required
Vertical Alignment and Horizontal Alignment are both marked required in the module. You must set both — they anchor the barcode to a corner or edge of the page. The margin fields then push it inward from that anchor by however many millimeters you specify.
Height and Width cannot exceed 1000mm
The module hint explicitly states both dimensions must be lower than or equal to 1000mm. For standard A4 pages (210 x 297mm) keep both under those dimensions or the barcode will overflow the page boundary. These fields are optional — if left empty the module uses default sizing.
Hide Text applies only to Code 128
The hint text in the module reads exactly: "Hides text below barcode. Applicable only for Code 128." For QR Code, DataMatrix, Aztec, PDF417, and HanXin this toggle has no effect — those formats have no human-readable text line beneath them.
Make PDF4me Add Barcode to PDF module showing Connection set to TestUser01, File set to Map with File Name and PDF Document fields mapped from step 1, Barcode Type set to QR Code, Barcode Text showing ORDER-2024-00123, Height 50mm, Width 50mm, Pages set to all, Vertical Alignment Bottom, Horizontal Alignment Right, Horizontal Margin 10, Vertical Margin 15, Transparency 1, and Hide Text set to No

File set to Map passes the filename and PDF binary from any prior module. Barcode Type, Barcode Text, Pages, Vertical Alignment, and Horizontal Alignment are all required fields.

Parameters

Required: Connection, File (Filename + PDF Document when using Map), Barcode Type, Barcode Text, Pages, Vertical Alignment, and Horizontal Alignment — all must be provided for the module to run.

ParameterRequiredWhat it doesExample
ConnectionYesPDF4me API connection. Click Add and paste your API key if connecting for the first time.Your PDF4me connection
FileYesSource PDF. Choose Dropbox - Download a File for a direct Dropbox trigger, or Map to supply filename and binary from a prior module.Map
File NameYes (when Map)Original filename of the source PDF including .pdf extension. Map from the prior module's file name output.1. File Name
PDF DocumentYes (when Map)Binary content of the source PDF. Map from the prior module's data output.1. Data
Barcode TypeYesFormat of the barcode to insert. Options: QR Code, Data Matrix, Code128, Aztec, HanXin, PDF417.QR Code
Barcode TextYesThe data to encode inside the barcode — an order ID, URL, asset number, or any alphanumeric string.ORDER-2024-00123
Barcode Height in mmNoVertical size of the barcode in millimeters. Must be 1000 or less. Default is 50.50
Barcode Width in mmNoHorizontal size of the barcode in millimeters. Must be 1000 or less. Default is 50.50
PagesYesPages where the barcode is added. Enter all for every page, a single number, or a comma-separated list.all
Vertical AlignmentYesVertical anchor point on the page — Top, Middle, or Bottom. Combined with Vertical Margin for exact placement.Bottom
Horizontal AlignmentYesHorizontal anchor point on the page — Left, Center, or Right. Combined with Horizontal Margin for exact placement.Right
Horizontal Margin in mmNoDistance in mm the barcode is offset inward from the Horizontal Alignment edge. Default is 10.10
Vertical Margin in mmNoDistance in mm the barcode is offset inward from the Vertical Alignment edge. Default is 15.15
TransparencyNoOpacity of the barcode. 0 = fully transparent, 1 = fully opaque. Must be 1 or less. Default is 1.1
Hide TextNoControls whether human-readable text appears below the barcode. Applies only to Code 128. Options: Yes, No, Empty.No

Quick Setup

  1. Add PDF4me -> Add Barcode to PDF to your Make scenario.
  2. Select Connection (or click Add to create one with your API key).
  3. Set File to Dropbox - Download a File or Map — if using Map, connect File Name and PDF Document from the prior step.
  4. Choose Barcode Type and enter the Barcode Text to encode.
  5. Set Pages to all or specify individual page numbers.
  6. Choose Vertical Alignment and Horizontal Alignment, then Save and run the scenario. The output contains Document Name and Doc Data — the PDF with the barcode embedded.

Workflow Examples

Workflow ExamplesCommon Make scenario patterns using Add Barcode to PDF.
Add order tracking QR codes to invoices
  1. Dropbox triggers when a new invoice PDF lands in the "Invoices" folder.
  2. Add Barcode to PDF runs with Barcode Type set to QR Code, Barcode Text mapped from the order ID, Pages set to all, Vertical Alignment Bottom, Horizontal Alignment Right.
  3. The returned PDF is uploaded to the "Processed Invoices" folder in Dropbox.
  4. Slack notifies the dispatch team that a barcoded invoice is ready to scan.
Stamp asset tags on equipment records
  1. A new row added to Google Sheets (asset register) triggers the scenario.
  2. Google Drive downloads the blank asset record PDF template.
  3. Add Barcode to PDF inserts a Code128 barcode with the asset ID at the top-left corner of page 1.
  4. The barcoded PDF is uploaded to SharePoint in the matching department folder.
Monthly archive snapshot with contract reference barcodes
  1. A scheduled trigger runs on the 1st of every month.
  2. Google Drive downloads the active contract PDF.
  3. Add Barcode to PDF inserts a DataMatrix barcode (compact, high-density) with the contract reference number at the bottom-right corner.
  4. The barcoded snapshot is saved to an "Archive" folder. Each archived version carries a scannable reference that links back to the source record.

Frequently Asked Questions

What barcode formats does this module support?+
Six formats — QR Code, Data Matrix, Code128, Aztec, HanXin (Chinese national standard 2D code), and PDF417. Select the format from the Barcode Type dropdown. QR Code suits links and general data; Code128 is widely used for linear shipping and retail barcodes; DataMatrix is compact enough for small labels.
How do Vertical Alignment and Horizontal Alignment work together?+
The two alignment fields act as an anchor. Setting Vertical Alignment to Bottom and Horizontal Alignment to Right anchors the barcode to the bottom-right corner of the page. The Vertical Margin and Horizontal Margin fields then push it inward from that corner by the number of millimeters you enter — so Horizontal Margin 10 and Vertical Margin 15 places it 10mm from the right edge and 15mm up from the bottom.
What does the Pages field accept?+
The field accepts all to stamp every page, a single page number, or a comma-separated list of page numbers. The module hint reads "Pages in which barcode needs to be added." Using all is the most common choice for document-level stamps like tracking codes.
Does Hide Text work for all barcode types?+
No. The module hint states explicitly: "Hides text below barcode. Applicable only for Code 128." For QR Code, Data Matrix, Aztec, PDF417, and HanXin the field has no effect because those formats do not display a human-readable text line.
Is the original source PDF modified?+
No. PDF4me processes a copy and returns a new document in the Doc Data output field. Your source file in Dropbox, Google Drive, or any other location is completely untouched.

Get Help