Split PDF by Swiss QR
Merge & Split → Split PDF by Swiss QR
The Split PDF by Swiss QR API splits a PDF at pages containing Swiss QR codes. You send the PDF (docContent Base64, docName), splitQRPage (after or before), optional pdfRenderDpi, combinePagesWithSameBarcodes, returnAsZip, and async. The API returns an array of split PDFs (or a ZIP when returnAsZip is true). Use the tester below to try it; more details are in the sections that follow.
Try the Split PDF by Swiss QR API
:::note Quick reference
Endpoint: POST /api/v2/SplitPdfBySwissQR · Required: api-key, docContent, docName, splitQRPage
:::
:::info Try it live Use the form below to send your API key, PDF (Base64) with Swiss QR codes, and split position (before or after). The response is an array of split PDFs or a ZIP. No code required—fill the fields and click Send request. :::
Overview, parameters, and use cases
- Overview
- Parameters
- Use cases
What is Split PDF by Swiss QR?
This endpoint splits a PDF at pages that contain Swiss QR codes (payment bills). You provide splitQRPage (after or before the QR code), optional pdfRenderDpi, combinePagesWithSameBarcodes (combine consecutive pages with same QR), and returnAsZip (return a ZIP of split PDFs). The API returns an array of split PDFs or a ZIP. Commonly used for Swiss payment bills.
Key features
- Swiss QR – Splits at pages containing Swiss QR codes.
- Position – splitQRPage: after or before the QR code.
- Combine – combinePagesWithSameBarcodes to merge consecutive pages with same QR.
- ZIP – returnAsZip returns all split PDFs in a ZIP file.
- Async – Use async for large PDFs.
:::tip Best for Use when splitting Swiss QR payment bills. For other barcodes use Split PDF by Barcode; for page-based splits use Split PDF. :::
API parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| api-key | string | Yes | Your PDF4me API key, Base64 encoded. Get it from the dashboard. |
| docContent | base64 | Yes | PDF file content (Base64) containing Swiss QR codes. |
| docName | string | Yes | Input PDF file name (e.g. SwissQR.pdf). |
| splitQRPage | string | Yes | after or before the QR code. |
| pdfRenderDpi | string | No | 100, 150, 200, or 250. |
| combinePagesWithSameBarcodes | boolean | No | Combine consecutive pages with same QR. |
| returnAsZip | boolean | No | Return results as ZIP file. |
| async | boolean | No | Enable asynchronous processing. |
When to use Split PDF by Swiss QR
- Swiss payment bills – Split a batch of Swiss QR bills into individual PDFs.
- Invoice separation – Split at each Swiss QR code to get one PDF per bill.
- Batch processing – Extract individual bills from a combined PDF.
:::info Need the full API? For request/response schemas and code samples, see Split PDF by Swiss QR in the PDF4me API docs. :::
Prerequisites
Before using this endpoint, make sure you have:
- A valid PDF4me API key (Get your API Key)
- A PDF file in Base64 format containing Swiss QR codes
Response Format
The API returns an array of split PDF documents, each split at the pages containing Swiss QR codes. If returnAsZip is true, returns a ZIP file containing all split PDFs.