Help us understand your situation a bit better. > I have found there are some PDF forms that will either no longer show > fields or forms for which combo boxes reset to their default > values when used with this scenario.
Are you flattening these forms before or after you merge them? You should always flatten forms prior to merging them. Fields with the same name all have the same value. If one of your fields "FirstName" was empty, all the fields named "FirstName" can be empty. IIRC the value of the first version of a given field is preserved, though I'm far from certain. Are these forms AcroForms or LiveCycle forms? iText has a variety of limitations when it comes to LiveCycle forms. Flattening dynamic LiveCycle forms Just Wont Work, none of the fields appear. If AcroFields.getXFA() doesn't return null, it's a LiveCycle form. Was the visibility of the fields that disappeared controlled by script? iText doesn't run script. At all. Were the vanishing fields set to be invisible while printing? iText treats flattening as printing as far as field visibility goes. What version of iText are you using? --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer<Cardiff> DisCard = null; > -----Original Message----- > From: Craig Garvis [mailto:[email protected]] > Sent: Thursday, August 12, 2010 11:51 AM > To: [email protected] > Subject: [iText-questions] iText Flattening causing data > loss/distortion? > > I am using the iText library in conjunction with a ColdFusion > web server to merge a group of PDF files into one document. I > enable the document flattening on each PDF and in the general > case, the documents are merged without incident. I have found > there are some PDF forms that will either no longer show > fields or forms for which combo boxes reset to their default > values when used with this scenario. I cannot publicly post > the PDF files but I can provide them via email or FTP on request. > > I am looking for measures to detect affected documents and > either resolve the issue or use some alternate method to > produce a combined result. > > > -------------------------------------------------------------- > ---------------- > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.itextpdf.com/book/ Check the > site with examples before you ask questions: > http://www.1t3xt.info/examples/ You can also search the > keywords list: http://1t3xt.info/tutorials/keywords/ > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.851 / Virus Database: 271.1.1/3060 - Release > Date: 08/11/10 23:34:00 > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
