some days ago i asked a question about printing Rectangle outlining a text . Here's is the answer for my question. And this works perfect wenn text Alignment is Element.LEFT, which is default.
when i try to align text center or right, the text is drawn to a different potion than expected so that the Rectangle around the text is not corect.
am i doing some thing wrong?
For all alignments i am using this method in itext...
ColumnText ct = new ColumnText(cb);
ct.setSimpleColumn(llx, lly, urx, ury);
to get the widt i do...
ct.getFillWidth();
to get the height...`
ct.getYLine();
Why this doesn work for CENTER and RIGHT alignments?
Thanks in advance