Hi, I am trying to merge 2 pdf files using iText, first pdf contains 27 pages and second pdf contains 27 pages. It is taking lot of time to merge these two files approximately 5 mins. This is my code snippet.
try{ PdfReader reader1 = new PdfReader("U:\\Hellos_Combined.pdf"); PdfReader reader2 = new PdfReader("U:\\Hellos_Combined-1.pdf"); PdfCopyFields copy = new PdfCopyFields(new FileOutputStream("U:\\Hellos_Combined-12.pdf")); copy.addDocument(reader1); copy.addDocument(reader2); copy.close(); reader1.close(); reader2.close(); } catch (Exception e) { e.printStackTrace(); } Is there any other possible way to do this, appreciate if any example code. Thanks Rajesh -- View this message in context: http://www.nabble.com/Merging-Issue-tp21215119p21215119.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php