ColumnText.showTextAligned(cb, PdfContentByte.ALIGN_RIGHT, new LwgPhrase(text + " Right", ft), 250, 650, 20, PdfWriter.RUN_DIRECTION_RTL, 0);
ColumnText.showTextAligned(cb, PdfContentByte.ALIGN_LEFT, new LwgPhrase("Some text Left aligned", ft), 250, 600, 20);
float size = ColumnText.getWidth(center, PdfWriter.RUN_DIRECTION_RTL, 0);
cb.setRGBColorStroke(255, 0, 0);
cb.rectangle(250 - size / 2, 690, size, 30);
cb.stroke();
}
catch (DocumentException de)
{
System.err.println(de.getMessage());
}