It has nothing to with the alignment. Check that the column
boundaries are inside the template.
Best Regards,
Paulo Soares
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pelikan Stephan
Sent: Monday, May 03, 2004 8:33 AM
To: [EMAIL PROTECTED]
Subject: [iText-questions] ColumnText cuts text using justify-alignmentHi,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)ct.setColumns(leftPoints, rightPoints);
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
