Op 9/12/2010 14:01, Stephan, Frank schreef:
> Hi,
>
> I can generate my PDF without problems.
> When I print with Adobe Reader 9, I get an error
>
> "There is an error on this page.The document may not be displayed
> correctly".
>
> This code section produces this error:
>
>                       cb.beginText();
>                       cb.setColorFill(Pdf.COLOR_BACKGROUND);
>                       cb.setLineWidth(0f);
>                       cb.rectangle(300f, 710f, 100f, 20f);
>                       cb.setColorStroke(Pdf.COLOR_BACKGROUND);
>                       cb.fillStroke();
>                       cb.endText();
>
> What am I doing wrong here?
You shouldn't use pure Graphics State operators inside a block that 
expects Text State operators.
Where did you find that code? If it's on an official iText site, we'll 
remove it.

------------------------------------------------------------------------------
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

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