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.
I want to show the prepopulated data as well as leave the fields editable for the end users.