You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2023/08/11 15:19:19 UTC
[pdfbox-docs] branch master updated: PDFBOX-3330: improve dependencies
This is an automated email from the ASF dual-hosted git repository.
tilman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pdfbox-docs.git
The following commit(s) were added to refs/heads/master by this push:
new c5a85e33 PDFBOX-3330: improve dependencies
c5a85e33 is described below
commit c5a85e334012d56583a0bfedf2c8e734d359027e
Author: Tilman Hausherr <ti...@snafu.de>
AuthorDate: Fri Aug 11 17:19:15 2023 +0200
PDFBOX-3330: improve dependencies
github for JAI
link to twelvemonkeys
---
content/2.0/dependencies.md | 27 ++++++++++++++++++++++++++-
1 file changed, 26 insertions(+), 1 deletion(-)
diff --git a/content/2.0/dependencies.md b/content/2.0/dependencies.md
index 8e048191..ba667455 100644
--- a/content/2.0/dependencies.md
+++ b/content/2.0/dependencies.md
@@ -78,7 +78,7 @@ These libraries are optional and will be loaded if present on the classpath, oth
Maven dependencies for these components can be found in [parent/pom.xml](https://svn.apache.org/viewvc/pdfbox/trunk/parent/pom.xml?view=markup). **Change the scope of the components if needed**. Please make sure that any third party licenses are suitable for your project.
-To include the JBIG2 library the following part can be included in your project pom.xml:
+To include the JBIG2 library the following part can be included in your project pom.xml:
```xml
<dependency>
@@ -88,6 +88,31 @@ To include the JBIG2 library the following part can be included in your project
</dependency>
```
+To include the JAI capabilities the following part can be included in your project pom.xml:
+
+```xml
+<dependency>
+ <groupId>com.github.jai-imageio</groupId>
+ <artifactId>jai-imageio-core</artifactId>
+ <version>...</version>
+</dependency>
+<dependency>
+ <groupId>com.github.jai-imageio</groupId>
+ <artifactId>jai-imageio-jpeg2000</artifactId>
+ <version>...</version>
+</dependency>
+```
+
+For more reliable JPEG decoding the following part from the [TwelveMonkeys library](https://github.com/haraldk/TwelveMonkeys) can be included in your project pom.xml:
+
+```xml
+<dependency>
+ <groupId>com.twelvemonkeys.imageio</groupId>
+ <artifactId>imageio-jpeg</artifactId>
+ <version>...</version>
+</dependency>
+```
+
### Encryption and Signing
Encrypting and sigining PDFs requires the *bcprov*, *bcmail* and *bcpkix* libraries from the [Legion of the Bouncy Castle](http://www.bouncycastle.org/). These can be included in your Maven project using the following dependencies: