Dirk Ulrich wrote:
>   I just want to add a horizontal line in only a specific Section after 
> some specific paragraphs.
> Wouldn't the onParagraphEnd draw a line after each Paragraph (even after 
> those Paragraphs where no line shall appear)? Maybe I didn't undersand 
> the paragraphPosition parameter peroperly.

You know the title of the section.
If it's unique, you can keep track of it in onSection
using a member variable. Then check this variable in
onSectionEnd.

An even easier way to achieve the same result, is by
closing the section that needs to be underlined with
a Chunk that has a generic tag (explained on the same
tutorial page).
In your onGenericTag method you can use the rectangle
that is passed by the event to retrieve the Y position.

Please read the complete tutorial page, not just the
details.
br,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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