Skip to main content

Split PDF by Swiss QR

Merge & SplitSplit 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

Quick reference

Endpoint: POST /api/v2/SplitPdfBySwissQR · Required: api-key, docContent, docName, splitQRPage

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.

Loading API Tester...

Overview, parameters, and 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.
Best for

Use when splitting Swiss QR payment bills. For other barcodes use Split PDF by Barcode; for page-based splits use Split PDF.

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.

Get Help