Print an existing PDF document.
Syntax
CHGVAR |
VAR(&CMD) VALUE('PDFPRINT') |
CHGVAR |
VAR(&PARM1)
VALUE(' |
CHGVAR |
VAR(&PARM2) VALUE(' ') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT) |
Parameters
Parameters |
|
Parm1 Parm2 |
File : Path to the PDF file to print.
Printer: Name of the printer to use.
PWD: If the document is protected, set the user password.
StartPage: Number of the first page to print. Default is 1.
EndPage: Number of the last page to print. By default, the document is printed to the end.
Copies: Number of copies to print. By default, number of copies=1.
|
Example
CHGVAR |
VAR(&CMD) VALUE('PDFPRINT') |
CHGVAR |
VAR(&PARM1) VALUE('File="C:\Documents\Resultat.pdf"') |
CHGVAR |
VAR(&PARM2) VALUE('Printer="\\Server\HP Laser 2200"') |
CALL |
PGM(LNCCMD)
PARM(&HANDLE &CMD &OPT &PARM1 + |
See also