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 210
    • Issues 210
    • 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
  • #346

Closed
Open
Created Sep 07, 2021 by Boris Budini@kominoshja🛡Owner

outline navigation

I have tried to generate an outline with the commandline option --outline-tags h1,h2,h3 of pagedjs-cli. The outline is generated, but when clicking on the items in Acrobat Pro, nothing happens. Usually this triggers a navigation action. I have compared the properties of bookmarks generated with pagedjs-cli and Acrobat Pro. Some metadata may be missing (e.g. the destination page number), see the following screenshots.

Properties of a bookmark from a file generated with Acrobat Pro: Properties of a bookmark from a file generated with Acrobat Pro

Properties of a bookmark from a file generated with pagedjs-cli: Properties of a bookmark from a file generated with pagedjs-cli

Here is the command line I have used to generate the file: npx pagedjs-cli ./out/$filename.html -o ./out/$filename.pdf --outline-tags h1,h2,h3

The HTML file contains id attributes for all h1,h2,h3.

The logs show no particular issue:

- Loading: ./out/test.html
√ Processed
√ Loaded
- Rendering: Page 1
√ Rendering 15 pages took 337.5800000003437 milliseconds.
- Generating

I'm using pagedjs-cli version 0.1.3.

Did I miss something?

Edited Sep 07, 2021 by Boris Budini
Assignee
Assign to
Time tracking