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

Différence entre versions

De MappingDoc
(Page créée avec « In the generated PCL flow, the information will be positioned in PCL sequences for each document (or for each page) of the print job. Example: '''&n11WdPreprinted'''. »)
(Page créée avec « For black and white output only, the following parameter allows you to use the fill patterns generated in the XPS (= true), or those of the printer (= false): <code><uplo... »)
 
(21 révisions intermédiaires par le même utilisateur non affichées)
Ligne 60 : Ligne 60 :
 
In the generated PCL flow, the information will be positioned in PCL sequences for each document (or for each page) of the print job. Example: '''&n11WdPreprinted'''.
 
In the generated PCL flow, the information will be positioned in PCL sequences for each document (or for each page) of the print job. Example: '''&n11WdPreprinted'''.
  
===Gestion des marges d'impression===
+
===Management of printing margins===
  
Deux paramètres, exprimés en points (sur la base d'une résolution de 300 dpi) permettent d’ajuster les marges d’impression horizontales (X) et verticales (Y). Cela correspond aux marges réelles de l'imprimante.
+
 
 +
Two parameters, expressed in points (based on a resolution of 300 dpi) allow you to adjust the horizontal (X) and vertical (Y) printing margins. This corresponds to the actual printer margins.
 
  <marginx>78</marginx>
 
  <marginx>78</marginx>
 
  <marginy>0</marginy>
 
  <marginy>0</marginy>
  
  
<u>Valeurs par défaut</u> : 78 pour marginx et 0 pour marginy. C'est-à-dire 0,66cm pour le marginx et 0cm pour le marginy, correspondant aux marges par défaut des imprimantes PCL.
 
  
===Gestion de l'agrafage===
+
<u>Default values</u>: 78 for marginx and 0 for marginy. That is to say 0.66cm for the marginx and 0cm for the marginy, corresponding to the default margins of PCL printers.
  
Nouvelle table de correspondance entre un type d’agrafage défini dans le document XPS et le code PCL/PJL qui sera inséré dans le document final pour piloter le matériel d’agrafage.
 
  
La syntaxe dans le profil est :
+
===Stapling management===
 +
 
 +
 
 +
New correspondence table between a stapling type defined in the XPS document and the PCL/PJL code which will be inserted in the final document to control the stapling equipment.
 +
 
 +
 
 +
The syntax in the profile is:
 
  <stapling>
 
  <stapling>
 
         <staple from="SaddleStitch" to="@PJL SET STAPLE=ON" />
 
         <staple from="SaddleStitch" to="@PJL SET STAPLE=ON" />
Ligne 81 : Ligne 86 :
  
  
Types d’agrafage supportés :
+
 
 +
Supported stapling types:
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
|SaddleStitch||reliure cousue
+
|SaddleStitch||stitched binding
 
|-
 
|-
|StapleBottomLeft||agrafage en bas à gauche
+
|StapleBottomLeft||staple bottom left
 
|-
 
|-
|StapleBottomRight||agrafage en bas à droite
+
|StapleBottomRight||staple bottom right
 
|-
 
|-
|StapleDualBottom||agrafage en bas
+
|StapleDualBottom||staple at bottom
 
|-
 
|-
|StapleDualLeft||agrafage à gauche
+
|StapleDualLeft||left stapling
 
|-
 
|-
|StapleDualRight||agrafage à droite
+
|StapleDualRight||right stapling
 
|-
 
|-
|StapleDualTop||agrafage en haut
+
|StapleDualTop||staple on top
 
|-
 
|-
|StapleTopLeft||agrafage en haut à gauche
+
|StapleTopLeft||staple top left
 
|-
 
|-
|StapleTopRight||agrafage en haut à droite
+
|StapleTopRight||staple top right
 
|}
 
|}
  
  
===Gestion des images===
+
===Image management===
 +
 
 +
 
 +
 
 +
====Sharing of resources====
 +
 
 +
 
 +
To optimize the size of the converted stream, a first parameter allows you to manage the background images as a resource in the document. Images common to several pages are only present once in the final PCL.
 +
 
 +
 
 +
