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!

Overview

This node generates barcodes of various types, including QR Codes and many other common barcode formats. It is useful for automating the creation of barcode images that can be embedded in documents, websites, or printed labels. For example, you could generate a QR Code containing a URL to share product information or create UPC barcodes for retail inventory management.

Properties

Name Meaning
Barcode Value The string value to encode into the barcode.
Barcode Type The type of barcode to generate. Options include Aztec, Bookland, Codabar, Code 128, QR Code, etc.
Decoration Image (Only for QR Code) An image/logo to insert inside the QR Code as decoration.
Advanced Options Additional settings:
- File Name Name of the output file.
- Generate Inline URL Whether to generate an inline image URL instead of a file.
- Custom Profiles JSON string to specify custom API profiles for advanced configuration.

Output

The node outputs JSON data representing the generated barcode. This typically includes the barcode image either as a file reference or as an inline base64-encoded image URL depending on the "Generate Inline URL" option. If a decoration image is used with QR Codes, it will be embedded within the generated barcode image.

Dependencies

  • Requires access to an external PDF.co API service for barcode generation.
  • Needs an API key credential configured in n8n to authenticate requests to the PDF.co service.
  • Optional use of custom profiles via JSON to adjust API call parameters.

Troubleshooting

  • Invalid Barcode Value: If the input value does not conform to the requirements of the selected barcode type, the API may return an error. Ensure the value matches the expected format for the barcode standard.
  • Unsupported Barcode Type: Selecting a barcode type not supported by the API will cause failure. Use one of the provided options.
  • API Authentication Errors: Missing or incorrect API credentials will prevent barcode generation. Verify your API key is correctly set up in n8n.
  • Decoration Image Issues: When using a decoration image with QR Codes, ensure the image URL or data is accessible and valid; otherwise, the logo insertion may fail.

Links and References

Discussion