Tanya Savage wrote:

Thanks Bruno,
So I would just create a setTitleVars(five different strings) method
within MyPageEvents class.

The calls then would look something like this:

MyPageEvents events = new MyPageEvents();
events.setTitleVars(st1, st2, st3, st4, st5);
writer.setPageEvent(events);
Yes and when the titleVars change, for instance before starting
a new chapter, just repeat:
events.setTitleVars(st6, st7, st8, st9, st10).

What about adding phrases or paragraphs to the document within the
onEndPage method?  Like document.add(new phrase("Title " + title));
No, that would be dangerous, because it can cause
all kinds of unexpected behavior.
br,
Bruno


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to