5

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.

Mayank Kumar Chaudhari
  • 16,027
  • 10
  • 55
  • 122

1 Answers1

-2

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 – Mayank Kumar Chaudhari 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