Eric Summkeller wrote:
> I will try to draw the line. Can you please tell me where in the book I can't 
> find an example.

Chapter 10, for instance:

PdfContentByte cb = writer.getDirectContent();
cb.moveTo(30, 700);
cb.lineTo(130, 700);
cb.stroke();

Of course, you'll have to calculate the coordinates yourself.
BaseFont can give you the length of a String; See for instance
page 280: bf.getWidthPoint("0123456789", 12) where 12 is the
font size.
-- 
This answer is provided by 1T3XT BVBA

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to