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

cpfo:barcode-dimensions

Attribut definiert die Anzahl der Zeilen und Spalten des Barcodes (falls möglich)

cpfo:barcode-error-correction-level

Attribut gibt die Menge der Fehlerkorrektur-Daten mit einen Wert zwischen 1 .. 100 an.

cpfo:barcode-format

Attribut gibt das Format des Aztec und QR Codes an.

cpfo:barcode-layers

Element gibt die QR Code Versionen 1 .. 40 und Aztec Layers 1 .. 32 an.

cpfo:barcode-process-escape-sequences

Attribut gibt die Verarbeitung der Escape-Sequenzen für MaxiCode und QR Code an.

cpfo:barcode-symbol-mode

Attribut gibt den Symbolmodus für MaxiCode an.

cpfo:barcode-type

Attribut gibt den Barcode-Typ an.

cpfo:binary-encoding

Attribut gibt die Kodierung des Inhalts an.

cpfo:check-digits

Attribut gibt die Kontrollziffern an.

cpfo:display-hri

Attribut zeigt die Human Readable Interpretation an.

cpfo:height

Attribut gibt die Höhe des Barcodes an.

cpfo:hri-distance

Attribut zeigt den Abstand zwischen Barcode und Human Readable Interpretation an.

cpfo:width

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>

Download der Beispiele

In der Ausgabe:

nach oben