Dirk Ulrich wrote:
>   Well, that's what I thought: I have to add the chapter to the document 
> first before...

No, first you have to add a page event to the writer;
a page event that implements the onChapter, onSection,
onChapterEnd and onSectionEnd method.

Then you add the Chapter to the document, and iText
will call the methods in the event automagically.
If you implement these methods so that they draw
a horizontal line, that's what will happen...

See the tutorial for more info on the page event functionality:
http://itextdocs.lowagie.com/tutorial/directcontent/pageevents/#pageevents

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