I received an email from someone with a question about converting a spooled file with an embedded JPG file to PDF. I believe that this is supported but don't see the problem in his code. If anyone has any ideas please comment. Below is the email.
"I am by no means a AFPDS expert so I am doing a lot of trial and error. We currently have a print file that prints a barcode and that converts to PDF with no problems where I can see the text and the barcode (of course the barcode is just a font). When I try a test to include a JPG image I don't see the image in the generated PDF file using Acrobat Reader. So my question is does the current PDF conversion support JPG files?"
CLP code
OVRPRTF FILE(AFPTSTP) DEVTYPE(*AFPDS) WSCST(*PDF) TOSTMF('/fecginew/pdf/afptst.pdf')
CALL PGM(AFPTSTR)
RPG code
MO = '1234567890';
WRITE RPTD;
WRITE RPTI;
Print file code
A R RPTD
A O 2'MO#'
A MO 10A O 12
A R RPTI AFPRSC('0001028.jpg' +
A *JFIF 10.2 11.2 +
A (*PATH *CWD))
This comment has been removed by the author.
ReplyDeleteI had a typo in my last comment, here we go again:
ReplyDeleteJust change the last line to be:
(*PATH *CWD) (*MAPOPT *ST))
*MAPOPT is to specify how the object should be mapped in the object placement area.