X4 Produktdokumentation

QR Code Generator

This adapter generates and reads QR codes.

Properties

Operation

Defines the operation executed by the adapter.

Possible values:

  • Consume: Reads a QR code.

  • Generate: Generates a QR code.

Parameters

imageWidth

Required. Width of the QR code to be generated in pixels.

Possible values: Any integer (default: 350)

imageHeight

Required. Height of the QR code to be generated in pixels.

Possible values: Any integer (default: 350)

imageFormat

Required. Data format of the graphic file containing the QR code to be generated.

Possible values:

  • JPEG 2000

  • PNG (default)

  • RAW

  • TIFF

  • WBMP

Status values

1

The operation was executed successfully.

-1

An error occurred during the execution.


Input

The adapter expects different data as input depending on the operation to be executed.

  • Consume operation: Graphic file with QR code

  • Generate operation: Raw text

Output

The adapter provides different data as output depending on the executed operation.

  • Consume operation: Content that was read from the QR code.

  • Generate operation: Graphic file with QR code

Example

With the QR Code Generator, QR codes that contain a URL can be created and read.

The process then looks as follows:

processURL.png

Label

File

Description

url

url.txt

Text file that contains the URL https://softproject.de/de/.

QR_Code_Generator

Adapter QR Code Generator

Operation Generate 

QR_Code_Generator

Adapter QR Code Generator

Operation Consume 

Parameter of the adapter:

  • imageWidth: 350

  • imageHeight: 350

  • imageFormat: PNG