Abhishek Srivastava wrote:
1) I have created ColumnTexts and added the columntext objects to
the list as list items. But on doing so that text in the list items in
not justified. What is the way to have justified text in lists?
Aren't ListItem objects derived from Paragraph objects?
Doesn't setting the alignment on the ListItem work?
2) The second problem is that in order to get justified text I
have to define the size of the columntext object and then write text
into it. In the letter which I am auto-generating sometimes the 1^st
paragraph can have 4 to 6 lines (depending upon the length of the name
and the address of the person).
What is happening is that since both paragraphs are being written in
columntext objects and the size and location of the columntext object
is predefined. I get an extra lines in my letter between paragraphs.
(Since I always define the upper paragraph columtext size with 6 lines
in mind). What is being desired is that after writing the text into
the columntext I somehow find out the position of the last line and
accordingly set the location of the second paragraph column text up so
that there are no extra lines.
You have lost me.
Your explanation is too complex for me to understand.
If you want to distrubute lines, just simulate the addition of
paragraphs with ColumnText.
Then ask the column for the number of lines that WOULD have been added.
Then add them with the leading you desire.
br,
Bruno
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions