PDF.co API icon

PDF.co API

Generate PDF, extract data from PDF, split PDF, merge PDF, convert PDF. Fill PDF forms, add text and images to pdf and much more with pdf.co!

Barcode Generator

AI-generated

Overview

This node generates barcodes based on the provided input value and selected barcode type. It supports a wide variety of barcode formats including QR Code, Code 128, EAN, UPC, and many others. Users can optionally embed a decoration image (logo) inside QR Code barcodes and customize output through advanced options such as file naming, inline URL generation, and custom profiles for output formatting. This node is useful for automating barcode creation in workflows, such as generating product labels, shipping codes, or QR codes for marketing materials.

Use Case Examples

  1. Generating a QR Code for a URL to embed in marketing emails.
  2. Creating UPC barcodes for product inventory management.
  3. Embedding a company logo inside a QR Code for brand recognition.

Properties

Name Meaning
Authentication Select the authentication method to use for the API (API Key or OAuth2).
Barcode Value The value or data to encode into the barcode.
Barcode Type The type of barcode to generate, such as QR Code, Code 128, EAN-13, etc.
Decoration Image URL of an image to embed as a logo inside the QR Code barcode (only PNG, JPG, JPEG supported).
Advanced Options Additional customization options such as output file name, inline image URL generation, and custom JSON profiles for barcode generation.

Output

JSON

  • barcodeData - The generated barcode data, typically as a base64 encoded string or URL depending on options.
  • fileName - The name of the output file if specified.
  • inlineUrl - The inline image URL of the barcode if inline generation is enabled.

Dependencies

  • Requires API authentication via API Key or OAuth2 to access the barcode generation service.

Troubleshooting

  • Ensure the barcode value is not empty and conforms to the requirements of the selected barcode type.
  • If embedding a decoration image, ensure the image URL is accessible and in a supported format (PNG, JPG, JPEG).
  • Check API authentication credentials if the node fails to connect to the barcode generation service.
  • Invalid JSON in custom profiles option may cause errors; validate JSON syntax before use.

Links

Discussion