And here's the fix in ColumnText:

    public void addText(Phrase phrase) {
        if (phrase == null || composite)
            return;
        addWaitingPhrase();
        if (bidiLine == null) {
            waitPhrase = phrase;
            return;
        }
        for (Iterator j = phrase.getChunks().iterator(); j.hasNext();) {
            bidiLine.addChunk(new PdfChunk((Chunk)j.next(), null));
        }
    }

Best Regards,
Paulo Soares

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Steve Appling
> Sent: Friday, September 24, 2004 3:14 PM
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] ColumnText.addText question
> 
> Are you supposed to be able to use addText multiple times 
> before calling go?
> 
> sample snippet:
>        ct.setSimpleColumn(llx, lly, urx, ury);
>        ct.addText(new Phrase("This is a test", font));
>        ct.addText(new Phrase("This is another", font));
>        ct.go();
> 
> This seems to only show the second phrase.  If this is how addText is
> supposed to work, then what is the difference between addText 
> and setText?
> 
> I have a list of Paragraphs which I would like to add to an irregular
> column.  I can't use addElement with an irregular column, but 
> was hoping to
> be able to add them using addText(Phrase) (since a Paragraph 
> is derived from
> Phrase).  Perhaps I am just out of luck :)
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your 
> judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to