Actions80
- Add Attachment To PDF
- Add Barcode To PDF
- Add Form Fields To PDF
- Add HTML Header Footer
- Add Image Stamp To PDF
- Add Image Watermark To Image
- Add Margin To PDF
- Add Page Number To PDF
- Add Text Stamp To PDF
- Add Text Watermark To Image
- AI-Invoice Parser
- AI-Process Contract
- AI-Process HealthCard
- Classify Document
- Compress Image
- Compress PDF
- Convert HTML To PDF
- Convert Image Format
- Convert JSON To Excel
- Convert Markdown To PDF
- Convert PDF To Editable PDF Using OCR
- Convert PDF To Excel
- Convert PDF To PowerPoint
- Convert PDF To Word
- Convert To PDF
- Convert URL to PDF
- Convert VISIO
- Convert Word to PDF Form
- Create Images From PDF
- Create PDF/A
- Create Swiss QR Bill
- Crop Image
- Delete Blank Pages From PDF
- Delete Unwanted Pages From PDF
- Disable Tracking Changes In Word
- Enable Tracking Changes In Word
- Extract Attachment From PDF
- Extract Form Data From PDF
- Extract Pages From PDF
- Extract Resources
- Extract Table From PDF
- Extract Text By Expression
- Extract Text From Word
- Fill PDF Form
- Find And Replace Text
- Flip Image
- Flatten PDF
- Generate Barcode
- Generate Document Single
- Generate Documents Multiple
- Get Document From Pdf4me
- Get Image Metadata
- Get PDF Metadata
- Get Tracking Changes In Word
- Image Extract Text
- Linearize PDF
- Merge Multiple PDFs
- Overlay PDFs
- Parse Document
- Protect PDF
- Read Barcode From Image
- Read Barcode From PDF
- Read SwissQR Code
- Remove EXIF Tags From Image
- Repair PDF Document
- Replace Text With Image
- Replace Text With Image In Word
- Resize Image
- Rotate Document
- Rotate Image
- Rotate Image By EXIF Data
- Rotate PDF Page
- Sign PDF
- Split PDF By Barcode
- Split PDF By Swiss QR
- Split PDF By Text
- Split PDF Regular
- Unlock PDF
- Update Hyperlinks Annotation
- Upload File To PDF4me
Overview
This node operation "Split PDF By Swiss QR" is designed to process PDF documents containing Swiss QR codes and split them into multiple PDFs based on the location of these QR codes. It detects pages with Swiss QR codes and splits the document either before or after those pages, optionally combining consecutive pages that share the same QR code.
This functionality is particularly useful in scenarios such as:
- Processing batches of invoices or payment slips where each slip contains a Swiss QR code.
- Automatically separating multi-document PDFs into individual files for easier management or further processing.
- Preparing documents for archival or distribution by splitting at logical boundaries marked by Swiss QR codes.
For example, a company receiving a large PDF with multiple payment slips can use this node to automatically split the file into separate PDFs per slip, simplifying downstream workflows like sending or storing individual documents.
Properties
| Name | Meaning |
|---|---|
| Input Data Type | How the PDF data is provided: - Base64 String: Provide PDF content as a base64 encoded string. - Binary Data: Use PDF file from previous nodes. - URL: Provide URL to PDF file. |
| Binary Property Name | The name of the binary property containing the PDF file when using Binary Data input type. |
| Base64 Content | The base64 encoded PDF content when using Base64 String input type. |
| PDF URL | The URL to the PDF file when using URL input type. |
| Split QR Page | Where to split relative to the Swiss QR page: - After: Split after the page containing the QR code. - Before: Split before the page containing the QR code. |
| Combine Pages With Same Barcodes | Whether to combine consecutive pages that have the same QR code into a single output PDF. |
| PDF Render DPI | The resolution (DPI) used to render the PDF for processing the QR codes. Options are 100, 150, 200, or 250 DPI. |
| Output File Name | The filename to assign to the output PDF files generated by the split operation. |
| Advanced Options | Custom JSON profiles to adjust extra properties for the underlying API calls. Users can specify additional options following the external API documentation. |
| Binary Data Output Name | Custom name for the binary data field in the node's output. Defaults to "data". |
Output
The node outputs one or more PDF files as binary data, each representing a segment of the original PDF split according to the detected Swiss QR codes and user settings.
- The
jsonoutput contains metadata about the split operation and the resulting files. - The binary data field (customizable by the user) contains the actual PDF content of each split segment.
- Each output item corresponds to one split PDF document.
Dependencies
- Requires access to the PDF4me API service or similar backend capable of detecting Swiss QR codes and splitting PDFs accordingly.
- An API key or authentication token must be configured in n8n credentials to authorize requests to the PDF processing service.
- Internet access may be required if providing PDF via URL or calling external APIs.
Troubleshooting
Common Issues:
- Invalid or inaccessible PDF URL: Ensure the URL is reachable and points directly to a valid PDF file.
- Incorrect binary property name: Verify the binary property name matches the incoming data.
- Insufficient API permissions or invalid API key: Check credential configuration.
- Large PDFs or high DPI settings may cause timeouts or performance issues.
Error Messages:
- "Failed to fetch PDF from URL": Check network connectivity and URL correctness.
- "Invalid PDF content": Confirm the input data is a valid PDF.
- "API authentication failed": Verify API key or token validity.
- "No Swiss QR codes found": The PDF does not contain detectable Swiss QR codes; check the source document.