Hello,
I have following problem.
I generate a PDF with a generated XML File and I need to reset the pagenumber
if I get a special XML Tag like <RESETPAGECOUNTER>.
So I tried to use a PageCounterPageEvent that extends the SAXmyHandler and
implements the PdfPageEvent-Interface.
I worked with the methods
public void endElement(String uri, String lname, String name)
where I check for the XML Tag
and the methods
public void onEndPage(PdfWriter writer, Document document)
public void onCloseDocument(PdfWriter pdfWriter, Document document)
for setting Page Footer with the text page x of y ...
Is this way of getting a solution the right one?
Because the events are called not in the same order.
For example the onEndPage Method is called 4 times before all endElement
Methods with the name == RESETPAGECOUNTER is called.
So the first page reset works but after one page reset no further pagereset
will be set.
-------------------------------------------------------
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