Generate barcode / QR code (Zebra)
api2pdf_generate_barcodeGenerate a barcode or QR code image. format is the symbology (e.g. 'QRCode', 'Code128', 'PDF417', 'DataMatrix') and value is the string to encode. Returns a { FileUrl } (valid ~24h) by default, or base64 with output_binary:true. BILLED. Api2Pdf API: GET /zebra.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The string to encode in the barcode/QR code. | |
| width | No | Image width in pixels. | |
| format | Yes | Barcode/QR symbology, e.g. 'QRCode', 'Code128', 'PDF417', 'DataMatrix'. | |
| height | No | Image height in pixels. | |
| showlabel | No | If true, render the encoded value as a human-readable label under the barcode. | |
| output_binary | No | If true, return the raw image bytes as base64 instead of a FileUrl. Default false. |