Explore Plans
Mobile menu Close menu
PDF.co

Generate barcode image

Pro plus icon This query returns a barcode image URL generated from the provided value and barcode type.

Developer info

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

Query fields

Barcode value Text input > Other

Label
Barcode value
Helper text
The data to encode in the barcode, e.g. a URL, product ID, or text.
Slug
barcode_value
Required
true
Can have default value
true

Barcode type Dropdown list

Label
Barcode type
Helper text
Choose the barcode format.
Slug
barcode_type
Required
true
Can have default value
true

Image width Text input > Other

Label
Image width
Helper text
Output image width in pixels. Defaults to 200.
Slug
image_width
Required
false
Can have default value
true

Image height Text input > Other

Label
Image height
Helper text
Output image height in pixels. Defaults to 200.
Slug
image_height
Required
false
Can have default value
true

Ingredients

Barcode image url URL of the generated barcode image.

Slug
barcode_image_url
Filter code
PdfCo.generateBarcodeImage.BarcodeImageUrl
Type
Web URL
Example
https://pdf-temp-files.s3.amazonaws.com/barcode.png

Barcode type The barcode format used.

Slug
barcode_type
Filter code
PdfCo.generateBarcodeImage.BarcodeType
Type
String
Example
QRCode

Barcode value The value encoded in the barcode.

Slug
barcode_value
Filter code
PdfCo.generateBarcodeImage.BarcodeValue
Type
String
Example
https://ifttt.com