Com. Itextpdf. Text Which Itext Jar Last Version Was Included?
What Is the Jar Version Com. Itextpdf. Text Package Was Included? I Was Using This Code Below Maven Code Updating Package Version 7.0.0 Showing Errors While...
what is the jar version com.itextpdf.text package was included ? I was using this code below maven code updating package version 7.0.0 Showing errors while building the application and cloud not generate the jar file in the maven repository location ,I thought will able to get the external jar file use it.
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>itextpdf</artifactId>
<version>7.0.0</version>
2 Answers
iText was rewritten from scratch a couple of years ago. During this operation, the package names were changed so that there wouldn't be any clashes if people used both versions next to each other.
The package name com.itextpdf.text was used with the iText 5 series. All iText 5 versions are being phased out. If you start a new project, you should start with iText 7, not iText 5.
If you are working on an existing project, then there are two options:
- Either you are distributing iText in an open source context (using the AGPL license); in that case, please show us where you have published the full source code of your project (making your own code open source is required if you're using iText for free under the AGPL).
- Or you are distributing iText in a closed source context. In that case, you should be a paying customer (if not, you are in violation with the AGPL). As a paying customer, you have the right to updates of iText 5 with bug fixes. We won't add new functionality to iText 5, but we make maintenance releases at the request of our paying customers.
Summarized: either use iText 7 (but then don't use the com.itextpdf.text packages); or use iText 5 (5.5.13 was the latest maintenance release), but only if you have to support legacy software. In both cases, make sure that you purchased a commercial license if you are working in a closed source context.
First of all: read and understand Bruno's answer.
iText 7
<!-- -->
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>itext7-core</artifactId>
<version>7.1.1</version>
<type>pom</type>
</dependency>
This is a pom-only dependency that pulls in all iText modules, even the ones you don't need. See for detailed installation instructions (so you only pull in the dependencies you really need) and a compatibility matrix.
iText 5
<!-- -->
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>itextpdf</artifactId>
<version>5.5.13</version>
</dependency>
Information valid as of 17 April 2018. In a few days this information will already will be obsolete, when iText 7.1.2 comes out.