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
The node operation Get Document From Pdf4me processes a PDF file to extract or split documents based on barcode information. It is designed to handle PDFs provided in various formats (binary data, base64 string, or URL) and searches for specific barcodes within the document. The node can split the PDF at pages where the barcode matches certain criteria, optionally combining consecutive pages with the same barcode. This functionality is useful in scenarios such as automated document processing, invoice or form separation, and batch splitting of scanned documents by barcode markers.
Practical examples:
- Splitting a large scanned PDF containing multiple invoices separated by QR codes into individual invoice files.
- Extracting sections of a PDF report based on barcode identifiers embedded in the pages.
- Automating document workflows where barcodes indicate document boundaries or categories.
Properties
| Name | Meaning |
|---|---|
| Input Data Type | How the PDF file is provided: - Binary Data (from previous node) - Base64 String (encoded PDF content) - 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 of the PDF content (used if Input Data Type is Base64 String) |
| PDF URL | URL pointing to the PDF file to process (used if Input Data Type is URL) |
| Barcode String | The barcode string to search for within the PDF pages |
| Barcode Filter | Filter type for matching the barcode string: - Starts With - Contains - Equals |
| Barcode Type | Type of barcode to look for: - QR Code - Code 128 - Code 39 |
| Split Barcode Page | Where to split the PDF relative to the barcode page: - Before - After |
| Combine Pages With Same Consecutive Barcodes | Whether to combine pages that have the same consecutive barcode value into one output document |
| PDF Render DPI | Dots per inch setting for rendering the PDF during processing (affects quality/resolution) |
| Output File Name | Name of the output ZIP file that will contain the resulting split PDF documents |
| Async | Enable asynchronous processing mode (true/false) |
Output
The node outputs a ZIP archive containing the split PDF documents based on the barcode detection and splitting rules. The json output field includes metadata about the processed documents and references to the binary data representing the split PDFs inside the ZIP file.
If the input was binary or URL-based, the output contains the extracted PDF parts packaged together. The node may also output binary data fields corresponding to the generated ZIP file.
Dependencies
- Requires an active connection to the Pdf4me API service for PDF processing.
- Needs appropriate API authentication credentials configured in n8n to authorize requests.
- Internet access is required if providing PDF via URL or for API communication.
- No additional local dependencies are indicated.
Troubleshooting
Common issues:
- Incorrect barcode string or filter settings may result in no splits or unexpected output.
- Providing an invalid or inaccessible PDF URL will cause failures in fetching the document.
- Insufficient API permissions or missing API key will lead to authentication errors.
- Setting an inappropriate DPI value might affect processing speed or output quality.
Error messages and resolutions:
- "Failed to fetch PDF from URL": Check the URL accessibility and correctness.
- "Barcode not found": Verify the barcode string, type, and filter options match the actual barcodes in the PDF.
- "Authentication failed": Ensure the API key credential is correctly set up in n8n.
- "Invalid binary property name": Confirm the binary field name matches the input data structure.