[Bug] Bookmarks in PDF go to the page after the actual bookmark
Describe the bug
When opening a generated PDF file, both the bookmarks on the TOC page and the bookmarks in the bookmark pane actually navigate to the page right after the expected page
To Reproduce Steps to reproduce the behavior:
- Go to the docfx documentation website
- Click download PDF
- Open the bookmarks pane and click on a bookmark -> the page after that bookmark is displayed
Expected behavior
The clicked on page should be displayed
Context (please complete the following information):
- OS: Windows 10
- Docfx version: whatever version the website is running. Reproduced locally on 2.75.3+a5c719410037cc288c7adff010b1abf3c0f2e581
Could you elaborate what PDF reader you are using and which bookmark node is having a problem? It looks correct in the builtin PDF reader for Chrome.
Note it is expected that the first child page is displayed for a TOC container node when there is no content for that TOC container node.
I am using the builtin Firefox PDF reader. I also have the same issue with Gnome's Document Viewer (Evince). With Chromium it does navigate correctly.
I can also reproduce this issue with Adobe Acrobat Reader
@Phildor92 can you paste a screenshot to help me understand which TOC node is having the issue? I cannot seem to repro.
All of them. Here is a screenshot from Firefox's PDF viewer: