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:
http://publib-b.boulder.ibm.com/abstracts/sg246250.html?Open
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.
Tom
Last Wiki Answer Submitted: July 23, 2010 6:26 pm by BillyBelgium190 pts.
All Answer Wiki Contributors: BillyBelgium190 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
You can do it directly. you will need to load “transform services”. it is free and on disk bxxxx_02. after that you can use OVRPRTF to specify path.