I've noticed that iTextSharp fails on PDF files that have uncompressed image 
data in them.  I don't know if this happens in all cases but I have some PDF 
files with thousands of ImageMasks with uncompressed bitmap data in them.  
iTextSharp totally pukes on splitting them.  By puke I mean it splits them but 
the PDF files have errors.

We tracked it down to this function in PRTokeniser.cs.  The commented out 
section fixes my problem.  iTextSharp was ignoring all null characters which 
when you have raw uncompressed data is valid.  Once I commented this out 
everything started working properly.

        public static bool IsWhitespace(int ch) {
            return (/*ch == 0 ||
*/ch == 9 || ch == 10 || ch == 12 || ch == 13 || ch == 32);
        }

I'm not sure if this is a bug or intended design nor do I know how to submit 
this to the proper iTextSharp people.  I'm hoping this list helps.

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

Reply via email to