Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-3769

Cannot read JBIG2 image when JBIG2-Image-Decoder is in path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.5
    • 2.0.6, 3.0.0 PDFBox
    • None
    • Windows 10

    Description

      I understand from the "Dependencies" page (https://pdfbox.apache.org/2.0/dependencies.html) that "JBIG2 ImageIO" and "JBIG2-Image-Decoder" should be interchangeable but I get the following error message when using JBIG2-Image-Decoder:

      GRAVE: Cannot read JBIG2 image: jbig2-imageio is not installed

      Command line is:

      java -cp "JBIG2-Image-Decoder.jar;bcmail-jdk15on-1.54.jar;bcpkix-jdk15on-1.54.jar;bcprov-jdk15on-1.54.jar;commons-logging-1.2.jar;diffutils-1.3.0.jar;fontbox-2.0.5.jar;hamcrest-core-1.3.jar;jai-imageio-core-1.3.1.jar;jai-imageio-jpeg2000-1.3.0.jar;junit-4.12.jar;JBIG2-Image-Decoder.jar;pdfbox-app-2.0.5.jar" org.apache.pdfbox.tools.PDFToImage jbig2.pdf

      If I change JBIG2-Image-Decoder.jar for levigo-jbig2-imageio-1.6.5.jar then conversion is successfull:

      java -cp "levigo-jbig2-imageio-1.6.5.jar;bcmail-jdk15on-1.54.jar;bcpkix-jdk15on-1.54.jar;bcprov-jdk15on-1.54.jar;commons-logging-1.2.jar;diffutils-1.3.0.jar;fontbox-2.0.5.jar;hamcrest-core-1.3.jar;jai-imageio-core-1.3.1.jar;jai-imageio-jpeg2000-1.3.0.jar;junit-4.12.jar;JBIG2-Image-Decoder.jar;pdfbox-app-2.0.5.jar" org.apache.pdfbox.tools.PDFToImage jbig2.pdf

      Attachments

        1. jbig2.jar
          85 kB
          Tilman Hausherr
        2. JBIG2-Image-Decoder.jar
          250 kB
          Esteban Nicolas Ruiz
        3. jbig2.pdf
          1 kB
          Esteban Nicolas Ruiz

        Activity

          People

            Unassigned Unassigned
            eruiz0 Esteban Nicolas Ruiz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: