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
- Split PDF By Barcode
- 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
- Split PDF By Swiss QR
- 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 Text
- Split PDF Regular
- Unlock PDF
- Update Hyperlinks Annotation
- Upload File To PDF4me
Overview
The node operation "Split PDF By Swiss QR" processes a PDF document to split it based on the presence of Swiss QR codes within the pages. This is particularly useful in scenarios where a PDF contains multiple invoices or payment slips each identified by a Swiss QR code, and you want to separate these into individual documents for easier handling, processing, or archiving.
Typical use cases include:
- Automating invoice processing workflows by splitting bulk PDFs containing multiple Swiss QR-coded payment slips.
- Preparing documents for batch submission or review by separating them at QR code boundaries.
- Extracting specific sections of a PDF that correspond to different transactions or clients identified by Swiss QR codes.
Properties
| Name | Meaning |
|---|---|
| Input Data Type | Method to provide the PDF data: - 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 in the input data that contains the PDF file (used when Input Data Type is Binary Data). |
| Base64 Content | The base64 encoded PDF content (used when Input Data Type is Base64 String). |
| PDF URL | URL pointing to the PDF file to process (used when Input Data Type is URL). |
| Split QR Page | Defines 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 (dots per inch) 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 after splitting. |
| Advanced Options | Custom JSON profiles to adjust additional properties for the underlying API calls. Users can specify extra options following the external API documentation. |
| Binary Data Output Name | Custom name for the binary data field in the node's output, allowing users to rename the output binary property for clarity or integration purposes. |
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 possibly information about the QR codes found. - The binary data output contains the actual PDF files resulting from the split operation.
- The binary data property name can be customized via the "Binary Data Output Name" property.
Dependencies
- Requires access to the PDF4me API service for PDF processing and splitting functionality.
- An API key credential or equivalent authentication token must be configured in n8n to authorize requests to the PDF4me service.
- Internet connectivity is required if the PDF is provided via URL or if the node needs to communicate with the external API.
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 that the binary property name matches the actual property containing the PDF in the input data.
- Insufficient API permissions or invalid API key: Confirm that the API key is valid and has permissions for PDF splitting operations.
- Large PDFs or high DPI settings may cause timeouts or performance issues; consider lowering the DPI or splitting the input beforehand.
Error Messages:
- Errors related to missing or malformed PDF data usually indicate incorrect input configuration.
- API errors might mention authentication failures or quota limits; check API credentials and usage limits.
- If the node throws errors about QR code detection failure, verify that the PDF actually contains Swiss QR codes and that the DPI setting is appropriate.
Links and References
- PDF4me API Documentation
- Swiss QR Bill Information
- n8n Documentation on Working with Binary Data