1 person found this helpful
This is a bit more complicated than it looks like.
When you populate the data in that PDF, it puts the data in a data layer that's different than the layout.
When you flatten the PDF it just flatten the layout layer. So you need to make sure the data gets to that layout layer.
So here's something you can try. Try to export that data server side and use GeneratePrintedOuput to merge it back with you template and see if that helps.
This should be fixed in ES2 (but I never tried it).
It is not fixed in ES2 because I'm using that version.
I'll try it your way and let you know, but is there no way (for example in preSave) to merge the data and the layout together?
Sorry Jasmin but your proposal didn't work.
Do you know another solution?
My problem is still not solved..
When I put a signature field on the form, sign the filled form and than flatten it via transformPDF the data is in the form as it should be! However, when I don't put a signature on it, all the data is lost! So signing a signature field must trigger something that merges the data with the form, or not? Is there a way to imitate this behaviour??
Please can anyone help me!?
Thanks in advance,
Can you post you the data file you're trying to merge and the template?
I'm going to try to use the GeneretPrintedOutput to merge them. This has to work. We do this all the time.
There is no data file, the data comes from a WSDL-webservice and it is retreived by opening the browser with an url to the pdf file and some parameters.
How can I attach a pdf to this comment?