question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Support hyperlinks in Document Outline

See original GitHub issue

Some PDFs I’m displaying with the viewer contain items in the document outline that, when rendered in Adobe Reader (haven’t checked others), are actually hyperlinks. Would it be possible to support this in pdf.js? I’m looking at readDocumentOutline in obj.js right now and found what will hopefully lead me in the right direction, but if I’m off track let me know and I’ll see if I can make the changes myself.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:23 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Snuffleupaguscommented, Aug 25, 2017

@creage Next time, please open a new issue rather than commenting on a old and already fixed one (see also CONTRIBUTING.md)! Furthermore, note that your PDF file is actually not valid according to the specification, since its outline data isn’t correct.

0reactions
creagecommented, Aug 25, 2017

I have an example PDF document with bookmarks. Adobe navigates by them fine, but viewer does not. Exploring the DOM of the document outline displays empty href attributes

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

How Do I Add a Hyperlink Into a Document in ... - Clio Support
Open the Document Template Builder · Highlight the words or characters you want to be hyperlinked. · Click the hyperlink button. It looks...
Read more >
How To: Create multiple field-based hyperlinks in a feature ...
In ArcMap, add the feature class set up with hyperlink fields. · Right-click the layer in the Table Of Contents > Properties. ·...
Read more >
How To Use the Hyperlink Feature in Microsoft Word - Indeed
Open the document and select the word, image or phrase you'd like the hyperlink to attach to and highlight it using your mouse...
Read more >
Creating hyperlinks - Learn web development | MDN
Linking to non-HTML resources — leave clear signposts ... When linking to a resource that will be downloaded (like a PDF or Word...
Read more >
How to create absolute hyperlinks and relative hyperlinks in ...
Word automatically creates a hyperlink when you type the address of an existing Web page, such as www.microsoft.com, into a document.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found