XML-Technologien / XSL-FO / Referenz / Compart XSL Extensions / Elemente / barcode
(Auszug aus "XSL-FO ― Die Referenz" von 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
Kategorie: Barcode-spezifisches Formatierungsobjekt - cpfo:barcode
Beschreibung
Element gibt das Barcode-Element mit dem definierten Barcode-Typ an.
Attribute
Attribut definiert die Anzahl der Zeilen und Spalten des Barcodes (falls möglich) | |
Attribut gibt die Menge der Fehlerkorrektur-Daten mit einen Wert zwischen 1 .. 100 an. | |
Attribut gibt das Format des Aztec und QR Codes an. | |
Element gibt die QR Code Versionen 1 .. 40 und Aztec Layers 1 .. 32 an. | |
Attribut gibt die Verarbeitung der Escape-Sequenzen für MaxiCode und QR Code an. | |
Attribut gibt den Symbolmodus für MaxiCode an. | |
Attribut gibt den Barcode-Typ an. | |
Attribut gibt die Kodierung des Inhalts an. | |
Attribut gibt die Kontrollziffern an. | |
Attribut zeigt die Human Readable Interpretation an. | |
Attribut gibt die Höhe des Barcodes an. | |
Attribut zeigt den Abstand zwischen Barcode und Human Readable Interpretation an. | |
Attribut gibt die Breite des Barcodes an. |
XSL-FO Beispiel:
<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 der Ausgabe: