todd.patterson, todd.patterson wrote > I use the close command for the document
Yes, you close the document but I don't see you closing any of the PdfReaders or the PdfWriter, neither explicitely nor implicitely (e.g. by utilizing a using statement). iText in the latest 10...15 releases more and more stopped to do close calls itself as that disturbs some use cases, e.g. when pages from a single document are imported in multiple other documents. Furthermore your code is essentially merging source PDFs as is into a single destination PDF. Using PdfWriter is not the optimal way to implement that; if you used some Pdf*Copy* variant instead, you wouldn't have to deal with all this page size and page orientation stuff, interactive features would be copied, too, as good as possible, and the resulting PDF would internally be better organized (not immediate a problem, but trouble might ensue if that process is repeated multiple times). You might want to read the (freely available) chapter 6 of iText in Action, 2nd edition, especially the later sections. Regards, Michael -- View this message in context: http://itext-general.2136553.n4.nabble.com/Merge-PDF-File-release-tp4658071p4658073.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ 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