The syntax in the profile is:<code><imageresource>ON</imageresource></code>
 +
 
 +
 
 +
 
 +
<u>Supported values</u>: ON/OFF, on/off, YES/NO, yes/no, 0/1
 +
 
  
  
====Mutualisation des ressources====
+
====Image compression====
  
Pour optimiser la taille du flux converti, un premier paramètre permet de gérer les images du fond de page en tant que ressource dans le document. Les images communes à plusieurs pages ne sont présentes qu’une seule fois dans le PCL final.
 
  
La syntaxe dans le profil est :<code><imageresource>ON</imageresource></code>
+
Still with the aim of optimizing the size of the streams, several output image compression algorithms are implemented and can be used in the profiles:<code><RasterCompressionMethod>Raw</RasterCompressionMethod></code>
  
  
<u>Valeurs supportées</u> : ON/OFF, on/off, YES/NO, yes/no, 0/1
 
  
 +
<u>Supported values</u>:
  
====Compression des images====
 
  
Toujours dans le but d’optimiser la taille des flux, plusieurs algorithmes de compression des images en sortie sont implémentés et peuvent être utilisés dans les profils :<code><RasterCompressionMethod>Raw</RasterCompressionMethod></code>
+
*Raw: Raw mode, without optimization or compression. This mode is not recommended in production, but it does allow you to validate the interpretation of the input image stream.
  
  
<u>Valeurs supportées</u> :
+
*RLE: Run Length Encoding mode. This method is recommended for images with a high rate of identical colors. On the other hand, it is strongly not recommended for images with color gradients.
  
*Raw : Mode brut, sans optimisation ni compression. Ce mode n’est pas conseillé en production, il permet en revanche de valider l’interprétation du flux d’image en entrée.
+
*TIFF: Enhanced RLE mode. This versatile method mixes the two previous ones, thus avoiding wasting space on gradients in particular.
 +
*DeltaRow: Row difference mode. This method uses the previous line to describe the next line and therefore only encodes the differences. Optimal method in most cases.
  
*RLE : Mode Run Length Encoding. Cette méthode est conseillée pour les images avec un taux élevé de couleurs identique. En revanche, elle est fortement déconseillée pour les images avec des dégradés de couleurs.
 
  
*TIFF : Mode RLE amélioré. Cette méthode polyvalente mixe les deux précédentes évitant ainsi de perdre de la place sur les dégradés notamment.
+
*Adaptive: Adaptive mode. This method detects among the previous ones which method is the best for each of the lines of the image to be encoded.
*DeltaRow : Mode Différence de ligne. Cette méthode utilise la ligne précédente pour décrire la ligne suivante et n’encode donc que les différences. Méthode optimale dans la plupart des cas.
+
*Dynamic: Improved version of Adaptive mode for very large images, especially in combination with the fullimage setting ON.
  
*Adaptive : Mode adaptatif. Cette méthode détecte parmi les précédentes quelle méthode est la meilleure pour chacune des lignes de l’image à encoder.
 
*Dynamic : Version améliorée du mode Adaptive pour les très grosses images, notamment en combinaison avec le paramètre fullimage à ON.
 
  
 +
====Filling management====
  
====Gestion des remplissages====
 
  
Pour les sorties en noir et blanc uniquement, le paramètre suivant permet d’utiliser les motifs de remplissage générés dans le XPS (= true), ou bien ceux de l’imprimante (= false) :<code><uploadPattern>true</uploadPattern></code>
+
For black and white output only, the following parameter allows you to use the fill patterns generated in the XPS (= true), or those of the printer (= false): <code><uploadPattern>true</ uploadPattern></code>

Version actuelle datée du 2 janvier 2025 à 15:48

Autres langues :
English • ‎français

Conversion to PCL5

Language tag

To configure the conversion profile for XPS to PCL conversion, you must set the language parameter to PCL <language>PCL</language>


Input/output bin management

This involves defining a correspondence table between a logical code (numerical value) applied in the XPS document and the PCL code of the destination printer tray. The syntax in the profile is:

<inputbin>
       <bin from="1" to="8" />
       <bin from="2" to="1" />
       <bin from="3" to="2" />
