Read Barcode from PDF
Connection ID: Read Barcode
Read single or multiple Barcodes or QR Codes from your PDF file using the Read Barcode action. Recognize the text embedded in the Barcodes automatically in your API and pass it to the successive action.
- Method: POST
- Endpoint: /api/v2/ReadBarcodes
Parameters
- File contentbase64, Required
The content of the input file.
- File namestring, Required
Source PDF file name with .pdf extension.
- Barcode TypeString, Required
The type of Barcodes tobe detected
- all
- unknown
- code11
- code39
- code93
- code128
- codabar
- inter2of5
- patchCode
- ean8
- upce
- ean13
- upca
- plus2
- plus5
- pdf417
- dataMatrix
- qrCode
- postnet
- planet
- rm4SCC
- australiaPost
- intelligentMail
- code39Extended
- microQRCode
- all_2D
- pharmaCode
- ucc128
- rss14
- rssLimited
- rssExpanded
- all_1D
- PagesString, Required
- Specify page indices as comma-separated values or ranges to process (e.g. “0, 1, 2-” or “1, 2, 3-7”).
- If not specified, the default configuration processes all pages. The input must be in string format.
Output
- File Contentstring
Read Barcode data from the file.
Header
Content-Type: application/json
Authorization: Please copy key from the link.
Payload
{
"docContent": "Please put PDF base64 content",
"docName": "output.pdf",
"barcodeType": [
"Datamatrix"
],
"pages": "all"
}
PDF4me api samples
- CSharp(C#)
- Java
- JavaScript
- Python
- Salesforce
- n8n
- Google Script
- AWS Lambda