That's not possible in an easy way. Maybe I could add a Element.ALIGN_JUSTIFIED_ALL to force all the lines to be justified including the last one.
Best Regards, Paulo Soares > -----Original Message----- > From: Ben Balke [SMTP:[EMAIL PROTECTED] > Sent: Wednesday, September 24, 2003 7:08 > To: [EMAIL PROTECTED] > Subject: [iText-questions] Force justification of the last line in a > paragraph?? > > Sorry if this is a rehash, I searched all night and could not find > anything that solved this problem... > > I am trying to use ALIGN_JUSTIFIED to force a single line of text to > align to a known width. The problem is that the text is identified as > the last line in the paragraph and it is not justified. Is there a way > to force justification of the last line in a paragraph / phrase using a > ColumnText. I am currently using the following code: > > ColumnText ct = new ColumnText (m_cb); > ct.setSimpleColumn (x, y, x + width, y + height, 0f, > Element.ALIGN_JUSTIFIED); > Paragraph p = new Paragraph (text, new Font (m_bf, m_fontSize)); > p.setAlignment (Element.ALIGN_JUSTIFIED); > ct.addText (p); > ct.go (); > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
