Sorry if this is a duplicate. I have noticed that iTextSharp does not like ImageMasks that have uncompressed bitmap data. I have some PDF files that I have to split that have thousands of ImageMasks and all have uncompressed image data. Some of that data is represented by the null character. Null happens to be a valid color in uncompressed bitonal data.
I traced the problem down to this function in PRTokeniser.cs public static bool IsWhitespace(int ch) { return (/*ch == 0 || */ch == 9 || ch == 10 || ch == 12 || ch == 13 || ch == 32); } You can see what I commented out. Once I made this change everything would split properly. Without this change the multipage PDF could be split into single page PDF files but none of the single page files were viewable because the null character was being "eaten" by IsWhiteSpace(). I'd like to submit this to the iTextSharp team but I'm not sure who that is. I'm hoping someone in this list will help. Thanks, Darren ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk _______________________________________________ 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