-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Support hyperlinks in Document Outline #5089
Comments
@wtfsven Please provide a link to a test document. I'm not entirely sure what you mean. |
@timvandermeij Here's an example: http://www.nuveen.com/Home/Documents/Viewer.aspx?fileId=45693 |
Thank you for reporting this. It seems like this PDF is abusing the document outline view, but perhaps it's something that's hidden in the PDF specification... |
This sounds like a duplicate of #3214. |
This "abuse" is fairly common in my experience. I'll be doing my own research in the mean time. |
http://www.nuveen.com/Home/Documents/Viewer.aspx?fileId=45693 's document outline does not have any apparent effect in PDF.js. When I open the document with Okular on Linux, clicking on an item in the outline results in one of the following URLs being opened in Chromium: |
Ok, so after some mucking around I've devised a temporary solution for anyone who needs it. It's a bit of a hack, but in
Then you can check in
and go from there. |
is there any fix for this issue in next available release? |
This issue is related to #3214. |
Since 3214 also closed can someone please answer me Any resolution for this? can you please let us know the hyperlink issue in bookmark will be fixed in next release? |
I'm attaching the PDF file from issue #3214 here, as an additional example: bookmark-unsupported-features.pdf. |
@kvk123456 As far as I know nobody is working on this. If someone would like to fix this, feel free to submit a pull request. We are just closing the other issues because they are duplicates of this one. |
Thanks timvandermeij, here is the link I reported in 6788. |
FYI, I developed a patch (not published) that recovers a missing outline from marked content (#6269). It does not work for many documents (because marked content is not that common), so I stopped working on it. EDIT: Disregard this comment, I misread. I thought that the outline was missing, but this issue is actually asking about supporting hyperlinks in an existing outline. |
Here's a quick, sort of hacky, patch that adds basic support for URLs in the outline (I don't know if it's in good enough shape to bother with submitting a PR): Snuffleupagus@f292028. |
when is the next release, whiich will have this fix? |
The code is working when we the open pdf from local system. |
Can someone please respond here . Is the issue is fixed if in which version. var dest = outlineDict.get('A'); The code is working when we the open pdf from local system. |
We have pull request #6822 to implement this, though the review for it needs to be completed. It is not fixed yet, otherwise this issue would have been closed. |
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 |
@creage Next time, please open a new issue rather than commenting on a old and already fixed one (see also CONTRIBUTING.md)! |
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
inobj.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.The text was updated successfully, but these errors were encountered: