AS/400 Commands Used to Call the Native AFP to PDF Converter
From Support
Overview
The Native AFP to PDF converter for the AS/400 converts AFP reports on the AS/400 into PDF format. The AFP to PDF converter uses the IBM AS/400 Host Print Transform service to convert AFP reports into PDF format for viewing and printing via the Adobe Acrobat Reader.
In some cases where AFP printers are being used, FONT ID's are stored in the AS/400 report DDS definitions. AS/400 report DDS may need to be re-engineered to use the IBM AFP software fonts "IBM AFP Software Font Collection" which are available from IBM as part of the AFP utilities. When using the AFP soft fonts, the FONT keyword will be replaced by the FNTCHRSET keyword in all printer DDS specificiations. Contact RJS Software Systems if you have questions on this.
AS/400 Commands
Listed below is the AS/400 command used to call the Native AS/400 AFP to PDF Converter. All commands are contained in the RJSCONVERT library on the AS/400.
1.) CPYAFPPDF - This command allows an AFP spool file to be converted to PDF format. The resulting file is placed into the specified file name in the AS/400 IFS.
Example: The command listed below copies and converts an AFP spool file to a file named REPORT.PDF in the root IFS directory.
CPYAFPPDF FILE(QSYSPRT) JOB(011322/RJS/QPADEV0001) SPLNBR(*LAST) MFRTYPMDL(*HP4) WSCSTNAME(QWPTIFFG4) WSCSTLIB(QSYS) IFSFILE('/REPORT.PDF')
Parameters: Spooled File Name: Enter the spool file name to copy. Job name: AS/400 job name for spool file. User name: AS/400 user name for spool file. Job number: AS/400 job number for spool file. Manufacturer type and model: Printer manufacturer type and model for host print transform. Always use *HP4. WSCST Name: AS/400 workstation customization object. Always use QWPTIFFG4 WSCST Library: AS/400 workstation customization library. Always use QSYS IFS output file name: Specify where the PDF file will get created in the IFS.
