I'm trying to reset page numbers when I get a special tag in the body of the document (for example when I get a <DIV STYLE="page-break-before:always" />
, I'd like the next page footer to say "page 1 of x" where x is the number of pages before the next page break)
In fact it should do exactly the same as if i splitted the body document and converted it separately.
Is there a way to do this?
Making a list of every page-breaks along with their page number would solve this problem, but i don't know if it is possible either.