4 ms·
I tried out paged.js recently for a genealogical report exported from Gramps, but I had to use PrinceXML because counter-reset to start at a page does not work:
by buovjaga 6y ago
I tried out paged.js recently for a genealogical report exported from Gramps, but I had to use PrinceXML because counter-reset to start at a page does not work: https://gitlab.pagedmedia.org/tools/pagedjs/issues/91 https://gitlab.pagedmedia.org/tools/pagedjs/issues/91
Apart from this feature everything worked fine.
- abhinav22 6y agoDo you have a repo I could play around with? I had the same issue, but for my use case I figured a work around - primarily by using classes. I could spend a few minutes and see if I can get it working for you. But yes, it’s a deficiency in the system currently
- julientaq 6y agoI would be happy to see it too. Reset page number using counter is working: https://codepen.io/julientaq/details/MWammZV https://codepen.io/julientaq/details/MWammZV The property needs to be set to the element, and not to the @page. But we may have missed a bug though, so i’ll be happy to check your code.
- buovjaga 6y agoSorry, I forgot to check replies! This is the CSS: #grampstextdoc { counter-reset: page 7; } @page { margin: 2cm 3cm; @bottom-center { content: counter(page); } }