Hi all,
I searched the forum but couldn't find an answer to this one:
On each page of my PDF, I want a header that goes something like this (after the colons):
first page: Page 1 of 10, Page 345
second page: Page 2 of 10, Page 346
third page: Page 3 of 10, Page 347
.
.
tenth page: Page 10 of 10, Page 354
I can use content: "Page "+counter(page)+" of "+counter(pages) for the first part.
For the second part, note that it starts at an elevated page number. I can use a custom counter (e.g. counter-reset: notebook-page), but I cannot figure out how to increment it. I tried putting a counter-increment: notebook-page in the @page css section or a subsection, to no avail.
Any thoughts?
-cal
P.S. if you care why I'm doing this, it is for a report that gets printed out weekly and I need to maintain the page count for each subreport as well as the whole thing
I searched the forum but couldn't find an answer to this one:
On each page of my PDF, I want a header that goes something like this (after the colons):
first page: Page 1 of 10, Page 345
second page: Page 2 of 10, Page 346
third page: Page 3 of 10, Page 347
.
.
tenth page: Page 10 of 10, Page 354
I can use content: "Page "+counter(page)+" of "+counter(pages) for the first part.
For the second part, note that it starts at an elevated page number. I can use a custom counter (e.g. counter-reset: notebook-page), but I cannot figure out how to increment it. I tried putting a counter-increment: notebook-page in the @page css section or a subsection, to no avail.
Any thoughts?
-cal
P.S. if you care why I'm doing this, it is for a report that gets printed out weekly and I need to maintain the page count for each subreport as well as the whole thing