You can refer to this article for the Spool File conversion to PDF: 
http://systeminetwork.com/article/generate-pdf-files-using-only-i-61-0
If you want to do a quick test in less few minutes, just do this:
1) Create /home/user/folder on IFS
2) On the command line, OVRPRTF FILE(*PRTF) DEVTYPE(*AFPDS) TOSTMF('/home/user/folder') WSCST(*PDF)                         
3) On the same session, Right Click on your Client Access Session, Click on "Pad 2" button at the bottom and then click on "HostPrn" button. 
4) Check the job log for any issue logged, if any.
5) Rather than WRKSPLF, do WRKLNK '/home/user/folder' to see the stream file, or use Filezilla/IBM Navigator to download the file to your desktop and visualize it with a PDF viewer.
~jmerinoh~
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Buddy McClean
Sent: Friday, July 15, 2011 2:20 PM
To: Midrange Systems Technical Discussion
Subject: RE: Convert to PDF
I did run across use of the *PDF customization in documentation on IBM's site, but had not researched it. - Thanks 
Jorge Merino <jorge@xxxxxxxxx> 7/15/2011 3:06 PM >>>
If you are on V6R1 at least and you are looking for something extremely easy to generate spool files and send them over email, just use:
OVRPRTF FILE(YOURPRTF) DEVTYPE(*AFPDS) TOSTMF('/home/jmerinoh/testpdf/yourpdf.pdf') WSCST(*PDF)                  
CALL YOURPROGRAM
And then email it using Aarons Bartell's RPGMail utility.
~jmerinoh~
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Buddy McClean
Sent: Friday, July 15, 2011 10:14 AM
To: midrange-l@xxxxxxxxxxxx
Subject: Convert to PDF
Good Day All,
I am just beginning on the process to convert spool entries to PDF and e-mail.
I already use the convert to PDF to IFS, works fine.
I have set up the PSFCFG Object - below.
I can use I Navigator to select an existing spool file of SCS ( or AFPDS) print type and choose 'convert to PDF'. The process goes smooth but does not print and holds the entry in PDF_EMAIL. I have not found anything that appears useful in the writer job logs. I use the same 'to' email address to send the PDF as I use to send the error msg to. I get the error email, but not the job email. 
I have the PSFCFG object set to use an external email server to send mail and when the job fails, it does send me an email, with the correct PDF attached to tell me that "The attached PDF file could not be distributed" ( to the original address).  As a side strangeness - The reply address on the error email is qspljob@xxxxxxxxxx. 
At least it has a connection to the external email server. 
Does this appear to be an error with the PSF CFG object? the print gets converted and attached to the error email and sent to the external email server. Is an error in the PSFCFG causing the writer to stop in the middle of printing and I am seeing the error simply for an incomplete print? 
I can move the print entry that got put on hold to the queue for PDF to IFS and it works fine. 
I have set the FIDELITY to *CONTENT to allow printing with font substitutions. The job log details the substitutions but does not detail why the PDF did not get sent. Only sent to the error email address. 
Any ideas where to look next. - Thanks
5761SS1 V6R1M0  080215                                             
PSF configuration:   PDF_EMAIL      Library:   MARR               
User resource library  . . . . . . . . . . . . . :   *JOBLIBL     
IPDS pass through  . . . . . . . . . . . . . . . :   *NO          
Activate release timer . . . . . . . . . . . . . :   *NORDYF      
Release timer  . . . . . . . . . . . . . . . . . :   *NOMAX       
Restart timer  . . . . . . . . . . . . . . . . . :   *IMMED       
APPC and TCP/IP retry count  . . . . . . . . . . :   15           
Delay time between retries . . . . . . . . . . . :   90           
Auto Session Recovery:                                            
   Enabled  . . . . . . . . . . . . . . . . . . . :   *NO          
   Message option . . . . . . . . . . . . . . . . :                
Acknowledgment frequency . . . . . . . . . . . . :   100          
Printer response timer . . . . . . . . . . . . . :   *NOMAX       
Blank page . . . . . . . . . . . . . . . . . . . :   *NO          
Page size control  . . . . . . . . . . . . . . . :   *NO          
Resident fonts . . . . . . . . . . . . . . . . . :   *YES         
Resource retention . . . . . . . . . . . . . . . :   *YES         
   Edge orient  . . . . . . . . . . . . . . . . . . :   *NO         
  Use outline fonts  . . . . . . . . . . . . . . . :   *NO         
  PSF defined options:                                             
    *NONE                                                          
  Font substitution messages . . . . . . . . . . . :   *YES        
  Capture host fonts at printer  . . . . . . . . . :   *NO         
  Cut sheet emulation mode . . . . . . . . . . . . :   *NONE       
  Font resolution for formatting . . . . . . . . . :   *SEARCH     
  Font mapping table . . . . . . . . . . . . . . . :   *NONE       
    Library  . . . . . . . . . . . . . . . . . . . :               
  Use DBCS simulation font . . . . . . . . . . . . :   *NO         
  Generate PDF output:                                             
    *MAIL                                                          
  PDF device emulation type  . . . . . . . . . . . :   *IP40240    
  PDF paper size drawer 1  . . . . . . . . . . . . :   *LETTER     
  PDF paper size drawer 2  . . . . . . . . . . . . :   *LETTER     
  PDF multipe group handling:                                      
    Acknowledge multiple groups  . . . . . . . . . :   *YES        
    Process option . . . . . . . . . . . . . . . . :   *SPLIT      
        PDF fonts inline . . . . . . . . . . . . . . . . :   *YES                           
PDF data queue . . . . . . . . . . . . . . . . . :   *NONE                          
   Library  . . . . . . . . . . . . . . . . . . . :                                  
PDF mail server:                                                                    
   192.168.2.253                                                                     
Sender of PDF mail . . . . . . . . . . . . . . . :   PDFSEND                        
                                           PSF Configuration Information             
5761SS1 V6R1M0  080215                                                               
PDF administrator  . . . . . . . . . . . . . . . :   buddy.mcclean@xxxxxxxxxxxx     
PDF user program . . . . . . . . . . . . . . . . :   *NONE                          
   Library  . . . . . . . . . . . . . . . . . . . :                                  
PDF mapping object . . . . . . . . . . . . . . . :   *NONE                          
   Library  . . . . . . . . . . . . . . . . . . . :                                  
PDF output queue . . . . . . . . . . . . . . . . :                                  
   Library  . . . . . . . . . . . . . . . . . . . :                                  
PDF file location  . . . . . . . . . . . . . . . :                                  
Save AFP data  . . . . . . . . . . . . . . . . . :   *NO                            
AFP output queue . . . . . . . . . . . . . . . . :                                  
   Library  . . . . . . . . . . . . . . . . . . . :                                  
  Text description . . . . . . . . . . . . . . . . :                                            
Device resource library list:                                                                 
   *DFT                                                                                        
                                         * * * * *   E N D  O F  L I S T I N G   * * * * *                                                                                                                                                                                                                       
As an Amazon Associate we earn from qualifying purchases.