It look like itext file parser or extractor from iTextpdf5.4.1 locks the file and does not allow to delete the file.
java.io.IOException: Failed to delete original file 'C:\TestFiles\Input\SamplePdf.pdf' after copy to 'C:\TestFiles\PrintVendorArchive\SamplePdf.pdf' at org.apache.commons.io.FileUtils.moveFile(FileUtils.java:2835) -----Original Message----- From: Chandrashekhar Pandhare [mailto:chandrashekhar.pandh...@citizensfla.com] Sent: Thursday, May 16, 2013 4:20 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] [SPAM] Re: getTextFromPage(n) gives java.lang.ArithmeticException: / by zero Yep that code is for File I/o but it was works when I have iText2.* jar as external jar and and as soon I use iText5.* jar it does not work. And yes I am using the file.close(); Just trying to see if it conflicts with any i/o functions and /or changes the file attributes. -----Original Message----- From: Kevin Day [mailto:ke...@trumpetinc.com] Sent: Thursday, May 16, 2013 3:59 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] [SPAM] Re: getTextFromPage(n) gives java.lang.ArithmeticException: / by zero none of the code you posted has anything to do with iText. My guess is that you aren't properly closing the PdfReader or PdfStamper or whatever. PdfReader r = new PdfReader(....); try{ // do stuff } finally { r.close(); } -- View this message in context: http://itext-general.2136553.n4.nabble.com/getTextFromPage-n-gives-java-lang-ArithmeticException-by-zero-tp4658260p4658277.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ 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 ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ 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 ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ 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