Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

2.

Maven Dependencies
First, we need to include the following Maven dependencies in our project:

<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>itextpdf</artifactId>
<version>5.5.13.3</version>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>3.0.0-RC1</version>
</dependency>
Copy
The latest version of the libraries can be found here: iText and PdfBox.

It's important to know that iText is available under the open-source AGPL license,
as well as a commercial license. If we purchase a commercial license, we can keep
our source code to ourselves, allowing us to retain our IP. If we use the AGPL
version, we'll need to release our source code free of charge. We can follow this
link to determine how to make sure our software complies with AGPL.

We'll also need to add one extra dependency in case we need to encrypt our file.
The Bouncy Castle Provider package contains implementations of cryptographic
algorithms, and is required by both libraries:

You might also like