Actions17
Bar Code Generator
AI-generatedSummary
Generate bar code images from user-provided text in specified formats, outputting either a Base64 data URI or a binary PNG file.
Inputs
- Text (required) — The content string to encode into the bar code.
- Format (required) — The bar code standard to use; options are Code 128, EAN-13, or UPC-A.
- Output Type (required) — Whether to return the generated bar code as a Base64 data URI string or as a binary PNG file.
- Binary Property Name — When outputting as binary, the name of the binary property to store the PNG image (default 'data').
Output shape
a single item containing JSON with a data URI string or JSON with a success flag and a binary PNG file.
If Output Type is 'Data URI', the output JSON includes a 'barcodeDataUri' property with a Base64-encoded PNG image string. If 'Binary File', the output includes a JSON 'success' flag and the PNG image attached as binary data under the specified 'binaryPropertyName'.
Examples
Example 1: Generate a Code 128 bar code from the text "123456789" and get it as a Base64 data URI string.
Set Text to '123456789', Format to 'Code 128', Output Type to 'Data URI (Base64 String)'. Output is accessible as 'barcodeDataUri'.
Example 2: Generate an EAN-13 bar code from the text "4006381333931" and output as a binary file named 'barcodeImage'.
Set Text to '4006381333931', Format to 'EAN-13', Output Type to 'Binary File', Binary Property Name to 'barcodeImage'. Output is a binary PNG at 'barcodeImage' with a JSON 'success' flag.