The command PRTPDF enables you with the possibility to print a pdf file directly on the System i.
Print PDF file (PRTPDF)
Type choices, press Enter.
From IFS path name . . . . . . . PATH > '/apf3812home/view/kse.pdf'
Output format . . . . . . . . . OUTFMT > *SCS *PCL,*PCLCOLOR,*PCLGREY.. Output queue . . . . . . . . . . OUTQ > *JOB Name, *JOB Library . . . . . . . . . . . Name, *LIBL Form type . . . . . . . . . . . FORMTYPE *STD Character value, *STD Output spooled file name . . . . SPLFNAME PDFPRINT Name User data . . . . . . . . . . . USRDTA PDFPRT Character value,*INPUT.. Hold output spooled file . . . . HOLD *NO *NO, *YES Save output spooled file . . . . SAVE *NO *NO, *YES Paper Size . . . . . . . . . . . SIZE *A4 *INPUT, *LETTER, *LEGAL.. Copies . . . . . . . . . . . . . COPIES 1 1-255 Drawer . . . . . . . . . . . . . DRAWER *PRINTER 1-256, *PRINTER To stream file . . . . . . . . . TOSTMF
More... F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys
|
Print PDF file (PRTPDF)
Type choices, press Enter. Replace stream file . . . . . . REPLACE *NO *NO, *YES Right Adjust Version . . . . . . ADJUSTVER *NONE *NONE, 001, 002 Code page . . . . . . . . . . . CODPAG 037 037, 273, 277, 278, 280... Windows PC . . . . . . . . . . . WINPC *SELECT
Windows printer . . . . . . . . WINPRT *SELECT
Bottom F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys
|
The special fields of the command are explained below:
OUTFMT
The output format (OUTFMT) defines the format of the spooled file generated.
*PCL |
Print the PDF file in black/white PCL5e. |
*PCLCOLOR |
Print the PDF file in color PCL (PCL5c). |
*PCLGREY |
Print the PDF file in grey PCL5e. |
Prints the PDF file as a PDF spooled file. Note, that PDF spooled files can only be printed on printers, that supports the PDF printer data stream. |
|
*TXT |
Converts the PDF file into a text file (stream file) as specified in TOSTMF. |
*SCS |
Prints the PDF file as an *SCS spooled file. Notice the ADJUSTVER field to adjust the process. |
*WINPRINT |
Prints the PDF file through WinPrint as specified on the WINPC and WINPRT fields. Notice, that the value *SELECT for the WINPC and WINPRT fields should only be used for interactive jobs! |
As good as all PDF files can be printed with OUTFMT(*PDF). For the various PCL output formats only InterForm400 generated PDF files are supported. You will need to test other however your specific PDFD files can be printed in PCL, as this cannot be guaranteed.
Encrypted pdf files (that are not protected with a password) can also be printed.