Converting a spooled file into PDF is not an RPG function.
If you want to do it natively on your system, you need 5722IP1 IBM Infoprint Server.
The principe is to define a writer that will convert you spool into a PDF file and store it in the IFS.
See Chapter 4. Using the Infoprint Server for iSeries PDF transform in the Prining VI Redbook:
It's quit easy to start. It can be a bit tricky if you want something "customized".
Hope this will help
To use RPG yourself to generate PDF output, you might use either the <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/print1a.htm">General Print APIs and/or Exit Programs</a> to intercept printer output or various <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/print1b.htm">Spooled File APIs</a> to process spooled files already on *OUTQs.
The printer data would be processed by the RPG code <i>that you will write</i>. You will write the code to implement the PDF Specifications as described in the <a href="http://www.adobe.com/devnet/pdf/pdf_reference.html">Document Management – Portable Document Format – Part 1: PDF 1.7, First Edition</a> document.
If you choose to avoid the Print and.or Spooled File APIs, you can always write new programs that generate the PDF documents directly by using the specifications at that Adobe web site above.
Last Wiki Answer Submitted: July 23, 2010 6:26 pm by BillyBelgium190 pts.