You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clone repo, run the gulp server for the webpack configuration.
Open the provided file in webpack pdfjs viewer.
Try clicking on table of contents items, see that the internal hyperlinks are not scrolling the page to annotated content.
Repeat steps 1-3 for the non webpack configuration. See that hyperlinks are in fact working.
What is the expected behavior?
Clicking on a table of content item should scroll document to anchor tag on page. This works with non webpack build.
What went wrong?
With webpack build, clicking on the a table of content item has no visible effect. Scroll position does not change.
Link to a viewer
No response
Additional context
This issue exists within the webpack configuration when you build the webpack project locally. (Also exists when using the npm distribution pdfjs-dist.)
This discussion was converted from issue #18936 on October 21, 2024 15:28.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Attach (recommended) or Link to PDF file
document-with-internal-links.pdf
Web browser and its version
Chrome Version 130.0.6723.59
Operating system and its version
MacOs 14.6.1
PDF.js version
4.6.82
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
Repeat steps 1-3 for the non webpack configuration. See that hyperlinks are in fact working.
What is the expected behavior?
Clicking on a table of content item should scroll document to anchor tag on page. This works with non webpack build.
What went wrong?
With webpack build, clicking on the a table of content item has no visible effect. Scroll position does not change.
Link to a viewer
No response
Additional context
This issue exists within the webpack configuration when you build the webpack project locally. (Also exists when using the npm distribution pdfjs-dist.)
Beta Was this translation helpful? Give feedback.
All reactions