Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • pagedjs pagedjs
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 202
    • Issues 202
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pagedjs
  • pagedjspagedjs
  • Issues
  • #91

Closed
Open
Created Dec 28, 2018 by Boris Budini@kominoshja🛡Owner

Reset page number with counter-reset

I think this – or something closely related – was tackled in https://gitlab.pagedmedia.org/tools/pagedjs/issues/74 and https://gitlab.pagedmedia.org/tools/pagedjs/issues/78, which were fixed in 1.29.0.

I'm having a similar/related problem, in that I can't reset page numbering to a given number. I may be doing something wrong, of course. If I understand correctly, this should reset the page numbering to start at 20:

p.page-20 {
    counter-reset: page 20;
}

Instead, this resets page numbering to 1, as if the rule is valid but the integer is having no effect.

HTML: counter-reset-page-integer.html

Result: counter-reset-page-integer-wrong.pdf

Expected result: counter-reset-page-integer-right.pdf

Edited Jan 21, 2019 by Boris Budini
Assignee
Assign to
Time tracking