Fields no longer editable after merging
I want to merge 2 pdf files and show the prepopulated data in pdf fields and leave them editable. Before merge process, I need to get data from the database and populate the pdf acrofields. I am getting 2 PdfReader objects for 2 pdf files after populating pdf files with data and I try concatenating the files using PdfCopy. Now app is opening and merging the 2 pdf files successfully but not showing any DB data that was populated.
If i use stamper.setFormFlattening(false) then app wont show any prepopulated data and make all the fields non editable. If i use stamper.setFormFlattening(true) then app shows the prepopulated data but make all the fields non editable.
Objective:
I want to show the prepopulated data as well as leave the fields editable for the end users.
- Login to post comments

Please read section 6.4.3.
Submitted by Bruno Lowagie on Mon, 03/07/2011 - 10:05.What you're describing is explained almost literally in the book.
If you don't own a copy of the book, you're in luck, because you can download the chapter that deals with this problem for free. Please go to the book page at Manning. Under "Resources" in the left column "Downloads" you'll find a link to some free chapters of the documentation. You need to download chapter 6 and read it.