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.heavywar:itext7:7.2.0'
}
dependencies {
implementation("com.github.heavywar:itext7:7.2.0")
}
<dependency>
<groupId>com.github.heavywar</groupId>
<artifactId>itext7</artifactId>
<version>7.2.0</version>
</dependency>
libraryDependencies += "com.github.heavywar" % "itext7" % "7.2.0"
:dependencies [[com.github.heavywar/itext7 "7.2.0"]]
iText 7 Community consists of several jars.
The iText 7 Core/Community release contains:
kernel-x.y.z.jar
: low-level functionalityio-x.y.z.jar
: low-level functionalitylayout-x.y.z.jar
: high-level functionalityforms-x.y.z.jar
: AcroFormspdfa-x.y.z.jar
: PDF/A-specific functionalitypdftest-x.y.z.jar
: test helper classesbarcode-x.y.z.jar
: use this if you want to create bar codeshyph-x.y.z.jar
: use this if you want text to be hyphenatedfont-asian-x.y.z.jar
: use this is you need CJK functionality (Chinese / Japanese / Korean)sign-x.y.z.jar
: use this if you need support for digital signaturesstyled-xml-parser-x.y.z.jar
: use this if you need support for SVG or html2pdfsvg-x.y.z.jar
: SVG supportThe iText 7 Community source code is hosted on Github, where you can also download the latest releases.
You can also build iText 7 Community from source.
We also provide opensource add-ons and tools to complement the core functionality:
If you have an idea on how to improve iText 7 Community and you want to submit code, please read our Contribution Guidelines.
iText 7 is dual licensed as AGPL/Commercial software.
AGPL is a free / open source software license.
This doesn't mean the software is gratis!
Buying a license is mandatory as soon as you develop commercial activities distributing the iText software inside your product or deploying it on a network without disclosing the source code of your own applications under the AGPL license. These activities include:
Contact sales for more info.