Installing iText 7 Core for Java developers

How to install iText 7 Core 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 7 Core to adding the dependency to your Java building tool.

Finally, if you would require extra help please have a look at our FAQs or the community discussion at StackOverflow. If you are interested in getting support of 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 purchased a commercial license of iText 7 Core. All downloads we offer closed-sourcce come with our commercial license model.
  • Download and install the proper license key library, you can find the installation guide here.
  • Download the modules (.jar) of iText 7 Core (ZIP files) from Maven Central.
  • Important remark: in the installation guide we use Maven as building tool for Java.

Installation

Using the Central Repository

iText 7 Core 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 7 Core 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. Simply add iText 7 Core as a dependency to your pom.xml:

<properties>
   <itext.version>RELEASE</itext.version>
</properties>
<dependencies>
	<!-- add all iText 7 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 7 Core, 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. Simply add iText 7 Core as a dependency to your pom.xml.

<properties>
   <itext.version>RELEASE</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>

Using the iText Artifactory Server

iText 7 Core is also available on the iText Artifactory server. Here you can also find the license key library, and closed-source add-ons - you require an additional license key for these add-ons.

You can add this server as an additional Maven repository in the repositories section of your pom.xml or settings.xml, as described in the Maven documentation. Maven will then automatically query this repository for the add-on .jar files.

You can also browse the iText Artifactory server and download jars manually.

1. Add repository to .pom project file:

<!-- All add-ons and iText 7 core-->
<repositories>
  <repository>
    <id>itext</id>
    <name>iText Repository - releases</name>
    <url>https://repo.itextsupport.com/releases</url>
  </repository>
</repositories>

2. Add the dependencies to .pom project file:

<properties>
   <itext.version>RELEASE</itext.version>
</properties>

Text 7 Core Java on GitHub

The source code is available on GitHub. You can download the modules (.jar) of iText 7 Core in ZIP files from Maven Central: https://mvnrepository.com/artifact/com.itextpdf Developers can clone the following git projects to access the source code: https://github.com/itext/itext7

Adding our iText 7 add-ons

If you would like to add one of our add-ons, please first have a look at below compatibility matrix and the installation guides of each of these add-ons.

Compatibility Matrix

Use our easy compatibility matrix tool to find more information about the compatibility between your current iText Core/Community version and our add-ons and 3rd-party standalone applications

Add-ons 7.1.5

iText 7 Core

7.1.5

iText 7 Community

7.1.5

pdf2Data

2.0.0 - 2.1.2

pdfHTML

2.1.2

pdfDebug

2.0.1

More add-ons 7.1.5

pdfSweep

2.0.3

pdfXFA

2.0.1

pdfCalligraph

2.0.3

pdfOCR+

/

pdfSearch

/

Contact

Still have questions? 

We're happy to answer your questions. Reach out to us and we'll get back to you shortly.

Contact us
Stay updated

Join 11,000+ subscribers and become an iText PDF expert by staying up to date with our new products, updates, tips, technical solutions and happenings.

Subscribe Now