Quoting Th Templ <[EMAIL PROTECTED]>:
> Is it possible to get the length of the chaine string to center it between
> two positions of a page?
You have 2 possibilities:
1. You calculate everything yourself using method getWidthPoint
as you suggest yourself.
http://www.lowagie.com/iText/tu
Hello,
I want to center a text in a pdf with absolute positionning. This is my
code:
PdfContentByte cb=writer.getDirectContent();
cb.setLineWidth(0f);
cb.moveTo(width/2,gy1-100);
cb.lineTo(width/2,gy1-100);
cb.stroke();
cb.beginText();
BaseFont bf = BaseFont.createFont("Helvetica", "Cp1252",