2,540 pts.
 Overlay and ‘print’ as pdf. Overlay not included !
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
  Help
 Approved Answer - Chosen by carlosdl

Hi BigKat ,

Problem solved.

I'm sorry, - I must admit that I made a mistake.. I had placed the overlay in a wrong library. My documentation with the original question is right and works.

I can now produce an invoice with coloured logo and other graphics printed to a pdf-file to email; - and the best thing: I use no 3rd party sw, - it's all standard with the system i from V6R1.

I'm a happy man.

DanF

ANSWERED:  Feb 28, 2011  3:53 PM (GMT)  by carlosdl

 
Other Answers:
Last Wiki Answer Submitted:  June 27, 2012  3:30 am  by    0 pts.
Latest Answer Wiki Contributors: 
To see other answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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.

 7,185 pts.

 

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

 2,540 pts.

 

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

 108,055 pts.

 

whew — glad it does work!

 7,185 pts.