title: PDF generated with itext becomes 'corrupted' when using SetSimpleColumn()
body: <p><br/>
  First I would like to point out that stackowerflow helped me with many problems in the past, so thank you all. But now I have come to problem that I haven't fount a solution for yet and it's driving me crazy. I'm not native english speaker, so sorry for any language mistakes.</p>
  
  <p>So here it is:</p>
  
  <p>I'm generating pdf with <code>itextsharp</code> library(great library by the way). I'm starting with some kind of pdf form/template, to which i'm adding 'fill-out' data. I'm using <code>PdfReader</code> to read template pdf and by caling <code>PdfStamper</code> method <code>GetOverContent(pageNum)</code> for individual pages I get <code>PdfContentByte</code>. With that <code>PdfContentByte</code> I'm adding my text/data (<code>BeginText</code> and <code>EndText</code> is used on every page). Most of text I add with method <code>ShowTextAligned</code>. That all ok, generated pdf contains my text. The problem begins where i have to add 'columned' text. I do that with following code:</p>
  
  <pre><code>ColumnText ct = new ColumnText(cb);//cb is PdfContentByte
  Phrase p = new Phrase(txt, FontFactory.GetFont(DEFAULT_FONT, BaseFont.CP1250, true, font_size));
  ct.SetSimpleColumn(p, x, y, x+width, y+height, 10, alignment);
  ct.Go();
  setDefaultFont();//sets font to PdfContentByte again with setFontAndSize and SetColorFill
  </code></pre>
  
  <p>Columned text is added with this code OK, but the text(on that same page/same <code>PdfContentByte</code>) added AFTER this with <code>ShowTextAligned</code> is not visible in Acrobat Reader. </p>
  
  <p>Here is the 'fun' part - that text in same pdf file opened with foxit reader is fine/visible/ok. </p>
  
  <p>So text added with <code>ShowTextAligned</code> after adding <code>ColumnText</code> is not visible in acrobat reader but visible in foxit reader just fine. This problem exists inside one page, new page resets this problem (<code>PdfContentByte</code> for next page is new). </p>
  
  <p>My workaround for that was to add all <code>ColumnText</code> AFTER all calls of <code>ShowTextAligned</code>. That worked till today, when customer printed out generated pdf with acrobat reader, which after printing the document, displayed message that pdf contains error and that author of pdf should be contacted. Version of Adobe Reader is 10.1.1. Problem is not in customer computer, same thing hapens on my computer. </p>
  
  <p>After researching the web I installed Adobe Acrodat Pro Trial which contains tool Preflight, which is purposed for analyzing pdfs (as far I understand). This tool outputs warning "Invalid content state stream for operator". And here I'm stucked. I belive the problem exists inside added <code>ColumnText</code>, because document generated without them causes no problem displaying/printing and Preflight states "No problem found".</p>
  
  <p>It is possible that i'm missing some fact and that the problem is in my code... </p>
  
  <p>Please help me, because i'm runnig out of ideas.
  I hope this post will help someday someone else with the same problem. 
  I cannot attach sample pdf because it contains sensitive data, but if there is no other way, i'll recreate the scenario/code.</p>