Search code examples
androidpdfmupdf

MuPDF: clickListener on hyperlinks


I use mupdf to view pdf files. I built Android project using this instructions

However I can't click on the link in the text, e.x. url (it's highlighted but viewer doesn't react on click)

How could I jump through link in pdf file when click on it?

I'm also interested in alternative free pdf libraries for Android that supports hyperlinks.


Solution

  • We have a similar feature in our Android customizable magazine app, using muPDF: it is possible to "tap" on the links in the text, either external links, or links to other pages. This app is open source and available on Github. It should be easy for you to review the code, and see how we implemented this feature.