On 1/4/11 11:58 AM, 1T3XT BVBA wrote:
>> I'm fishing here :(
> OK, my first guess was wrong, but now I see something else that is fishy:
> you're nesting text blocks!
> You have a BT (beginText()) and an ET (endText()).
> In between, you add another BT and ET by using ColumnText.
> You shouldn't do that!
>
> Replace ALL your beginText(), setFontAndSize(), showTextAligned(),
> endText() sequences,
> by one single ColumnText.showTextAligned() and your problem will be solved.

I just wanted to followup and say yes, this fixed it!  What I didn't 
realize was the ColumnText was implicitely doing a beginText() and 
endText().  I changed all my showTextAligned with static calls to 
ColumnText.showTextAligned, and left most of hte 'block' section 
(because I need wrapped text for long names), and things are working 
perfectly.

Thank you very much for your help!

Here is the final / complete method, which still has the 'dotted line' 
around the block area, but that's just for testing, we'll remove that in 
the production print routine :)

http://pastebin.stonekeep.com/11529

        -d

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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