Quoting "A.Marochow" <[EMAIL PROTECTED]>:

> Hi  I am new to this great and well done pdf API.
> 
> I wrote a small XML based template description that delegates to your API.
> It reads from another XML data Structure and merges all together to 
> beautifull looking print results.
> 
> But, what I wanted to know is:
> How can I get the current vertical position (to define Chapters/Sections
> correctly) while im writing some Paragraphs or Phrases.

Depends on what you want to do with the Y-position.
The position of Phrases is difficult, but for Paragraphs
you can retrieve some information using PageEvents.
see http://www.lowagie.com/iText/tutorial/ch12.html

You can use the onParagraph en onParagraphEnd Event
to retrieve the current Y position.

An example can be found here:
http://www.lowagie.com/iText/examples/Chap1108.java

Bruno


-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to