mozilla / pdf.js

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

Links are not clickable with the pdf.js viewer #8956

Closed rivsc closed 7 years ago

rivsc commented 7 years ago

Link to PDF file (or attach file here): example_link.pdf

Configuration:

Steps to reproduce the problem:

  1. Use pdf.js to render the pdf : https://jsfiddle.net/rivsc/7Lxw5dwr/2/
  2. Click on link "Prawn wiki" doesn't work

What is the expected behavior? (add screenshot) Follow the link when I click on it.

What went wrong? (add screenshot) Nothing happens when I click on a link.

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension): https://jsfiddle.net/rivsc/7Lxw5dwr/2/

On firefox with his integrated viewer, the link are clickable.

WMChimare commented 7 years ago

8n。trL。i98

发自我的vivo智能手机

Claudel Sylvain notifications@github.com编写:

Link to PDF file (or attach file here): example_link.pdf Configuration: Web browser and its version: Chrome 60.0.3112.113 (Build officiel) (64 bits) or Firefox 54.0.1 (64 bits) Operating system and its version: Mac OS X El Capitan PDF.js version: stable (1.8.188) or beta (1.9.426) Steps to reproduce the problem: Copy/Paste the "Prev/Next example" : https://jsfiddle.net/pdfjs/wagvs9Lf/?utm_source=website&utm_medium=embed&utm_campaign=wagvs9Lf Click on link doesn't work What is the expected behavior? (add screenshot) Follow the link when I click. What went wrong? (add screenshot) Nothing happens when I click on a link. Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension): https://jsfiddle.net/pdfjs/wagvs9Lf/? On firefox with his integrated viewer, the link are clickable. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Snuffleupagus commented 7 years ago

The helloworld examples only demonstrate basic PDF rendering. If you want other features such as annotation/text layer support, please refer to the pageviewer (or simpleviewer) examples.

Closing as answered.

rivsc commented 7 years ago

Thanks for this answer ! I did not see the difference between PDF rendering and text layer support.