Explore Plans
Mobile menu Close menu
PDF.co

Read barcodes from PDF or image

Pro plus icon This query returns the decoded barcode values found in a PDF or image file.

Developer info

API endpoint slug
pdf_co.read_barcodes
Runtime method
performQuery("pdf_co.read_barcodes"}

Query fields

File url Text input > Other

Label
File URL
Helper text
Public URL of the PDF or image file containing barcodes.
Slug
file_url
Required
true
Can have default value
true

Barcode type Dropdown list

Label
Barcode type
Helper text
Filter to a specific barcode type. Leave this field unset to read all types.
Slug
barcode_type
Required
false
Can have default value
true

Ingredients

Barcode values Comma-separated list of decoded barcode values.

Slug
barcode_values
Filter code
PdfCo.readBarcodes.BarcodeValues
Type
String
Example
https://example.com, SKU-12345

Barcode types Comma-separated list of detected barcode types.

Slug
barcode_types
Filter code
PdfCo.readBarcodes.BarcodeTypes
Type
String
Example
QRCode, Code128

Page number Zero-indexed page number on which the first barcode was found (0 = first page).

Slug
page_number
Filter code
PdfCo.readBarcodes.PageNumber
Type
String
Example
0

File url The source file URL.

Slug
file_url
Filter code
PdfCo.readBarcodes.FileUrl
Type
Web URL
Example
https://example.com/labels.pdf