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 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?