Print a 1d or 2d barcode. To be used in PlaceObject.

Child elements


Parent elements

A, B, Case, Clip, Color, Fontface, ForAll, Frame, I, Li, Loop, NoBreak, Otherwise, Overlay, Paragraph, PlaceObject, Position, Span, Td, Transformation, U, URL, Until, While


color (optional, since version 4.5.11)

Color of the barcode. Must be defined with DefineColor before use. Currently only used for QR codes.

eclevel (optional, since version 2.7.10)

Set the error correction level for QR-codes. If not provided, the system uses the maximum level for minimum size. The higher the level, the more error correction is in the QR-code.


Set the lowest level (1) with approx. 7% recovery.


Set the second lowest level (2) with approx. 15% recovery.


Set the second highest level (3) with approx. 25% recovery.


Set the highest level (4) with approx. 35% recovery.

fontfamily (text, optional)

Name of the font of the text that can be placed beneath the barcode. Not used in all codes.

height (number or length, optional)

Height of the barcode.

keepfontsize (yes or no, optional, since version 4.1.2)

Try to keep the size of the requested font. Works with EAN13 only.

overshoot (number, optional)

The factor denoting the extra length of the outer and middle bar. Only useful with EAN13.

select (XPath expression)

The data to be encoded in the barcode.

showtext (optional)

Should the text be written under the barcode?


Write text beneath the barcode.


Don’t display text.

type ()

Type of the barcode. One of EAN13, Code128 or QRCode.


Create an »optimal« QR code in terms of error correction and size.


Generate a code 128 barcode for numbers and text.


Create an EAN13 barcode for 13 digits.

width (number or length, optional)

Width of the barcode


  <Barcode select="'speedata Publisher'" type="Code128" showtext="yes"/>


ref code128 speedata publisher
  <Barcode select="4242002518169" type="EAN13"/>


ref ean13 supertex

And finally the QR code

  <Barcode select="''" type="QRCode" height="5"/>

looks like

ref speedata publisher qrcode

See also

The section about <Barcodes> in the basics chapter.