PDF4me icon

PDF4me

Comprehensive PDF and document processing: generate barcodes, convert files, extract data, manipulate images, and automate workflows with the PDF4ME API

Actions80

Overview

This node generates barcodes from input text. It supports a wide variety of barcode types, including QR codes, Code 128, EAN, UPC, Data Matrix, and many specialized postal and industrial barcode formats. Users provide the text to encode and select the desired barcode type. The node then produces the barcode image data accordingly.

Common scenarios include:

  • Creating QR codes for URLs, contact info, or product details.
  • Generating standard product barcodes like UPC or EAN for retail.
  • Producing postal barcodes for shipping labels.
  • Encoding custom data in specialized barcode formats for logistics or inventory management.

Practical example: A user inputs a product SKU as text and selects "Code 128" to generate a barcode image that can be printed on packaging for scanning at checkout.

Properties

Name Meaning
Text The text string to be encoded into the barcode.
Barcode Type The format/type of barcode to generate. Options include Australian Post Custom, Aztec, Codabar, Code 11, Code 128 (and subsets), Data Matrix, EAN variants, GS1 DataBar variants, HIBC, ISBN, ITF-14, MaxiCode, PDF417, QR Code, UPC variants, VIN, and many more.
Hide Text Boolean option to hide or display the human-readable text alongside the barcode image.
Advanced Options Collection of additional settings:
• Generate Inline URL: Whether to produce an inline image URL instead of raw data.
• Custom Profiles: JSON string to customize barcode generation properties per external documentation.

Output

The node outputs JSON data containing the generated barcode image. The exact structure depends on the implementation of the barcode generator action but typically includes:

  • The barcode image data encoded in base64 or as an inline URL if requested.
  • Metadata about the barcode such as type and possibly dimensions.

If binary output is supported, it would represent the barcode image file suitable for saving or further processing.

Dependencies

  • This node relies on an external barcode generation service or library integrated within the node's action handler.
  • No explicit API keys or credentials are indicated in the provided code snippet, so it likely uses internal or bundled barcode generation capabilities.
  • If using advanced custom profiles, users may need to refer to the external documentation at https://dev.pdf4me.com/documentation/ for valid profile options.

Troubleshooting

  • Invalid Text Input: Providing empty or unsupported characters in the text may cause errors or invalid barcodes. Ensure the text matches the requirements of the selected barcode type.
  • Unsupported Barcode Type: Selecting a barcode type incompatible with the input text or not supported by the underlying generator could result in failure.
  • Malformed Custom Profiles: Incorrect JSON syntax or unsupported profile options in the advanced settings may cause errors. Validate JSON formatting carefully.
  • Output Issues: If the barcode image does not appear or is corrupted, verify the "Generate Inline URL" setting and downstream handling of the output data.

Links and References

Discussion