Read Barcode or Matrix code and determine properties

You can read barcodes or matrix codes using pdfToolbox Action 'Read Barcode' under the Group 'Report' in Switchboard. You can either define the position and size of the custom rectangle where you want to find the Barcode or work it automatically via "Mouse selection" like in "Text" from the "Decorate" group.
This will render the selected region to a grayscale buffer at a high resolution.
The only requirement here is that the barcode or the matrix code should be orthogonal (portrait or landscape orientation).

You can exit the barcode reading mode by leaving the Switchboard Action.

The results (value, type of barcode, bar width reduction, exact position and dimension of the barcode etc.), if any barcode or matrix code is found, will be shown in a new window from where the barcode information can be selected and copied, like the one below:

Symbology: QR Code
Value: Created from SVG file.
Module width: 2.225mm/6.306pt
Bar width reduction: 0.225mm/0.637pt/20.198%
Left: 170.328mm/482.82pt
Bottom: 83.488mm/236.66pt
Width: 55.181mm/156.42pt
Height: 55.181mm/156.42pt
Click to copy

Determine barcode properties using pdfToolbox Checks

You can determine barcode properties like coordinates, height, module width, symbology (type), bar width reduction or width of barcode, using Checks in pdfToolbox 11 (screenshot below).

The identified barcodes and their parameters are displayed in the result view.

Desktop

However only the trigger for the selected Check property is available in the Trigger values. That is unfortunate if you want to e.g. use the barcode value in JavaScript.

That can be resolved by adding additional properties to the Check, e.g. "Barcode value", "Symbology (type of barcode/matrix code) and "Barwidth reduction (%)". You may add any of the barcode/matrix code related Check properties. You have to make sure that the Condition is set up to always generate a hit as in this example.

Desktop

In this example we have added all Check properties.

Desktop

You may download the Check from here.

Barcode Reference Manual

If you want more information about barcodes and matrix codes in general, please download the "Barcode Reference Manual":