ICEpdf
  1. ICEpdf
  2. PDF-1183

Some images shown incorrectly in ICEpdf web version (servlet)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.2.4
    • Fix Version/s: 6.3
    • Component/s: Imaging
    • Labels:
      None
    • Environment:
      Ubuntu 14.04.4
    • Workaround Description:
      JAI jars need to be on the class path to load the JPEG 2000 images. More information in case comments.

      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.
      1. 1.pdf
        2.18 MB
        Anton Sergeyev
      2. 2.pdf
        487 kB
        Anton Sergeyev
      1. screenshot-icepdf-viewer.icesoft.org-2017-08-05-21-47-08.png
        81 kB
      2. screenshot-icepdf-viewer.icesoft.org-2017-08-05-21-47-32.png
        75 kB

        Activity

        Hide
        Patrick Corless added a comment -

        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>

        Show
        Patrick Corless added a comment - 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>
        Hide
        Anton Sergeyev added a comment -

        Workaround with JAI works OK, so the issue can be closed.

        Show
        Anton Sergeyev added a comment - Workaround with JAI works OK, so the issue can be closed.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Anton Sergeyev
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: