AlMeadows,
AlMeadows wrote: > Our process works as follows: We get a 150 page 'original' document. The > user looks at this and decides that pages 1 & 2 is 'connected' so to speak > so the user 'splits' the document starting at page 3. After the split, the > use has a 2 page PDF and a 148 page PDF. This happens because I split the > 150 pages into 150 individual PDF files and then combine page 1 and 2 into > one part, 3 through 150 into the second part. > > With 150 pages, and most distinct sections being 1 to 3 pages, the last 3 > or 4 pages probably got processed ar least 50 times. As Bruno already pointed out, this is a case of bad design: You say that the final pages get processed at least fifty times. According to the code you posted this means they get split from a big document using AddTemplate on an ImportedPage and then recombined into a big document using AddTemplate on an ImportedPage. This effectively envelopes the original page about a hundred times. Many pdf readers allow only a limited nesting depth here. You might want to take a look at sample 6.11 in the book and apply that mechanism always to the 'original' document. Regards, Michael -- View this message in context: http://itext-general.2136553.n4.nabble.com/Multiple-iterations-over-PdfContentByte-object-causes-corrupt-pdf-tp3920483p3939662.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ iText-questions mailing list [email protected] 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
