Hello, We are getting a popup error dialog "Insufficent data for an image" when we open a pdf document after we separated it. After the dialog all the pages are blank. We are opening it with adobe 9.2.0 reader. We don't have any issues opening the master document.
Here is a snippet of our separate code Document pdfDocument = null; PdfConcatenator pdfWriter = null; PdfReader pdfReader = null; ArrayList bookmarkList = null; File separatedFile = null; OutputStream separatedDocumentOutputStream = null; pdfReader = new PdfReader(new RandomAccessFileOrArray(masterFile .getAbsolutePath()), null); pdfReader.consolidateNamedDestinations(); // just a list of page numbers ArrayList<Integer> pageList = buildPageList(aPageRange, pdfReader.getNumberOfPages()); pdfWriter = new PdfSimpleConcatenator(pdfDocument, separatedDocumentOutputStream, false); // step 3: we open the document pdfDocument.open(); // step 4: we add the separated page list pdfReader.selectPages(pageList); pdfWriter.addDocument(pdfReader); // close resources pdfReader.close(); pdfWriter.freeReader(pdfReader); // add bookmark if specified if (bookmarkList != null) { pdfWriter.setOutlines(bookmarkList); } pdfDocument.close(); pdfWriter.close(); ________________________________________________________________________________________________ Scott Tyriver § Systems Development § Mortgage Guaranty Insurance Corporation 250 East Kilbourn Avenue § Milwaukee WI 53202 § ( 414.347.6803 § 7 414.347.6710 § * scott_tyri...@mgic.com This message is intended for use only by the person(s) addressed above and may contain privileged and confidential information. Disclosure or use of this message by any other person is strictly prohibited. If this message is received in error, please notify the sender immediately and delete this message. ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ 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 Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/