When I fill out a pdf form and save it with evince (i.e., saving instead of printing to file), the saved document contains the filled-out form data but the form remains fillable. When I concatenate several such filled-out forms with pdfunite, the first form remains filled out, but the other forms return to their blank state. When I print to file instead, things work as expected, but the result is no longer fillable. (pdf forms to demonstrate this with are easy to come by, google "pdf form example" for example.)
If it's so easy to come by, i'm sure it'll be easy for you to get one and attach it here, also describe exactly the steps to reproduce your problem because it's not clear enough for me.
Created attachment 128552 [details] A very simple pdf form (created with OpenOffice)
Created attachment 128553 [details] A filled-out version of form.pdf
Created attachment 128554 [details] Broken pdfunite result Created with: pdfunite filled-out-form.pdf filled-out-form.pdf pdfunite.pdf Note that the form on page two is blank but it should be filled out.
Created attachment 128794 [details] [review] add fields to AcroForm dict This patch is probably not complete, it just adds the document root fields and probably should also merge resource dictionaries, but since I have no good examples to test the correct result I don't want to spend time on it. At least this patch solves the described problem.
Pushed
Thanks, the fix works for me.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.