API V2

Split PDF by Barcode

Connector ID: Split By Barcode

Splitting the PDF file, based on the barcode data, as a filter is a remarkable feature in PDF4me. This function is quite handy, when integrated with the Microsoft Program.

  • Method: POST
  • Endpoint: /api/v2/SplitPdfByBarcode_old

Parameters

DocNameString, Required

Source PDF file name with .pdf extension

DocContentbase64, Required

The content of the input file

Barcode StringString, Required

You can take barcode string similar to, add barcode string you took. But it must be string format.
Example - hello

Barcode FilterEnum, Required

Filter options for text in the barcode.

  • startsWith
  • endsWith
  • contains
  • exact
Barcode TypeString, Required

Choose the type of Barcode.

  • any
  • datamatrix
  • qrcode
  • pdf417
Split Barcode PageString, Required

Choose the way split should occur.

  • before
  • after
  • remove
Combine Pages With Same Consecutive BarcodesBoolean, Required
Default: true

You can select one value -
true
false

Pdf Render DpiString, Required

Example - 150

Output

File ContentBinary

Output file content from PDF4me action

File NameString

Output file name from PDF4me action

Header
Content-Type:application/json
Authorization: Please copy key from the link.

Payload

{
  "docContent": "Please put PDF base64 content",
  "docName": "output.pdf",
  "barcodeString": "hello",
  "barcodeFilter": "startsWith",
  "barcodeType": "qrcode",
  "splitBarcodePage": "before",
  "combinePagesWithSameConsecutiveBarcodes": true,
  "pdfRenderDpi": "1"
}

PDF4me api samples

CSharp(C#)
Java
JavaScript
Python
Salesforce
n8n
Google Script
AWS Lambda