Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.53 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.53 KB

PdfBox-Android

Download Build Status

A port of Apache's PdfBox library to be usable on Android. Most features should be implemented by now. Feature requests can be added to the issue tracker. Stable releases can be added as a Gradle dependency from jcenter.

The main code of this project is licensed under the Apache 2.0 License, found at http://www.apache.org/licenses/LICENSE-2.0.html Any code released under a different licenses will be stated in the header.

Usage

Add the following to dependency to build.gradle:

dependencies {
    implementation 'com.tom_roush:pdfbox-android:1.8.10.1'
}

Before calls to PDFBox are made it is highly recommended to initialize the library's resource loader. Add the following line before calling PDFBox methods:

PDFBoxResourceLoader.init(getApplicationContext());

An example app is located in the sample directory and includes examples of common tasks.

Important notes

-Currently based on PdfBox v1.8.10

-Requires API 19 or greater for full functionality

Dependencies

PDFBox-Android depends on the following libraries: SpongyCastle core, prov, and pkix: https://github.com/rtyley/spongycastle/