OPALE - 10.0 - Usage

Stapling in PCL direct language

De MappingDoc
Révision datée du 6 juin 2019 à 12:19 par Alestoquoi (discussion | contributions) (Page créée avec « == Example == »)
Autres langues :
English • ‎français

Introduction:

If you are generating a document in PCL direct language, you can staple it using the PJL Command Before and PJL Command After parameters of the MAPCPYSPLF command:

PJL Command Before . . . . . . . > _____________             Name, *MAP
PJL Command After  . . . . .. . . . > _____________          Name, *MAP 

When using this parameter, boot it with a value referencing a parameter of a PJL bloc in option 14/14 of the Mapping menu.

Example

On souhaite rajouter des codes PJL d'agrafage dans le flux PCL généré :

Définir le paramétrage dans l'option 14/14

MYDESTPRINTER   MYLIBPRINTER   PJLBEFORE   STAPLETOPL -> _____________________________

Le bloc PJL en question s'appelle "STAPLETOPL".

Edition du bloc PJL STAPLETOPL

Ensuite faire un 8 devant la ligne pour éditer le contenu du bloc PJL "STAPLETOPL".

Ensuite taper son contenu en HEXADECIMAL :

PJLBEFORE.jpg

Utilisation du bloc PJL

Ce bloc STAPLETOPL est maintenant prêt à être appelé dans la commande MAPCPYSPLF :

PJL Command Before . . . . . . . > BEFORE          Name, *MAP
 ===> MAPCPYSPLF SPLF(FACTURE) SPLNUM(9) JOB(QPADEV0005) JOBNUM(774463) 
USER(JDIEU) MAPNAM(TEST73_1) MAPSEQ(*MRG) OUTQ(MYLIBPRINTER/MYDESTPRINTER) PJLBEFORE(STAPLETOPL) TYPLAN(*PCL) XPSCONVERT('*NONE')

Warning-300px.png : Le paramètre AFTER est utilisé pour ajouter des commandes PJL en fin de job.

Résultat du flux en sortie

ESC-12345X@PJL 
@PJL SET STAPLE=LEFTTOP
@PJL ENTER LANGUAGE=PCL
ESCc15000D...FluxPCL...ESC-12345X