tripplemac/pdfbox-android-lite


The Apache PdfBox project ported to work on Android

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.tripplemac:pdfbox-android-lite:1.8.9.2'
	}
	dependencies {
		implementation("com.github.tripplemac:pdfbox-android-lite:1.8.9.2")
	}
	<dependency>
	    <groupId>com.github.tripplemac</groupId>
	    <artifactId>pdfbox-android-lite</artifactId>
	    <version>1.8.9.2</version>
	</dependency>

                            
    libraryDependencies += "com.github.tripplemac" % "pdfbox-android-lite" % "1.8.9.2"
        
        

                            
    :dependencies [[com.github.tripplemac/pdfbox-android-lite "1.8.9.2"]]
        
        

Readme


pdfbox-android-lite

A lightweight port of Apache's PdfBox library to be usable on Android. This implementation is forked from the PdfBox-Android project.

It's main goal is to reduce the size of the library. Therefore I've removed the PDF encryption and security support as well as some unused resources. The size of the library is reduced from approximately 7.4MB to almost 1.1MB.

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 Code released under other licenses will be stated in the header.