Installing iText Community for Java developers
How to install iText Community Java version
Thank you for your interest in our open-source PDF library, we hope you will enjoy using our product and share your experiences with us and the iText community. We will walk you through the installation process, from downloading iText Community to adding the dependency to your Java build tool.
If you require any extra help please have a look at our FAQs or the community discussion at StackOverflow. If you are interested in getting support from our in-house developers and/or a license key for commercial iText products, you will need to acquire a commercial license.
Before you install
- Make sure you have read and agreed upon the AGPL license. All downloads we offer open-source come with the AGPL license model.
- Download the modules (.jar) of iText Community (ZIP files) from Maven Central: iText 7 Community
- Important remark: In our installation guides, we use Maven as a build tool for Java.
Installation
Automated dependency management for iText Community Java
iText Community is available via Maven on The Central repository. You will need to choose whether you want to add all modules or just the ones you require.
Adding all modules
If you need all iText Community modules, then you don't need to add the individual modules and you can just add this XML snippet in your pom.xml. Maven will then do all the heavy lifting for you and download the required modules from The Central Repository.
<properties>
<itext.version>$release-core-7-variable</itext.version>
</properties>
<dependencies>
<!-- add all iText Community modules -->
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>itext7-core</artifactId>
<version>${itext.version}</version>
<type>pom</type>
</dependency>
</dependencies>
Adding only the modules you need
If you do not require some of the functionality in iText Community, then you can add only the modules you need. Please be aware you will always need kernel, io and layout. You will need to add the following XML snippets to your pom.xml - this is to add iText Community as a dependency to your pom.xml.
<properties>
<itext.version>$release-core-7-variable</itext.version>
</properties>
<dependencies>
<!-- always needed -->
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>kernel</artifactId>
<version>${itext.version}</version>
</dependency>
<!-- always needed -->
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>io</artifactId>
<version>${itext.version}</version>
</dependency>
<!-- always needed -->
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>layout</artifactId>
<version>${itext.version}</version>
</dependency>
<!-- only needed for forms -->
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>forms</artifactId>
<version>${itext.version}</version>
</dependency>
<!-- only needed for PDF/A -->
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>pdfa</artifactId>
<version>${itext.version}</version>
</dependency>
<!-- only needed for digital signatures -->
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>sign</artifactId>
<version>${itext.version}</version>
</dependency>
<!-- only needed for barcodes -->
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>barcodes</artifactId>
<version>${itext.version}</version>
</dependency>
<!-- only needed for Asian fonts -->
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>font-asian</artifactId>
<version>${itext.version}</version>
</dependency>
<!-- only needed for hyphenation -->
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>hyph</artifactId>
<version>${itext.version}</version>
</dependency>
</dependencies>
iText Community Java on GitHub
- The source code is available on GitHub.
- You can download the modules (.jar) of iText Community in ZIP files from Maven Central: iText Community
- Developers can clone the following git projects to access the source code: iText Community
Adding our open-source add-ons
If you would like to add one of our open-source add-ons, please first have a look at the compatibility matrix and the installation guides of each of these add-ons.