This statement
OVRPRTF FILE(MYPRTF) DEVTYPE(*AFPDS) TOSTMF('/myapp/mypdfs') WSCST(*PDF)
beatifully generates a .pdf file and places it in the IFS-folder '/myapp/mypdfs'.
( ref:
http://www-01.ibm.com/support/docview.wss?uid=nas12bd8020c496ae912862575f400640da6 )
I have an overlay which I want to include in the .pdf file; - untill now with no luck..
My printerfile is compiled with this:
CRTPRTF FILE(mylib/FAK000P) + SRCFILE(mylib/QALLSRC) + SRCMBR(FAK000P) DEVTYPE(*AFPDS) + PAGESIZE(70 80) LPI(6) CPI(10) OVRFLW(66)
My program FAK000R is executed with this OVRPRTF:
OVRPRTF FILE(FAK000P) + TOFILE(mylib/FAK000P) + DEVTYPE(*AFPDS) + PAGESIZE(70 80) + LPI(6) + CPI(10) + UOM(*INCH) + FRONTOVL(mylib/FRS_OVL) + TOSTMF(&FROMSTMF) + WSCST(*PDF)
Result of the above is a neetly produced .pdf file placed in the IFS, but with NO overlay.
OBS: this functionality is V6R1 and above.
Any tip, hint is mostly welcome.
DanF
Software/Hardware used:
'AS400', V6R1
ASKED:
February 28, 2011 12:18 PM
UPDATED:
March 1, 2011 2:06 PM
Since overlay basically tells the printer to also print a second file on top of the first, rather than actually printing it, it might not be possible Dan. In fact, I have seen the same problem with tools that convert an existing spoolfile to a pdf. They get the data layout, but not the form.
BogKat,
From the url reference in my orig question, I refer
“The device type (DEVTYPE) parameter on these commands must be set to *AFPDS because only an Advanced Function Presentation data stream (AFPDS) can be converted to PDF with the new feature. AFPDS has the additional benefit of support for AFP resources, such as overlays, page segments, and even IFS resources (using the AFPRSC keyword in DDS) such as JPG, TIFF, and GIF files.
I read this text as if it actually IS an option to add an overlay…
DanF
6.1 seems to be including some nice bits that clean up difficulties in earlier releases. This one looks very nice indeed. Thanks, Dan, for posting a confirmation that it works.
Tom
whew — glad it does work!