on 11-09-2009 5:56 PM
Hi,
I would like to grab the contents of the return value of a Adobe form using the return value fpformoutput-pdf
In my simple mind I thought I could concatenate all of the different fpformoutput-pdf (e.g.when I look 10 invoices and make 10 calls to the form) and then save that hugh line as 1 pdf.
I indeed get 1 pdf with the total size of the individual pdf's but when I open it I only see the first document. I can only assume that each pdf string has a identifier like begin of form, begin page end page, end form and somehow I need to strip it of the individual forms and join the forms into pages.
Anybody any ideas?
Thanks!
Frans
You cannot merge the forms easily in SAP, but you can bundle the forms together: you can generate a form (a main one) and some other forms attach to it (as ordinary emaile attachment). Check the attachment icon on the left bottom in the adobe reader, here you can add other "attached" forms. Next you can delete them, save them, print them etc.
You cannot see everything at one moment, but mostly this can suffice. Like when you print a header as a main form, attach lines as an attached form, next you add report1 result as next attached form etc.
Check report (SE38) FP_PDF_TEST_16 which can help you with the technical details of the development of such a solution.
Hope this can at least partially help.
Have a nice day, Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sandra's response hints at the required process, though it's not a true internal solution. There was a wiki posted on it a while ago as well but it wasn't very slick. The code basically dumped the PDF files into an app server directory with a common naming convention, used an operating system command to trigger a 3rd party PDF tool that does the merging, then read back the resulting file from the folder, and then cleaned up the folder.
PDF forms don't work like sapscript and smart forms, you can't merge into one PDF file. The only positive answer I saw within SAP is in [NW 7.01 + CE, see chapter "Output of multiple form templates in a single PDF"|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/40638d89-66ae-2b10-bd8b-dd665e28f906&overridelayout=true]. Otherwise, use an third-party software to merge several PDFs into one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just in case someone looking for info comes across this answer, the situation is now (2023) a bit changed:
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.