项目作者: yusufaw

项目描述 :
Android library to download and render pdf file
高级语言: Java
项目地址: git://github.com/yusufaw/SkyPdfDownloader.git
创建时间: 2018-05-03T14:33:00Z
项目社区:https://github.com/yusufaw/SkyPdfDownloader

开源协议:

下载


AndroidPdfDownloader

This project aims to help download pdf and then render it. The rendering pdf is using codes from googlesamples/android-PdfRendererBasic

Usage

For a working implementation, please have a look at the Sample Project - app

  1. Include the library as local library project.

    1. allprojects {
    2. repositories {
    3. jcenter()
    4. maven { url "https://jitpack.io" }
    5. }
    6. }

    implementation 'com.github.yusufaw:AndroidPdfDownloader:latest-release'

  1. Add SkyPdfDownloader into your AndroidManifest.xml

    1. <activity
    2. android:name="com.skyshi.skypdf.SkyPdfDownloader"
    3. android:screenOrientation="portrait"
    4. android:theme="@style/AppTheme" ></activity>
  2. The AndroidPdfDownloader configuration is created using the builder pattern.

    1. SkyPdfDownloader.of(stringUrl, fileName)
    2. .withDescription("This is a awesome description")
    3. .start(context)

Apps using AndroidPdfDownloader