docfx icon indicating copy to clipboard operation
docfx copied to clipboard

[Bug] Bookmarks in PDF go to the page after the actual bookmark

Open Phildor92 opened this issue 1 year ago • 6 comments

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:

  1. Go to the docfx documentation website
  2. Click download PDF
  3. 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

Phildor92 avatar Feb 23 '24 08:02 Phildor92

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.

yufeih avatar Feb 24 '24 05:02 yufeih

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.

Phildor92 avatar Feb 24 '24 15:02 Phildor92

I can also reproduce this issue with Adobe Acrobat Reader

Phildor92 avatar Feb 26 '24 14:02 Phildor92

@Phildor92 can you paste a screenshot to help me understand which TOC node is having the issue? I cannot seem to repro.

yufeih avatar Feb 27 '24 01:02 yufeih

All of them. Here is a screenshot from Firefox's PDF viewer: image

Phildor92 avatar Feb 27 '24 07:02 Phildor92