OPALE - 10.0 - Usage
Stapling a PCL in XPS mode
De MappingDoc
Révision datée du 21 juin 2019 à 12:29 par Alestoquoi (discussion | contributions) (Page créée avec « N.B. The ''\x0D\x0A'' character chain generates a line break. »)
When stapling with Opale Server in XPS mode, use the CUSTOM tag of the CPSconfig.conf.
To do so, call a conversion profile with the stapling command (the profiles are located in the Mapping XPSConfig.conf configuration file).
Here are 2 profiles examples that do so:
1. The XPSSTAPLE profile staples the entire job regardless of the number of documents in the XPS file
<XPSSTAPLE> <label>XPSSTAPLE</label> <language>PCL</language> <color>off</color> <custom> <job> <before>@PJL SET STAPLE=TOPLEFT\x0D\x0A</before> </job> </custom> </XPSSTAPLE>
N.B. The \x0D\x0A character chain generates a line break.
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>