Roel wrote:

If tried everything but now I have reached a point to get some help:
I'm sorry, but you didn't read the tutorial.

- how do I get the height of a font, and how can I change it? (so the space 
between 2 lines decreases)
You are making the wrong assumption that 'height of a font'
and 'space between 2 lines' are the same concept.
The space between 2 lines is called the leading in PDF.
See http://itextdocs.lowagie.com/tutorial/objects/index.html#paragraph
and try the method setLeading.

If you want to know more about fonts, please read:
http://itextdocs.lowagie.com/tutorial/fonts/

- how to get the current position on a pdf page?
There are many different answers to this question.

PdfWriter.getVerticalPosition could be the answer, but
I sense that in your case this hint will lead to an awful design.
Please read http://itextdocs.lowagie.com/tutorial/objects/columns/
I think that ColumnText is what you really need.
br,
Bruno


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to