This project aims to help download pdf and then render it. The rendering pdf is using codes from googlesamples/android-PdfRendererBasic
For a working implementation, please have a look at the Sample Project - app
-
Include the library as local library project.
allprojects { repositories { jcenter() maven { url "https://jitpack.io" } } }implementation 'com.github.yusufaw:AndroidPdfDownloader:latest-release' -
Add SkyPdfDownloader into your AndroidManifest.xml
<activity android:name="com.skyshi.skypdf.SkyPdfDownloader" android:screenOrientation="portrait" android:theme="@style/AppTheme" /> -
The AndroidPdfDownloader configuration is created using the builder pattern.
SkyPdfDownloader.of(stringUrl, fileName) .withDescription("This is a awesome description") .start(context)