mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
48.33k stars 9.97k forks source link

Links not working #9870

Closed fgilio closed 6 years ago

fgilio commented 6 years ago

Attach (recommended) or Link to PDF file here: example_file_with_links_not_working.pdf

Configuration:

Steps to reproduce the problem:

  1. Open the attached pdf
  2. Click on one of the links

What is the expected behavior? (add screenshot) The link to work

What went wrong? (add screenshot) The link does nothing


The pdf was exported using Word from a docx file. The links do work in Adobe Acrobat or Preview in macOS. Please tell me if you need more info.

Thanks! F

Snuffleupagus commented 6 years ago

That PDF file doesn't actually contain any annotations, but just standard text formatted to look like links.

Such "links" can work in e.g. Adobe Reader, but only if you have enabled automatic creation of hyperlinks (this setting seems to default to on).

The issue is tracked in #3172, of which this is a duplicate.

fgilio commented 6 years ago

Oh I see, thanks @Snuffleupagus

Closing as it's a duplicate

fgilio commented 6 years ago

@Snuffleupagus do you know of any way I can convert a docx file to pdf and maintain working links?