Skip to content

Barcode Element

The Barcode element provides functionality for displaying barcode images based on a supplied data string. AstraDoc currently supports 11 different barcode formats (see below for a table containing all supported formats).

Certain barcodes require the supplied data string either conform to a specific series or contain a data string that passes a checksum calculation. Barcodes that fail these requirements will not render within the document.

Barcode properties

FieldDescription
ValueThe data string used to render the final barcode graphic.
FormatThe format of the barcode. Defaults to Code 39.
AlignmentThe horizontal alignment of the barcode within its containing element. Only relevant if the width of the final barcode image is smaller than the width the containing element.
SizeThe size in points of the barcode. Barcodes scale while maintaining their correct aspect ratios.
FormatPreview
AztecBarcode preview
CodabarBarcode preview
Code 39Barcode preview
Code 128Barcode preview
Data MatrixBarcode preview
EAN 8Barcode preview
EAN 13Barcode preview
ITFBarcode preview
QR CodeBarcode preview
UPC ABarcode preview
MSIBarcode preview