Details
Description
Images in some pdf documents are shown incorrectly (visible garbage instead of an image). It can be reproduced in Servlet Demo on icesoft web site.
PDFs are attached along with the corresponding screenshots.
PDFs are attached along with the corresponding screenshots.
Activity
Anton Sergeyev
created issue -
Anton Sergeyev
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | 1.pdf [ 22571 ] | |
Attachment | 2.pdf [ 22572 ] | |
Attachment | screenshot-icepdf-viewer.icesoft.org-2017-08-05-21-47-08.png [ 22573 ] | |
Attachment | screenshot-icepdf-viewer.icesoft.org-2017-08-05-21-47-32.png [ 22574 ] |
Patrick Corless
made changes -
Workaround Description | JAI jars need to be on the class path to load the JPEG 2000 images. More information in case comments. |
Patrick Corless
made changes -
Fix Version/s | 6.3 [ 13093 ] |
Patrick Corless
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Patrick Corless
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
The corrupt looking images are of the type JPEG 2000. In order to load this libraries JAI must be installed in the Server class path or deployed in the application.
The maven build script can be appended with the follow dependencies.
<repositories>
<repository>
<id>jboss-3rd-party-releases</id>
<url>https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>javax.media</groupId>
<artifactId>jai_core</artifactId>
<version>1.1.3</version>
</dependency>
<dependency>
<groupId>com.sun.media</groupId>
<artifactId>jai-codec</artifactId>
<version>1.1.3</version>
</dependency>
<dependency>
<groupId>com.sun.media</groupId>
<artifactId>jai_imageio</artifactId>
<version>1.1</version>
</dependency>
</dependencies>