ONYX - 9.0 - Utilisation - XPSConfig et conversion ZEBRA/en

Différence entre versions

De MappingDoc
(Mise à jour pour être en accord avec la nouvelle version de la source de la page)
 
(15 révisions intermédiaires par un autre utilisateur non affichées)
Ligne 7 : Ligne 7 :
  
 
===Résolution===
 
===Résolution===
Pour changer la résolution du flux ZEBRA en sortie, il faut utiliser la balise '''resolution'''
+
To change the resolution of the ZEBRA output stream, we need to use the '''resolution''' XML tag.
  
 
  <resolution>203</resolution>
 
  <resolution>203</resolution>
  
===Paramétrage sur les polices===
+
===Fonts settings===
====Utilisation des polices textes résidentes====
+
====Utilization of the resident text fonts====
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'''. <br>
+
In order to make the ZEBRA stream ligher, it is possible no to include the fonts in the Zebra job. To do so, we need to use the '''fonts''' tag.<br>
  
 
Exemple :   
 
Exemple :   
Ligne 21 : Ligne 21 :
 
  </fonts></nowiki>
 
  </fonts></nowiki>
  
Dans notre exemple ci-dessus, si dans la maquette Designer construisant le flux XPS, nous avons :<br>
+
In our above example, if in the Designer project creating the XPS file, we have :<br>
* '''Arial , Non Gras''' alors on aura dans le flux la police '''I'''<br>
+
* '''Arial , Not bold''' then in the output stream will have the call of font '''I'''
* '''Arial , Gras''' alors on aura dans le flux la police '''J'''
+
* '''Arial , bold''' then in the output stream will have the call of font '''J'''
  
====Cas des codes à barre====
+
====Barcodes case====
  
=====Balise barcode=====
+
<div class="mw-translate-fuzzy">
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.
+
=====Barcode tag=====
 +
This parameter is to embed or not the font of the barcode in the datastream. If the barcode font is not embedded, the barcode will then be managed by the printer itself using its own resident fonts.
 +
</div>
  
Lorsque ce paramètre n’est pas renseigné, il est activé par défaut.
+
La syntaxe dans le profil est :<code><barcode>PRINTER</barcode></code>
  
La syntaxe dans le profil est :
+
<u>Valeurs supportées</u> : IMG, FONT, PRINTER
  
<barcode>off</barcode><br>
+
<u>Valeur par défaut</u> : PRINTER
  
Valeurs supportées : <br>
+
IMG : embarqué sous forme d'image<br>
* '''FONT''' : La police est embarquée dans le flux <br>
+
FONT : embarqué sous forme de police<br>
* '''PRINTER''' : La police n'est pas embarquée dans le flux<br>
+
PRINTER : le code barre est généré par l'imprimante<br>
* '''IMG''' : Le code à barre sera envoyé en format image<br>
 
  
Pour des raisons de rétrocompatibilités, les valeurs suivantes sont également possible :<br>
 
* ON (on, YES, yes, 1) : La police n'est pas embarquée dans le flux<br>
 
* OFF (off, NO, no, 0) : La police est embarquée dans le flux<br>
 
  
Valeur par défaut : FONT
+
For retrocompatibily reason, the following values are also possible : <br>
 +
* ON (on, YES, yes, 1) : The font will not be embedded in the datastream<br>
 +
* OFF (off, NO, no, 0) : The font will be embedded in the datastream<br>
  
<div class="mw-translate-fuzzy">
 
 
===Custom Barcode Size===
 
===Custom Barcode Size===
</div>
 
  
<div class="mw-translate-fuzzy">
 
 
*bcheight: barcode height in points.
 
*bcheight: barcode height in points.
 
*bcwidth: two comma-separated values, corresponding to, respectively:
 
*bcwidth: two comma-separated values, corresponding to, respectively:
</div>
 
  
<div class="mw-translate-fuzzy">
 
 
- width of a thin bar in points
 
- width of a thin bar in points
</div>
 
  
<div class="mw-translate-fuzzy">
 
 
- ratio between a thin bar and a thick bar
 
- ratio between a thin bar and a thick bar
</div>
 
  
  
 
Example:
 
Example:
  
  <div class="mw-translate-fuzzy">
+
  <barcodes>
<barcodes>
 
 
         <barcode type="19" height="100" size="46" bcheight="55" bcwidth="3,2.6" />
 
         <barcode type="19" height="100" size="46" bcheight="55" bcwidth="3,2.6" />
 
  </barcodes>
 
  </barcodes>
</div>
 
  
 
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.
 
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.
Ligne 90 : Ligne 80 :
 
     <font name="Arial" italic="0" bold="1" codeFont="0" />
 
     <font name="Arial" italic="0" bold="1" codeFont="0" />
 
   </fonts>
 
   </fonts>
   barcode>OFF</barcode>
+
   <barcode>PRINTER</barcode>
 
   <barcodes>
 
   <barcodes>
 
     <barcode type="80" height="100" size="56" bcheight="200" bcwidth="2,2.0" />
 
     <barcode type="80" height="100" size="56" bcheight="200" bcwidth="2,2.0" />
Ligne 100 : Ligne 90 :
 
   </barcodes>
 
   </barcodes>
 
  </zebra></nowiki>
 
  </zebra></nowiki>
 +
 +
===Type de code barre===
 +
 +
{| class="wikitable"
 +
|-
 +
|2||PDF 417
 +
|-
 +
|11||Data Matrix
 +
|-
 +
|12||QR Code
 +
|-
 +
|14||MaxiCode
 +
|-
 +
|17||EAN 13
 +
|-
 +
|18||EAN 8
 +
|-
 +
|19||Code 39
 +
|-
 +
|20||Code 39 sans contrôle
 +
|-
 +
|21||Code 128 alpha optimisé
 +
|-
 +
|22||Code 128 alpha non optimisé
 +
|-
 +
|23||Code 128 numérique
 +
|-
 +
|24||2 Parmi 5 Entrelacé
 +
|-
 +
|25||2 Parmi 5 Entrelacé sans contrôle
 +
|-
 +
|26||2 Parmi 5 Industriel
 +
|-
 +
|27||2 Parmi 5 Industriel sans contrôle
 +
|-
 +
|28||EAN 128 alpha non optimisé
 +
|-
 +
|29||EAN 128 numérique
 +
|-
 +
|30||EAN 128 alpha optimisé
 +
|-
 +
|31||Postnet
 +
|-
 +
|32||Planet
 +
|-
 +
|35||Native
 +
|-
 +
|77||Japan Postal
 +
|-
 +
|78||Codabar
 +
|-
 +
|79||USPS
 +
|-
 +
|80||UPC-A
 +
|-
 +
|81||UPC-E
 +
|-
 +
|82||MSI
 +
|-
 +
|83||MSI 2 mod. 10
 +
|-
 +
|84||MSI mod. 11
 +
|-
 +
|85||MSI mod. 11 mod. 10
 +
|-
 +
|86||MSI no check
 +
|}

Version actuelle datée du 24 janvier 2025 à 14:03

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>

Fonts settings

Utilization of the resident text fonts

In order to make the ZEBRA stream ligher, it is possible no to include the fonts in the Zebra job. To do so, we need to use the fonts tag.

Exemple :

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

In our above example, if in the Designer project creating the XPS file, we have :

  • Arial , Not bold then in the output stream will have the call of font I
  • Arial , bold then in the output stream will have the call of font J

Barcodes case

Barcode tag

This parameter is to embed or not the font of the barcode in the datastream. If the barcode font is not embedded, the barcode will then be managed by the printer itself using its own resident fonts.

La syntaxe dans le profil est :<barcode>PRINTER</barcode>

Valeurs supportées : IMG, FONT, PRINTER

Valeur par défaut : PRINTER

IMG : embarqué sous forme d'image
FONT : embarqué sous forme de police
PRINTER : le code barre est généré par l'imprimante


For retrocompatibily reason, the following values are also possible :

  • ON (on, YES, yes, 1) : The font will not be embedded in the datastream
  • OFF (off, NO, no, 0) : The font will be embedded in the datastream

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>PRINTER</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>

Type de code barre

2 PDF 417
11 Data Matrix
12 QR Code
14 MaxiCode
17 EAN 13
18 EAN 8
19 Code 39
20 Code 39 sans contrôle
21 Code 128 alpha optimisé
22 Code 128 alpha non optimisé
23 Code 128 numérique
24 2 Parmi 5 Entrelacé
25 2 Parmi 5 Entrelacé sans contrôle
26 2 Parmi 5 Industriel
27 2 Parmi 5 Industriel sans contrôle
28 EAN 128 alpha non optimisé
29 EAN 128 numérique
30 EAN 128 alpha optimisé
31 Postnet
32 Planet
35 Native
77 Japan Postal
78 Codabar
79 USPS
80 UPC-A
81 UPC-E
82 MSI
83 MSI 2 mod. 10
84 MSI mod. 11
85 MSI mod. 11 mod. 10
86 MSI no check