Geeta Bapat, Geeta Bapat wrote > In my application these files give errors as my code is unable to find the > required form fields in these files where are the original files work > correctly.
In addition to what Bruno already told you (i.e. that you had better throw away that code and use appropriate classes for splitting and merging of PDFs, which most often means not the PdfWriter) there is another issue you might have to deal with: Forms in PDFs are document-wide, i.e. you have only one form spanning the whole PDF. If you merge multiple PDFs and then again split them, the form element collections in the resulting PDFs might be different than before. Just consider the case of hidden form fields without association with a page: If one of the source PDFs (A.pdf) contained such a hidden field and you joined the PDFs and split them up again, where do you expect that hidden field to be eventually? (Depending on your merging and splitting code I would assume it to end up either in all of the re-split PDFs or in none, but definitively not only in the result PDF with the pages from A.pdf.) There are other issues, too, some of them quite subtle. In essence, therefore, you should avoid unnecessary merging and splitting gymnastics especially with PDFs with forms. Regards, Michael -- View this message in context: http://itext-general.2136553.n4.nabble.com/Concern-in-splitting-PDF-document-tp4658822p4658824.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php