GitPedia

Open PDF File Android Example

An example project to demonstrate how to open a PDF file in Android programmatically

From MindorksOpenSource·Updated November 3, 2025·View on GitHub·

This project contains a sample app that shows how to open a PDF file in Android application programmatically. We will build the following in this project: * Open PDF in WebView * Open PDF from the assets folder using the AndroidPdfViewer library * Open PDF from the phone storage using the AndroidPdfViewer library * Download file from the internet using the PRDownloader library and then open that file using the AndroidPdfViewer library The project is written primarily in Kotlin, first published in 2020. Key topics include: android, android-example, mindorks, pdf-document, pdf-reader.

Open PDF File Android Example - An example project to demonstrate how to open a PDF file in Android programmatically

MindOrks
MindOrks Community

<p align="center"> <img src="https://github.com/MindorksOpenSource/Open-PDF-File-Android-Example/blob/master/assets/how-to-open-a-pdf-file-in-android-programmatically-banner.png"> </p> <br>

About this Project

This project contains a sample app that shows how to open a PDF file in Android application programmatically. We will build the following in this project:

  • Open PDF in WebView
  • Open PDF from the assets folder using the AndroidPdfViewer library
  • Open PDF from the phone storage using the AndroidPdfViewer library
  • Download file from the internet using the PRDownloader library and then open that file using the AndroidPdfViewer library

Step by Step guide

Reference blog for this project - How to open a PDF file in Android programmatically?

Explore Android Online Tutorials and Courses To Learn More by MindOrks

  • Ride-Sharing Uber Lyft Android App - Learn to build a ride-sharing Android Taxi Clone App like Uber, Lyft - Open-Source Project By MindOrks
  • Android Tutorial - All Free Android Tutorials by MindOrks
  • Android Online Course for Professionals - In this online course, you’ll learn the Dagger, Kotlin, RxJava, MVVM Architecture, Architecture Components, Jetpack, LiveData, ViewModel, Room Database, Database Design, Multithreading, Memory Management, Networking, Caching, How Glide works, Unit Testing, and the best practices for Android Development. By the end of this online course, you will have all the skills you need to become a professional Android Developer.
  • Android Online Course for Beginners - This course is for beginners for those who want to get started with Android Development. In this course, you will build two apps: TodoNotes and Ride-Sharing Uber Android App.

Contributors

Showing top 1 contributor by commit count.

View all contributors on GitHub →

This article is auto-generated from MindorksOpenSource/Open-PDF-File-Android-Example via the GitHub API.Last fetched: 6/27/2026