Title: Problems with iText with Justified Text

We are using iText to automatically generate letters. The each paragraph of the letter is having justified text. The letter also contains bulleted lists (each item of the bulleted list is justified).

We are facing the following problems

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?

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 1st 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.

Regards,

Abhishek.

Reply via email to