</inputbin>
<outputbin>
       <bin from="5" to="2" />
       <bin from="7" to="3" />
</outputbin>


Caution :

The logical codes (which can, for example, represent the geographical location of the bins on the printer) can be the same from one printer to another. These are 'user' values ​​and the PCL codes are specific to each printer. They can vary from one manufacturer to another and sometimes even from one printer model to another for the same brand.


Paper type management

Here again, it is a correspondence table between a logical value (user) and a PCL code (hardware dependent) corresponding to the desired paper format.


Management at Print Job level : To add a MEDIATYPE sequence to an XPS file, you can run the following command:

"[%PATH_BIN%]/map_xps" "-infile:[%MAP_FILE_IN%]" "-set:MEDIATYPE=Header_Paper" "-outfile:[%MAP_FILE_OUT%]"


<mediatype>

       <type from="Letterhead" to="Letterhead" />
       <type from="Preprinted" to="Preprinted" />
       <type from="Normal paper" to="Plain" />
</mediatype>


In the generated PCL flow, the information will be positioned in a PJL sequence at the start of the print job: @PJL SET MEDIATYPE=Preprinted


Management at Document or Page level :

<mediatype mode="AlphanumericID">
       <type from="Letterhead" to="Letterhead" />
       <type from="Preprinted" to="Preprinted" />
       <type from="Normal paper" to="Plain" />
</mediatype>


In the generated PCL flow, the information will be positioned in PCL sequences for each document (or for each page) of the print job. Example: &n11WdPreprinted.

Management of printing margins

Two parameters, expressed in points (based on a resolution of 300 dpi) allow you to adjust the horizontal (X) and vertical (Y) printing margins. This corresponds to the actual printer margins.

<marginx>78</marginx>
<marginy>0</marginy>


Default values: 78 for marginx and 0 for marginy. That is to say 0.66cm for the marginx and 0cm for the marginy, corresponding to the default margins of PCL printers.


Stapling management

New correspondence table between a stapling type defined in the XPS document and the PCL/PJL code which will be inserted in the final document to control the stapling equipment.


The syntax in the profile is:

<stapling>
        <staple from="SaddleStitch" to="@PJL SET STAPLE=ON" />
        <staple from="StapleBottomLeft" to="@PJL SET STAPLE=ON" />
        …
</stapling>


Supported stapling types:

SaddleStitch stitched binding
StapleBottomLeft staple bottom left
StapleBottomRight staple bottom right
StapleDualBottom staple at bottom
StapleDualLeft left stapling
StapleDualRight right stapling
StapleDualTop staple on top
StapleTopLeft staple top left
StapleTopRight staple top right


Image management

Sharing of resources

To optimize the size of the converted stream, a first parameter allows you to manage the background images as a resource in the document. Images common to several pages are only present once in the final PCL.


The syntax in the profile is:<imageresource>ON</imageresource>


Supported values: ON/OFF, on/off, YES/NO, yes/no, 0/1


Image compression

Still with the aim of optimizing the size of the streams, several output image compression algorithms are implemented and can be used in the profiles:<RasterCompressionMethod>Raw</RasterCompressionMethod>


Supported values:


  • Raw: Raw mode, without optimization or compression. This mode is not recommended in production, but it does allow you to validate the interpretation of the input image stream.


  • RLE: Run Length Encoding mode. This method is recommended for images with a high rate of identical colors. On the other hand, it is strongly not recommended for images with color gradients.
  • TIFF: Enhanced RLE mode. This versatile method mixes the two previous ones, thus avoiding wasting space on gradients in particular.
  • DeltaRow: Row difference mode. This method uses the previous line to describe the next line and therefore only encodes the differences. Optimal method in most cases.


  • Adaptive: Adaptive mode. This method detects among the previous ones which method is the best for each of the lines of the image to be encoded.
  • Dynamic: Improved version of Adaptive mode for very large images, especially in combination with the fullimage setting ON.


Filling management

For black and white output only, the following parameter allows you to use the fill patterns generated in the XPS (= true), or those of the printer (= false): <uploadPattern>true</ uploadPattern>