Kotlin PDF Viewer Library Example

Welcome folks I am back with another blog post. Today in this post we will be looking at a library which allows you to embed PDF Documents in Kotlin Application. The library name is PdfView-Android. You can download the library from here:

  1. Download


  1. It can handle big files to embed in Android Application
  2. It is based on ImageView Element in Android
  3. It gives you ultimate performance in rendering complex and big size PDF Documents.





How to Use


In order to use this library you need a PDF File on the system. Then you can write this line of code to include it through this library and display the file in app.



Add to your project:


Add gradle dependency:


Full Example Code


  1. Layout File:





2) Java Code:




Leave a Reply