create_barcode
Create a barcode or QR code image (PNG) from input text. Choose from formats like QR, Code 128, Data Matrix, EAN-13, optionally hide the label, and get the file path.
Instructions
Create a standalone barcode or QR code image (PNG) using the PDF4me Create Barcode API. Pass the text to encode and barcodeType (e.g. qrCode, code128, dataMatrix, ean13, upcA). hideText hides the human-readable label. Saves the file and returns the path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| hide_text | No | ||
| output_dir | No | ||
| barcode_type | No | qrCode | |
| output_file_name | No |