I have a set of files that will probably do what you want but they are based on iText version 2. It is basically a threaded model that takes a single pass at the large file, breaking it into smaller chunks and then using threads to process each chunk individually. It can break the large file based on bookmarks or page counts and, if you have multiple levels of bookmarks (i.e. chapters and sections) you can decide what level to break it at.
It is fairly fast for breaking up extremely large files into many smaller ones. We generally use it to parse 1.5Gb files into 100's of thousands of small 4 - 8 page pdfs in less than 2 hours. I hesitate to attach the files, but I can send them to you if you want to take a look. Edward W. Rouse -----Original Message----- From: LA [mailto:[email protected]] Sent: Tuesday, December 07, 2010 3:56 AM To: [email protected] Subject: Re: [iText-questions] Antwort: Re: READ LARGE FILE 1.5gb Error Hi, in order to by pass stamp.close(); error i'm trying to read the file many times with reader.selectPages(range) but i can read the file only one time and i have to re-read the big file for the second range. Any idea? Thanks LA com.itextpdf.text.DocumentException: The original document was reused. Read it again from file. at com.itextpdf.text.pdf.PdfStamperImp.<init>(PdfStamperImp.java:109) at com.itextpdf.text.pdf.PdfStamper.<init>(PdfStamper.java:94) -- View this message in context: http://itext-general.2136553.n4.nabble.com/READ-LARGE-FILE-1-5gb-Error-tp306 8682p3076000.html Sent from the iText - General mailing list archive at Nabble.com. ---------------------------------------------------------------------------- -- What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions 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 ------------------------------------------------------------------------------ What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions 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
