Earlier we were using PDF creator software to convert spool files. laser printer connected to iSeries · Converting IPDS to AFPDS and getting. Hello,. I did not like the first solution I found–the Get Spooled File (QSPGETSP) API. QSPGETSP is plenty capable of reading an AFPDS. it possible to convert AFP spool files to PDFs for the purposes of archiving them ( creating some sort of index over them) without a) having InfoPrint for Iseries or.
|Published (Last):||11 July 2009|
|PDF File Size:||12.62 Mb|
|ePub File Size:||16.61 Mb|
|Price:||Free* [*Free Regsitration Required]|
This will cause the new spooled file to print in portrait instead of landscape.
One oft-requested functionality is accessing the spool files as a PDF in the Web browser. Now the input stream needs to be converted to a string so that fike PDF can be created with that text:.
Determine the job qualifier, file name, and spooled file number for this spooled file. Tim Swearingen I don’t want to see us throw good money after bad. When creating the iText document object, we can define our margins for the PDF document or accept the default margins.
Not according to the web site it ain’t Check here to start a new keyword fonvert. Create a physical file using the CRTPF command with a record length equal to the record length of the spooled file. The job qualifier, file name, and spooled file number are shown at the top of the Work with Spooled File Attributes screen. Use the Page Down key to scroll down 4 or 5 pages until you find the entry for Page size. Type Option 8 attributes next to the spooled file, and press the Enter key.
Converting AFP spool files to PDFs
Press the F21 select assistance level key, and ensure that the assistance level is set to 2 intermediate. I can pick out where my pertinent pieces of data are when I run the program in debug mode and look at the user space. Job name of the spool file that will be converted to the PDF.
Repeat Step 8 until all of the spooled files have been copied to the same physical file member.
Converting an IBM i Spool File to a PDF
These spool file attributes and the PDF file location and name will serve as the input arguments for the Java program. This can be found by typing option 8 attributes next to the spooled file iseriez pressing the Enter key. Save the changes to the source physical file member. The nine arguments required for our Java class are:. User profile used to connect to the identified i.
Post by GB Free?
During this process, many businesses want to use the existing code to reach the market faster. Name of the spool file that will be converted to the PDF.
For more information, please refer to the following document: The source physical file should be created with a record length at least 13 columns greater than the page width to accommodate not only the First Character Form Control FCFC byte, but also the source sequence number which contains 6 bytes and the date which contains 6 bytes which exist on each line of text in the source physical file member.
For example, if the page width isuse the following command to create a source physical file with a record length of Post by Bill Howie Rodney, I have set up my logic for this process to do this: Once all of the arguments are validated, establish a connection to the IBM i to access the spool file.
By using the iText PdfWriter, we pass the cnovert object we just created and fileoutputstream we created during the input arguments to create the blank PDF file in the location specified. Type option 8 attributes next to the spooled file and press the Enter key.
Is it possible to convert AFP spool files to PDFs for the purposes of archiving them creating some sort of index over them without a having InfoPrint for Iseries or b purchasing a third-party product to do it?
The Project properties window appears.
Now you should have a PDF generated with the spool file contents in the text format. Contact and feedback Need support? Watson Product Search Search. Atpds out the job qualifier, file name, and spooled file number for this spooled file.