From YiPs Wiki (i powered)

PASE: Pdf 2 Ps Outq

This page was created by request of ZendCon/LUG members that wanted a IBM i only way to transform PDF documents to PostScript and then send to a IBM i OUTQ (printer).

Software Prerequisites

       Note: Use the instructions found here: Open Source Binaries

Run

The pdf2ps2outq.sh PASE script will transform PDF (input.pdf) to PostScript (output.ps), then copy PostScript to OUTQ (qgpl/qprint). Feel free to modify pdf2ps2outq.sh to fit your needs (change outq, etc.).

Usage (example IFS /home/adc, but any dir will do):

call qp2term
> cd /home/adc
> pdf2ps2outq.sh input.pdf output.ps
QSH CMD('/home/adc/pdf2ps2outq.sh /home/adc/input.pdf /home/adc/output.ps')
SBMJOB CMD(QSH CMD('/home/adc/pdf2ps2outq.sh /home/adc/input.pdf /home/adc/output.ps'))

Note from user CL *USERASCII …

Thank you for your effort, it all worked for me. Except one minor issue.

“cat” command.

For me, when I didn’t use “cat -c” (note the switch “-c”) and then I printed the generated “*USERASCII spooled file” on the real hardware paper printer (Postscript ASCII stream) it printed plain garbage text on the paper. I had the issue only when I run it from iSeries CL command: QSH cmd(‘cat …’). If the “cat” command was run directly from qsh shell then all is OK even without “-c” switch.

Switch “-c” on iSeries PASE “cat” command means: no translate/conversion of “text/binary” data. Best regards

Author Tony “Ranger” Cairns

Retrieved from http://youngiprofessionals.com/wiki/index.php/PASE/Pdf2PsOutq
Page last modified on January 29, 2015, at 01:41 PM EST