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
This node operation, Read SwissQR Code, extracts data encoded in a SwissQR code embedded within a PDF file. SwissQR codes are commonly used on Swiss payment slips to encode payment information such as creditor and debtor details, amounts, and references.
Typical use cases include:
- Automating the extraction of payment information from scanned or digital Swiss payment slips.
- Integrating with accounting or invoicing workflows to process payment data without manual entry.
- Validating or archiving payment slip data extracted directly from PDFs.
For example, a user can provide a PDF containing a SwissQR code either as binary data from a previous node, as a base64 string, or via a URL. The node then reads and decodes the SwissQR code, outputting the extracted data as JSON for further processing.
Properties
| Name | Meaning |
|---|---|
| Input Data Type | Method to provide the PDF file: • Binary Data (from previous node) • Base64 String • URL |
| 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 content of the PDF file (used if Input Data Type is Base64 String) |
| PDF URL | URL pointing to the PDF file (used if Input Data Type is URL) |
| Output File Name | Filename for the output JSON file containing the SwissQR code data |
| Async | Enable asynchronous processing (true/false) |
Output
The node outputs a JSON object representing the decoded SwissQR code data extracted from the PDF. This JSON typically includes structured payment information such as:
- Creditor and debtor details (name, address, IBAN)
- Payment amount and currency
- Reference numbers
- Additional payment information encoded in the SwissQR code
If configured, the node also outputs this data as a JSON file named according to the "Output File Name" property.
No binary output is produced by this operation; the output is purely JSON data representing the SwissQR code contents.
Dependencies
- Requires access to the PDF file either as binary data, base64 string, or via a downloadable URL.
- No explicit external API keys or credentials are required for this operation.
- The node depends on internal libraries capable of parsing PDFs and decoding SwissQR codes.
Troubleshooting
Common issues:
- Providing an invalid or corrupted PDF file will cause the node to fail reading the SwissQR code.
- If the PDF does not contain a SwissQR code, the output may be empty or an error may be thrown.
- Incorrectly specifying the binary property name when using binary input will result in missing input data errors.
- Network issues or invalid URLs will prevent loading the PDF when using the URL input method.
Error messages and resolutions:
- "Binary property not found" — Verify the binary field name matches the actual property containing the PDF.
- "Failed to download PDF from URL" — Check the URL accessibility and network connectivity.
- "SwissQR code not found in PDF" — Confirm that the PDF contains a valid SwissQR code.
- Parsing errors — Ensure the PDF is not encrypted or corrupted.
Enabling the "Async" option can help with processing large files or slow network responses by running the operation asynchronously.
Links and References
- SwissQR Code Specification – Official documentation describing the SwissQR code format.
- n8n Documentation – General guidance on using n8n nodes and workflows.
- PDF4me API – Underlying service providing PDF processing capabilities (for reference).