ONYX - 9.0 - Usage

XPSConfig and conversion to ZEBRA

De MappingDoc
Révision datée du 1 juillet 2020 à 10:56 par Jdieu (discussion | contributions) (Page créée avec « ===Résolution=== To change the resolution of the ZEBRA output stream, we need to use the '''resolution''' XML tag. »)
Autres langues :
English • ‎français

Conversion to ZEBRA

Language Tags

To enable the XPS to ZEBRA conversion profile, you first need to create a ZEBRA profile using the <language> tag like this

<language>ZEBRA</language>

Résolution

To change the resolution of the ZEBRA output stream, we need to use the resolution XML tag.

<resolution>203</resolution>

Paramétrage sur les polices

Utilisation des polices textes résidentes

Afin d'alléger le flux ZEBRA généré, il est possible de ne pas inclure dans le flux les polices. Pour ce faire, il faudra utiliser la balise fonts.

Exemple :

 <fonts>
   <font name="Arial" italic="0" bold="0" codeFont="I"/>
   <font name="Arial" italic="0" bold="1" codeFont="J"/>
 </fonts>

Dans notre exemple ci-dessus, si dans la maquette Designer construisant le flux XPS, nous avons :

  • Arial , Non Gras alors on aura dans le flux la police I
  • Arial , Gras alors on aura dans le flux la police J

Cas des codes à barre

Balise barcode

Ce paramètre permet d'embarquer ou non la police des codes à barre dans le flux. Si le flux n'est pas embarqué, alors le code barre est géré par l'imprimante en utilisant ses polices résidentes.

Lorsque ce paramètre n’est pas renseigné, il est activé par défaut.

La syntaxe dans le profil est :

<barcode>off</barcode>

Valeurs supportées :

  • FONT : La police est embarquée dans le flux
  • PRINTER : La police n'est pas embarquée dans le flux
  • IMG : Le code à barre sera envoyé en format image

Pour des raisons de rétrocompatibilités, les valeurs suivantes sont également possible :

  • ON (on, YES, yes, 1) : La police n'est pas embarquée dans le flux
  • OFF (off, NO, no, 0) : La police est embarquée dans le flux

Valeur par défaut : FONT

Custom Barcode Size

  • bcheight: barcode height in points.
  • bcwidth: two comma-separated values, corresponding to, respectively:

- width of a thin bar in points

- ratio between a thin bar and a thick bar


Example:

<barcodes>

        <barcode type="19" height="100" size="46" bcheight="55" bcwidth="3,2.6" />
</barcodes>

Means that a Code39 (type 19) barcode, with font size 46 and vertical deformation 100%, will be printed in Zebra as a resident barcode of 55 points high, with a thin bar of 3 points, and a thin bar/thick bar ratio of 2.6.

Cutter Management

<cutter config="MMT" cmd="MMC" />

Activates the cutter at the end of printing

Exemple de XPSConfig.conf

<zebra>
   <label>Zebra</label>
   <language>ZEBRA</language>
   <resolution>300</resolution>
   <fonts>
     <font name="Arial" italic="0" bold="0" codeFont="0" />
     <font name="Arial" italic="0" bold="1" codeFont="0" />
   </fonts>
   barcode>OFF</barcode>
   <barcodes>
    <barcode type="80" height="100" size="56" bcheight="200" bcwidth="2,2.0" />
    <barcode type="80" height="100" size="54" bcheight="250" bcwidth="3,2.1" />
    <barcode type="80" height="100" size="55" bcheight="150" bcwidth="4,2.2" />
    <barcode type="80" height="100" size="57" bcheight="100" bcwidth="5,2.3" />
    <barcode type="80" height="100" size="58" bcheight="50" bcwidth="1,2.4" />
    <barcode type="20" height="100" size="20" bcheight="60" bcwidth="2,2.9" />
   </barcodes>
 </zebra>