Forum How do I...?

multiple, offset page numbers?

lesburg
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
mikeday
At the moment we don't support additional custom page counters, but it does sound very useful so we'll add it to the development roadmap.
lesburg
mikeday wrote:
At the moment we don't support additional custom page counters, but it does sound very useful so we'll add it to the development roadmap.


Thanks Mike! I (and hopefully others as well) look forward to seeing it.

-cal