Actions80
- Extract Text From Word
- Find And Replace Text
- Convert PDF To Editable PDF Using OCR
- Create Swiss QR Bill
- Split PDF By Barcode
- Split PDF By Swiss QR
- Split PDF By Text
- Split PDF Regular
- Create PDF/A
- Convert HTML To PDF
- Convert Markdown To PDF
- Upload File To PDF4me
- Add Attachment To PDF
- Add Barcode To PDF
- Add Form Fields To PDF
- Fill PDF Form
- Add HTML Header Footer
- Add Image Stamp To PDF
- Add Margin To PDF
- Add Page Number To PDF
- Add Text Stamp To PDF
- AI-Invoice Parser
- AI-Process HealthCard
- AI-Process Contract
- Generate Barcode
- Classify Document
- Parse Document
- Linearize PDF
- Flatten PDF
- Convert To PDF
- Json To Excel
- Convert PDF To Excel
- Convert PDF To Word
- Convert PDF To PowerPoint
- Convert VISIO
- Crop Image
- Delete Blank Pages From PDF
- Delete Unwanted Pages From PDF
- Extract Pages
- Merge Multiple PDFs
- Overlay PDFs
- Rotate Document
- Rotate Page
- Sign PDF
- URL to PDF
- Add Image Watermark To Image
- Add Text Watermark To Image
- Compress Image
- Convert Image Format
- Create Images From PDF
- Flip Image
- Get Image Metadata
- Image Extract Text
- Remove EXIF Tags From Image
- Replace Text With Image
- Replace Text With Image In Word
- Resize Image
- Rotate Image
- Rotate Image By EXIF Data
- Compress PDF
- Get PDF Metadata
- Repair PDF Document
- Get Document From Pdf4me
- Update Hyperlinks Annotation
- Protect Document
- Unlock PDF
- Disable Tracking Changes In Word
- Enable Tracking Changes In Word
- Generate Document Single
- Generate Documents Multiple
- Get Tracking Changes In Word
- Read Barcode From Image
- Read Barcode From PDF
- Read SwissQR Code
- Extract Form Data From PDF
- Extract Pages From PDF
- Extract Attachment From PDF
- Extract Text By Expression
- Extract Table From PDF
- Extract Resources
Overview
This node operation "Read Barcode From PDF" extracts barcode data from PDF files. It supports multiple input methods for the PDF file, including binary data from a previous node, base64 encoded string, or a URL to the PDF file. Users can specify which types of barcodes to detect and optionally limit the pages to scan. The output is barcode information extracted from the PDF.
This node is useful in scenarios such as:
- Automating document processing workflows where barcodes embedded in PDFs need to be read and processed.
- Extracting tracking numbers, product codes, or other barcode-based identifiers from scanned invoices, shipping labels, or forms.
- Integrating barcode reading into larger automation pipelines without manual intervention.
Example use cases:
- Reading QR codes from a PDF invoice to automatically fetch order details.
- Extracting Code 128 barcodes from shipping documents to update logistics systems.
- Processing multi-page PDFs with barcodes on specific pages only.
Properties
| Name | Meaning |
|---|---|
| Input Data Type | Choose how to provide the PDF file: - Binary Data (from previous node) - Base64 String (PDF content encoded as base64) - URL (link to the PDF file) |
| Input Binary Field | Name of the binary property containing the PDF file (used if Input Data Type is Binary Data). |
| Base64 PDF Content | Base64 encoded string representing the PDF content (used if Input Data Type is Base64 String). |
| PDF URL | URL pointing to the PDF file to read barcodes from (used if Input Data Type is URL). |
| Output File Name | Filename for the output JSON file containing the barcode data. Default is "read_barcode_from_pdf.json". |
| Barcode Type | Type of barcodes to detect. Options include: All, Unknown, Code 11, Code 39, Code 93, Code 128, Codabar, Interleaved 2 of 5, Patch Code, EAN-8, UPC-E, EAN-13, UPC-A, Plus 2, Plus 5, PDF417, Data Matrix, QR Code, Postnet, Planet, RM4SCC, Australia Post, Intelligent Mail, Code 39 Extended, Micro QR Code, All 2D, Pharma Code, UCC128, RSS14, RSS Limited, RSS Expanded, All 1D. |
| Pages | Optional. Specify page indices or ranges to process, e.g., "0,1,2-" or "1,2,3-7". Defaults to all pages. |
| Async | Enable asynchronous processing (true/false). Default is true. |
Output
The node outputs JSON data containing the detected barcode information extracted from the PDF. This typically includes barcode values, types, and possibly positional metadata depending on the underlying barcode reading implementation.
If the node supports outputting a file, it will generate a JSON file named as specified by the "Output File Name" property containing the barcode data.
No binary output is indicated for this operation.
Dependencies
- Requires access to the PDF file either via binary data, base64 string, or URL.
- Depends on an external barcode reading service or library integrated within the node's implementation.
- Requires proper API authentication configured in n8n to access the barcode reading functionality (e.g., an API key credential).
- Network access may be needed if using URL input type.
Troubleshooting
- Common issues:
- Invalid or corrupted PDF input causing failure to read barcodes.
- Incorrect binary property name when using binary data input.
- Network errors or inaccessible URLs when providing PDF via URL.
- Unsupported barcode types or no barcodes found on specified pages.
- Error messages:
- "Failed to read barcode from PDF": Check PDF validity and input method correctness.
- "Binary property not found": Verify the binary field name matches the incoming data.
- "URL not reachable": Confirm the URL is accessible and correct.
- Resolutions:
- Validate PDF files before input.
- Double-check property names and input data types.
- Ensure network connectivity and URL accessibility.
- Adjust page ranges or barcode type filters to match actual content.