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

Différence entre versions

De MappingDoc
(Page créée avec « *bcheight: barcode height in dots. *bcwidth: two comma-separated values, corresponding to, respectively: »)
 
(31 révisions intermédiaires par 2 utilisateurs non affichées)
Ligne 2 : Ligne 2 :
 
==Conversion to ZEBRA==
 
==Conversion to ZEBRA==
 
===Language Tags===
 
===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>
+
To enable the XPS to ZEBRA conversion profile, you first need to create a  ZEBRA profile using the <language> tag like this
  
===Custom barcode size===
+
<language>ZEBRA</language>
  
*bcheight: barcode height in dots.
+
===Résolution===
*bcwidth: two comma-separated values, corresponding to, respectively:
+
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.<br>
 +
 
 +
Exemple : 
 +
<nowiki> <fonts>
 +
  <font name="Arial" italic="0" bold="0" codeFont="I"/>
 +
  <font name="Arial" italic="0" bold="1" codeFont="J"/>
 +
</fonts></nowiki>
 +
 
 +
In our above example, if in the Designer project creating the XPS file, we have :<br>
 +
* '''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.
 +
 
 +
When this parameter is not set, it is set to '''OFF''', this means the barcode font will be embedded in the datastream.
  
- la largeur d’un élément fin en points
+
The syntax in the profile is as follow :
  
- le ratio entre un élément fin et un élément épais
+
<barcode>off</barcode><br>
  
 +
Supported values:<br>
 +
* '''FONT''' : The font is embedded in the datastream <br>
 +
* '''PRINTER''' : The font is NOT embedded in the datastream <br>
 +
* '''IMG''' : The barcode will be sent in image mode<br>
  
Exemple :
+
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>
  
<barcodes>
+
Default value : '''FONT'''
        <barcode type="19" height="100" size="46" bcheight="55" bcwidth="3,2.6" />
 
</barcodes>
 
  
Signifie qu'un code barre Code39 (type 19), avec une taille de police de 46 et une déformation verticale de 100%, sera imprimé en Zebra par un code barre résident de 55 points de haut, avec une barre fine de 3 points, et un ratio barres fines/barres épaisses de 2.6.
+
===Custom Barcode Size===
  
 +
*bcheight: barcode height in points.
 +
*bcwidth: two comma-separated values, corresponding to, respectively:
  
===Identification des polices résidentes===
+
- width of a thin bar in points
  
<nowiki><fonts>
+
- ratio between a thin bar and a thick bar
                <font name="Arial" italic="0" bold="0" codeFont="0" />
 
          </fonts></nowiki>
 
  
Où les valeurs decodeFontvalent : 0, A, B, C, D, E, F, G ou H.
 
  
 +
Example:
  
Des polices TTF, équivalentes des polices résidentes Zebra, sont disponibles en téléchargement sur l’extranet Mapping et peuvent être utilisées dans les formats M-Designer. Le profil de conversion XPS vers Zebra pour ne pas embarquer les polices mais utiliser les polices résidentes à la place sera de cette forme :
+
<barcodes>
 +
        <barcode type="19" height="100" size="46" bcheight="55" bcwidth="3,2.6" />
 +
</barcodes>
  
<nowiki><fonts>
+
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.
                <font name="Zebra 0 (Arial) " italic="0" bold="0" codeFont="0" />
 
                <font name="Zebra A" italic="0" bold="0" codeFont="A" />
 
                <font name="Zebra B" italic="0" bold="0" codeFont="B" />
 
                <font name="Zebra C" italic="0" bold="0" codeFont="C" />
 
                <font name="Zebra D" italic="0" bold="0" codeFont="D" />
 
                <font name="Zebra E (OCR-B)" italic="0" bold="0" codeFont="E" />
 
                <font name="Zebra Fitalic="0" bold="0" codeFont="F" />
 
                <font name="Zebra Gitalic="0" bold="0" codeFont="G" />
 
                <font name="Zebra H (OCR-A)" italic="0" bold="0" codeFont="H" />
 
</fonts></nowiki>
 
  
===Gestion de la découpe===
+
===Cutter Management===
  
 
  <cutter config="MMT" cmd="MMC" />
 
  <cutter config="MMT" cmd="MMC" />
Activation du couteau en fin d’impression
+
Activates the cutter at the end of printing
 +
 
 +
===Exemple de XPSConfig.conf===
 +
 
 +
<nowiki><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></nowiki>

Version actuelle datée du 1 juillet 2020 à 11:07

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.

When this parameter is not set, it is set to OFF, this means the barcode font will be embedded in the datastream.

The syntax in the profile is as follow :

<barcode>off</barcode>

Supported values:

  • FONT : The font is embedded in the datastream
  • PRINTER : The font is NOT embedded in the datastream
  • IMG : The barcode will be sent in image mode

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

Default value : 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>