Android library to download and render pdf file
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
latest-release'
Add SkyPdfDownloader into your AndroidManifest.xml
<activity
android:name="com.skyshi.skypdf.SkyPdfDownloader"
android:screenOrientation="portrait"
android:theme="@style/AppTheme" ></activity>
The AndroidPdfDownloader configuration is created using the builder pattern.
SkyPdfDownloader.of(stringUrl, fileName)
.withDescription("This is a awesome description")
.start(context)