reset counter(pages)
Hello, I use the current version of pagedjs 0.2.0.
Resetting the page counter with 1 works like expected. But the pages counter is still buggy.
The goal of my project is to merge two pdfs into one, therefore I need to reset the page and pages counter.
html markup:
css:
@page { @bottom-left { content: 'Page ' counter(page) ' of ' counter(pages); } }
wished Footer:
Page 1 of 2 Page 2 of 2 Page 1 of 3 Page 2 of 3 Page 3 of 3
with .reset-print-page { counter-reset: page 1; }
Page 1 of 5 Page 2 of 5 Page 1 of 5 Page 2 of 5 Page 3 of 5
with: .reset-print-page { counter-reset: page 1 pages 1; }
Page 1 of 5 Page 2 of 6 Page 1 of 6 Page 2 of 6 Page 3 of 6
I don't think that the pages counter should be automatically changed by resetting the page counter because that could be also a requirement for someone.
In previous comments only page counter was mentioned. Will this fix also apply for pages counter?
By mss@ef on 2021-06-17T13:05:46 (imported from GitLab)