3

I use PdfRenderer class to render pdf. However, the problem is that in this approach I can't make the hyperlinks in the document clickable.

Is there any better way to render pdf in android application?

I am aware of using webview with google docs, but I want the app to work offline so this solution is not suitable.

mayank1513
  • 8,767
  • 6
  • 37
  • 99

1 Answers1

-1

Try using pdfjs that is used by Mozilla.

Follow this answer

https://stackoverflow.com/a/26086480/10587375

This method works for sure on Android 4.0 and above

  • 1
    this does not show pdf with links. but just renders pdf, which i anyways can do with pdfRendered – mayank1513 Dec 02 '18 at 12:56
  • I was searching for this for some time, then I used library for this. You may check answer at https://stackoverflow.com/a/54400313/2641380 – SHS Jan 30 '19 at 12:39