One thing to consider would be the case where multiple content streams get combined to construct a complete content stream. In this case, it may *appear* that a cb stream has a leading BT with no trailing ET, and the trailing ET would wind up in a different stream. I'm not sure if the sanity check properly accounts for this situation.
One thing the OP could do (if they really don't want to provide an example) is to disable the sanity check code, run their code, then use RUPS to grab the full content stream of the resultant PDF. Then check to ensure that the BT and ET pairs are matched. If they are, then the sanity check may very well be throwing in error - but it's going to take some example code to construct a use-case that really demonstrates this. I suppose the OP could also take a look at the effective content stream generated by the pre-5 version of iText. If you don't have RUPS available (I'm not sure if RUPS is ported to C# or not), the following class is handy for getting a quick dump of the effective content stream: com/itextpdf/text/pdf/parser/PdfContentReaderTool.java Probably tilting at windmills here, but who knows. - K -- View this message in context: http://itext-general.2136553.n4.nabble.com/Error-Unbalanced-begin-end-text-operators-since-iText-5-tp2399694p2400590.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/