Hi, I hope this is not a double post because I tried once but with an erreor in the mail address.
I have a program that first : create 12 different pdfs second : merge the different files into one third : delete the 12 temporary pdf files My problem is that the merging process seems to keep ressources occupied and the temporary files aren't removed. The merge process is somthing like : Document document = new Document(finalPageSize, 0, 0, 0, 0); PdfWriter writer = PdfWriter.getInstance( document, new FileOutputStream ("newFile.pdf") ); document.open(); PdfContentByte cb = writer.getDirectContent(); for (pageNo=1; pageNo<13; pageNo++){ PdfReader reader = new PdfReader("inFileName"+pageNo+".pdf"); page = writer.getImportedPage(reader, 1); reader.close(); Rectangle pageArea = reader.getPageSize(1); cb.addTemplate(page, 1f, 0, 0, 1f, positionX, positionY); } document.close(); then if I process the 12 files width a File inFile = new File("inFileName"+pageNo); and inFile.delete(); the files aren't deleted, the inFile.delete() returns false. Have any idea ? ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/