GitHub
github.com › afreakyelf › Pdf-Viewer
GitHub - afreakyelf/Pdf-Viewer: A Lightweight PDF Viewer Android library which only occupies around 80kb while most of the Pdf viewer occupies up to 16MB space. · GitHub
A Lightweight PDF Viewer Android library which only occupies around 80kb while most of the Pdf viewer occupies up to 16MB space. - afreakyelf/Pdf-Viewer
Starred by 1.2K users
Forked by 240 users
Languages Kotlin 99.7% | Python 0.3%
GitHub
github.com › voghDev › PdfViewPager
GitHub - voghDev/PdfViewPager: Android widget that can render PDF documents stored on SD card, linked as assets, or downloaded from a remote URL.
<es.voghdev.pdfviewpager.library.PDFViewPager android:id="@+id/pdfViewPager" android:layout_width="match_parent" android:layout_height="match_parent" app:assetFileName="sample.pdf"/>
Starred by 1.7K users
Forked by 336 users
Languages Java 100.0% | Java 100.0%
GitHub
github.com › Bhuvaneshw › PdfViewer
GitHub - Bhuvaneshw/PdfViewer: A lightweight Android PDF viewer library powered by Mozilla's PDF.js, offering seamless PDF rendering and interactive features. Supports both Jetpack Compose and Xml. · GitHub
A lightweight Android PDF viewer library powered by Mozilla's PDF.js, offering seamless PDF rendering and interactive features. Supports both Jetpack Compose and Xml. - Bhuvaneshw/PdfViewer
Starred by 125 users
Forked by 18 users
Languages Kotlin 89.1% | JavaScript 8.2% | CSS 1.8%
GitHub
github.com › ameriod › Android-Pdf-Viewer
GitHub - ameriod/Android-Pdf-Viewer: Android Pdf Viewer Library that uses the PdfRenderer and a ViewPager · GitHub
allprojects { repositories { maven { url "https://jitpack.io" } } } Then, add the library to your module build.gradle · dependencies { implementation 'com.github.ameriod:Android-Pdf-Viewer:1.0.0' } <me.ameriod.lib.pdfviewer.PdfViewerView android:id="@+id/pdfViewer" android:layout_width="match_parent" android:layout_height="match_parent" /> Then call one of the setPdf methods to display the PDF.
Starred by 10 users
Forked by 2 users
Languages Java 83.0% | Kotlin 17.0%
GitHub
github.com › fajaranugrah › pdfviewer
GitHub - fajaranugrah/pdfviewer: A lightweight, high-performance Android PDF Viewer library powered by WebView and PDF.js. Features native pinch-to-zoom, text selection, and canvas tiling for high-resolution rendering.
A lightweight, high-performance Android PDF Viewer library powered by WebView and PDF.js. Features native pinch-to-zoom, text selection, and canvas tiling for high-resolution rendering. - fajaranugrah/pdfviewer
Author fajaranugrah
GitHub
github.com › manishkummar21 › AndroidPdfViewer
GitHub - manishkummar21/AndroidPdfViewer: Lightweight PDF Renderer Android · GitHub
Library for displaying PDF documents on Android, with animations, gestures, zoom and double tap support.Works on API 21 (Android 5.0) and higher. Step 1. Add it in your root build.gradle at the end of repositories: allprojects { repositories ...
Starred by 51 users
Forked by 20 users
Languages Java
GitHub
github.com › Dmitry-Borodin › pdfview-android
GitHub - Dmitry-Borodin/pdfview-android: Small Android library to show PDF files · GitHub
Small Android library to show PDF files. Contribute to Dmitry-Borodin/pdfview-android development by creating an account on GitHub.
Starred by 304 users
Forked by 54 users
Languages Java 93.8% | Kotlin 6.2%
GitHub
github.com › DImuthuUpe › AndroidPdfViewer
GitHub - DImuthuUpe/AndroidPdfViewer: Android view for displaying PDFs rendered with PdfiumAndroid · GitHub
Library for displaying PDF documents on Android, with animations, gestures, zoom and double tap support. It is based on PdfiumAndroid for decoding PDF files. Works on API 11 (Android 3.0) and higher.
Starred by 8.5K users
Forked by 2.1K users
Languages Java
GitHub
github.com › barteksc › AndroidPdfViewerV2
GitHub - barteksc/AndroidPdfViewerV2: Android view for displaying PDFs rendered with PdfiumAndroid · GitHub
Starred by 192 users
Forked by 150 users
Languages Java
GitHub
github.com › barteksc › AndroidPdfViewer › pull › 366 › files
Add load pdf from url use okhttp3 by shxdos · Pull Request #366 · DImuthuUpe/AndroidPdfViewer
July 23, 2017 - maven { url 'https://jitpack.io' } } } ## Step 2. Add the dependency · dependencies { compile 'com.github.shxdos:AndroidPdfViewer:2.7.0-beta.2' } Add to _build.gradle_: `compile 'com.github.barteksc:android-pdf-viewer:2.7.0-beta.1'` or `2.6.1` for more stable version · Library is available in jcenter repository, probably it'll be in Maven Central soon.
Author DImuthuUpe
GitHub
github.com › topics › android-pdf-viewer
android-pdf-viewer · GitHub Topics · GitHub
android-library pdf-viewer android-pdf pdf-library native-android pdfrenderer android-pdf-viewer android-15 16kb-compatible 16kb-page-size google-play-2025 16kb-alignment no-jni barteksc-alternative google-play-requirement alamin5g-pdf-viewer alamin5g
GitHub
github.com › tuhinx › pdf-viewer-android
GitHub - tuhinx/pdf-viewer-android: PDF Viewer For Android · GitHub
A powerful and feature-rich Android library for displaying PDF documents with smooth animations, gestures, zoom, and double tap support · 💼 Built on top of PdfiumAndroid for PDF decoding. Compatible with API 15 (Android 4.0) and higher. ... dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { mavenCentral() maven { url 'https://jitpack.io' } } } dependencies { implementation 'com.github.tuhinx:pdf-viewer-android:3.0.3' }
Author tuhinx
GitHub
github.com › topics › android-pdf
android-pdf · GitHub Topics · GitHub
Little example for create pdf from ... using pdf URL with offline mode and online direct stream mode · pdf android-pdf pdf-library android-pdf-viewer ·...
Pdf-Viewer
afreakyelf.github.io › Pdf-Viewer
Pdf-Viewer | A Lightweight PDF Viewer Android library which only occupies around 80kb while most of the Pdf viewer occupies up to 16MB space.
Ensure the library is included in your project’s dependencies. To display a PDF from a URL, use the following code:
Top answer 1 of 11
83
Since API Level 21 (Lollipop) Android provides a PdfRenderer class:
// create a new renderer
PdfRenderer renderer = new PdfRenderer(getSeekableFileDescriptor());
// let us just render all pages
final int pageCount = renderer.getPageCount();
for (int i = 0; i < pageCount; i++) {
Page page = renderer.openPage(i);
// say we render for showing on the screen
page.render(mBitmap, null, null, Page.RENDER_MODE_FOR_DISPLAY);
// do stuff with the bitmap
// close the page
page.close();
}
// close the renderer
renderer.close();
For more information see the sample app.
For older APIs I recommend Android PdfViewer library, it is very fast and easy to use, licensed under Apache License 2.0:
pdfView.fromAsset(String)
.pages(0, 2, 1, 3, 3, 3) // all pages are displayed by default
.enableSwipe(true)
.swipeHorizontal(false)
.enableDoubletap(true)
.defaultPage(0)
.onDraw(onDrawListener)
.onLoad(onLoadCompleteListener)
.onPageChange(onPageChangeListener)
.onPageScroll(onPageScrollListener)
.onError(onErrorListener)
.enableAnnotationRendering(false)
.password(null)
.scrollHandle(null)
.load();
2 of 11
56
public class MyPdfViewActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
WebView mWebView=new WebView(MyPdfViewActivity.this);
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setPluginsEnabled(true);
mWebView.loadUrl("https://docs.google.com/gview?embedded=true&url="+LinkTo);
setContentView(mWebView);
}
}
GitHub
github.com › PDFTron › pdf-viewer-android
GitHub - ApryseSDK/pdf-viewer-android: Android Quick Start Guide: Add a document viewer using the PDFTron Android SDK
November 9, 2019 - Android Quick Start Guide: Add a document viewer using the PDFTron Android SDK - ApryseSDK/pdf-viewer-android
Starred by 9 users
Forked by 2 users
Languages Java 100.0% | Java 100.0%
JitPack
jitpack.io › p › ChristianSteffensen › AndroidPdfViewer
ChristianSteffensen / AndroidPdfViewer Download
Library for displaying PDF documents on Android, with animations, gestures, zoom and double tap support. It is based on PdfiumAndroid for decoding PDF files. Works on API 11 and higher. Licensed under Apache License 2.0. Add to build.gradle: compile 'com.github.barteksc:android-pdf-viewer:1.0.0' ...
GitHub
github.com › topics › android-pdfviewer
android-pdfviewer · GitHub Topics · GitHub
A Lightweight PDF Viewer Android library which only occupies around 80kb while most of the Pdf viewer occupies up to 16MB space.