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 reads barcodes from images provided in various formats. It supports input as binary data from a previous node, base64-encoded image content, or an image URL. The node processes the image to detect and extract barcode information, outputting the decoded barcode data in JSON format. This functionality is useful for automating workflows that require barcode scanning, such as inventory management, document processing, or retail applications where barcode data needs to be extracted programmatically.

Practical examples:

  • Extracting product codes from scanned images in an inventory system.
  • Reading QR codes from images uploaded by users.
  • Automating data entry by reading barcodes from shipping labels.

Properties

Name Meaning
Input Data Type Choose how to provide the image file: "Binary Data" (from previous node), "Base64 String", or "URL".
Input Binary Field Name of the binary property containing the image file (used when Input Data Type is "Binary Data").
Base64 Image Content Base64 encoded string of the image content (used when Input Data Type is "Base64 String").
Image URL URL pointing to the image file (used when Input Data Type is "URL").
Output File Name Filename for the output JSON file containing barcode data.
Image Type Type of the image file: "JPG" or "PNG".
Async Enable asynchronous processing (true/false).
Binary Data Output Name Custom name for the binary data field in the node's output.

Output

The node outputs JSON data containing the decoded barcode information extracted from the image. The exact structure depends on the barcode types detected but generally includes barcode values and possibly metadata about each barcode found.

If configured, the node can also output binary data named according to the "Binary Data Output Name" property, which may represent processed image data or related binary content.

Dependencies

  • Requires access to image data either as binary, base64 string, or via URL.
  • No explicit external API keys or credentials are indicated in the source code snippet.
  • The node relies on internal barcode reading libraries bundled within the node's implementation.

Troubleshooting

  • Common issues:
    • Providing incorrect input data type or mismatched input fields may cause failures.
    • Invalid or inaccessible image URLs will prevent barcode reading.
    • Unsupported image formats other than JPG or PNG may not work correctly.
  • Error messages:
    • Errors related to missing binary data or invalid base64 strings indicate misconfiguration of input properties.
    • Network errors when using URL input suggest connectivity or URL accessibility problems.
  • Resolutions:
    • Verify that the input data matches the selected input type.
    • Ensure URLs are reachable and point directly to valid image files.
    • Confirm image format compatibility with JPG or PNG.

Links and References

Discussion