XML technologies / XSL-FO / Reference / Compart XSL extensions / Elements / barcode
(Excerpt from "XSL-FO ― Die Referenz" by Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Category: Barcode-spezifisches Formatting object - cpfo:barcode
Description
This element specifies the barcode element with the defined barcode type.
Attributes
This attribute defines the number of rows and columns of the barcode, where possible | |
This attribute specifies the amount of error correction data with a value in the range 1 .. 100. | |
This attribute specifies the format of the Aztec and QR codes. | |
This element specifies QR Code versions 1 .. 40 and Aztec layers 1 .. 32. | |
This attribute specifies the processing of escape sequences for MaxiCode and QR Code. | |
This attribute specifies the symbol mode for MaxiCode. | |
This attribute specifies the barcode type. | |
This attribute specifies the content encoding. | |
This attribute specifies the check digits. | |
This attribute displays the human-readable interpretation. | |
This attribute specifies the height of the barcode. | |
This attribute specifies the space between the barcode and its human-readable interpretation. | |
This attribute specifies the width of the barcode. |
XSL-FO example:
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="DinA4" margin="10mm" page-width="100mm" page-height="70mm">
<fo:region-body region-name="xsl-region-body"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="DinA4">
<fo:flow flow-name="xsl-region-body" font-family="Arial" font-size="12pt">
<fo:block font-weight="bold" font-size="20pt" space-after="1cm" border-bottom="0.5pt solid black">
Code 128
</fo:block>
<fo:block>
<cpfo:barcode barcode-type="code128" check-digits="1" display-hri="yes" width="5cm" height="32pt">
0123456789
</cpfo:barcode>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>In the output: