Hi,
I'm using a
ColumnText. When I set alignment to justify some lines are cut off at the right
end:
What I
do:
PdfTemplate template
= cb.createTemplate(right - left, bottom - top);
ColumnText ct = new ColumnText(template);
ct.addText(new Phrase(content.getText(), pdfFont));
ct.setLeading(Float.parseFloat(size));
ct.setYLine(bottom - top);
ct.setAlignment(com.lowagie.text.Element.ALIGN_JUSTIFIED)
ColumnText ct = new ColumnText(template);
ct.addText(new Phrase(content.getText(), pdfFont));
ct.setLeading(Float.parseFloat(size));
ct.setYLine(bottom - top);
ct.setAlignment(com.lowagie.text.Element.ALIGN_JUSTIFIED)
ct.setColumns(leftPoints,
rightPoints);
ct.go();
ct.go();
where leftPoints and
rightPoints are float-arrays of 2 floats.
What's wrong? Is
this a bug or a known behaviour? Any suggestions for a
workaround?
Thanks,
Stephan
