webodf / ViewerJS

ViewerJS: Document Reader in JavaScript
http://viewerjs.org
1.94k stars 421 forks source link

Unable to click on hyperlink within the pdf file #226

Closed santosh5580 closed 5 years ago

santosh5580 commented 7 years ago

Hi,

I am using ViewerJs to open pdf file, but unable to click on links within the pdf file.

http://www.webelement.cc/sebipages/ViewerJS/?zoom=page-width#http://www.webelement.cc/sebi_data/tenderfiles/jan-2017/1484650390871.pdf

santosh5580 commented 7 years ago

Please provide if any solution.

ilbonzo commented 7 years ago

Do you have find solution to this problem?

reginafcompton commented 5 years ago

I encountered the same problem. I am a developer at DataMade, where I maintain https://boardagendas.metro.net (see source code at: Github). We use viewerjs for rendering PDFs.

Some of the embedded PDFs do not have clickable hyperlinks, even though these links work on the PDFs themselves (e.g., https://boardagendas.metro.net/board-report/2018-0771/). The result looks like:

Screen Shot 2019-03-25 at 9 59 19 AM

This seems to be the result of viewerjs not correctly adding hyperlinks to the annotationLayer. For additional context, we've described the problem here, as well.

thz commented 5 years ago

@reginafcompton you are actually not using webodf/ViewerJS but PDF.js directly.