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.MartinKocour:OpenPDF:1.0.2'
}
dependencies {
implementation("com.github.MartinKocour:OpenPDF:1.0.2")
}
<dependency>
<groupId>com.github.MartinKocour</groupId>
<artifactId>OpenPDF</artifactId>
<version>1.0.2</version>
</dependency>
libraryDependencies += "com.github.MartinKocour" % "OpenPDF" % "1.0.2"
:dependencies [[com.github.MartinKocour/OpenPDF "1.0.2"]]
OpenPDF is a Java library for creating and editing PDF files with a LGPL and MPL open source license. OpenPDF is based on a fork of iText 4. We welcome contributions from other developers. Please feel free to submit pull-requests and bugreports to this GitHub repository.
Get version 1.0.1 here - https://github.com/LibrePDF/OpenPDF/releases/tag/1.0.1
GNU General Lesser Public License (LGPL) version 3.0 - http://www.gnu.org/licenses/lgpl.html
Mozilla Public License Version 2.0 - http://www.mozilla.org/MPL/2.0/
Add this to your pom.xml file:
<dependency>
<groupId>com.github.librepdf</groupId>
<artifactId>openpdf</artifactId>
<version>1.0.1</version>
</dependency>
Beginning with version 5.0 of iText, the developers have moved to the AGPL to improve their ability to sell commercial licenses. The OpenPDF project is a fork of iText 4, with a LGPL and MPL open source license.
This repo has the following changes from the old "original" 4.2.0 version:
Release the hounds! Please send all pull requests.
BouncyCastle 1.56: Provider PKIX/CMS
PDFRenderer
DOM4j
JUnit 4 - for unit testing
JFreeChart: - for testing graphical examples JFreeChart JCommon Servlet