Use both iText7 and iText 2.17

499 views Asked by At

Our Project has been using iText 2.17 for a long time. Now we would like to add digital signature to our pdfs and we prefer to use iText7. Can both iText < 5.3 and 5.3+ libraries used together? Will there be a problem in class loader or all the packages different from its predecessor?

1

There are 1 answers

3
Bruno Lowagie On BEST ANSWER

Your question starts well, but then gets confusing.

  • You can use iText 2 in combination with iText 5.
  • You can use iText 2 in combination with iText 7.
  • You can use iText 5 in combination with iText 7.

One can't state that you can use versions < 5.3 and versions >= 5.3 together. For instance: you can't use 5.0.0 and 5.5.9 together because they have the same major version number. You will have clashes in package names.

Summarized: all major versions have different package names, so that you can use major versions next to each other without clashes.