Dividere PDF per codice a barre
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.
- Metodo: POST
- Endpoint: /api/v2/SplitPdfByBarcode_old
Parametri
- DocNameString, Required
Nome del file PDF di origine con estensione .pdf
- DocContentbase64, Required
Il contenuto del file di input
- Barcode StringString, Required
Puoi prendere una stringa di codice a barre simile, aggiungere una stringa di codice a barre che hai preso. Ma deve essere un formato stringa.
Esempio - ciao
- Filtro di codice a barreEnum, Required
Opzioni di filtro per il testo nel codice a barre.
- startsWith
- endsWith
- contains
- exact
- Tipo di codice a barreString, Required
Scegli il tipo di codice a barre.
- any
- datamatrix
- qrcode
- pdf417
- Split Barcode PageString, Required
Scegli la modalità in cui la divisione deve avvenire.
- before
- after
- remove
- Combina pagine con codici a barre consecutivi ugualiBoolean, RequiredDefault: true
Puoi selezionare un valore -
true
false
- Pdf Render DpiString, Required
Esempio - 150
Output
- File ContentBinary
Contenuto del file di output dall’azione PDF4me
- Nome del fileString
Nome del file di output dall’azione PDF4me
Header
Content-Type:application/json
Authorization: Copia la chiave dal 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