ONYX - 9.0 - Usage

How to staple a document in XPS

De MappingDoc
Révision datée du 30 octobre 2019 à 09:48 par Jdieu (discussion | contributions) (Page créée avec « When stapling with Onyx Server in XPS mode, use the CUSTOM tag of the XPSconfig.conf. »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Autres langues :
English • ‎français

When stapling with Onyx Server in XPS mode, use the CUSTOM tag of the XPSconfig.conf.

Pour cela il faut appeler un profil de conversion ayant la commande d’agrafage (Les profils se trouvent dans le fichier de configuration Mapping XPSConfig.conf).


Voici 2 exemples de profiles faisant cela :

1. Ce profile (XPSSTAPLE) va agrafer le job entier, sans tenir compte du nombre de document présent dans le fichier XPS

<XPSSTAPLE>
 <label>XPSSTAPLE</label>
 <language>PCL</language>
 <color>off</color>
 <custom>
  <job>
   <before>@PJL SET STAPLE=TOPLEFT\x0D\x0A</before>
  </job>
 </custom>	
</XPSSTAPLE>

PS : La chaine de caractères \x0D\x0A génère un saut à la ligne.

Exemple avec 2 commandes PJL :

<XPSSTAPLE>
 <label>XPSSTAPLE</label>
 <language>PCL</language>
 <color>off</color>
 <custom>
  <job>
   <before>@PJL SET STAPLE=TOPLEFT\x0D\x0A@PJL SET OUTBIN=TOP</before>
  </job>
 </custom>	
</XPSSTAPLE>

2. Ce profile XPSSTAPLEM va agrafer individuellement chaque documents présents dans le XPS (Grâce au paramètre multijobpcl à ON)

<XPSSTAPLEM>
 <label>XPSSTAPLEM</label>
 <language>PCL</language>
 <color>off</color>
 <custom>
  <job>
   <before>@PJL SET STAPLE=TOPLEFT\x0D\x0A</before>
  </job>
 </custom>
 <multijobpcl>ON</multijobpcl>
</XPSSTAPLEM>