Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feature_request(pdftojpeg): Cannot read JBIG2 image: jbig2-imageio is not installed #365

@Kristinita

Description

@Kristinita

1. Summary

If I use pdftojpeg, pdftosingletiff or pdftomultipletiff:

    images doesn't display in output JPEG or TIF.

Sejda

I get an error:

Cannot read JBIG2 image: jbig2-imageio is not installed

2. Data

3. Steps to reproduce

I download and unzip the latest Sejda Console Windows binary for 14.8.2019 → I add path of Sejda bin folder to my PATH environment variable → I run sejda-console command:

sejda-console pdftojpeg -f KiraDebuggingImage.pdf -o .

4. Expected behavior

Successful convert images from PDF. For example, see KiraPopplerImage.jpg — image, that I convert from Poppler via command pdftoppm -jpeg KiraDebuggingImage.pdf KiraDebugging:

pdftoppm

Possibly, in this issue I describe a bug. If no, it would be nice:

  1. Set jbig2-imageio automatically.
  2. Or at least add to documentation instructions, how users can do it. In my opinion, it is not obvious, — see «Not helped» section of this issue.

5. Actual behavior

D:\SashaDebugging\SejdaToTiff>sejda-console pdftojpeg -f KiraDebuggingImage.pdf -o SejdaOut
Configuring Sejda 3.2.83
Document root element "sejda", must match DOCTYPE root "null".
Document is invalid: no grammar found.
Starting execution with arguments: 'pdftojpeg -f KiraDebuggingImage.pdf -o .'
Java version: '1.8.0_221'
Validating parameters.
Starting task (org.sejda.impl.sambox.PdfToMultipleImageTask@22555ebf) execution.
Opening D:\SashaDebugging\SejdaToTiff\KiraDebuggingImage.pdf
Created output temporary buffer C:\Users\SASHAC~1\AppData\Local\Temp\sejdaTmp5291859507256300145.tmp
Cannot read JBIG2 image: jbig2-imageio is not installed
Cannot read JBIG2 image: jbig2-imageio is not installed
Task progress: 100% done
Moving C:\Users\SASHAC~1\AppData\Local\Temp\sejdaTmp5291859507256300145.tmp to D:\SashaDebugging\SejdaToTiff\SejdaOut\1_KiraDebuggingImage.jpg.
Documents converted to JPEG and saved to org.sejda.model.output.FileOrDirectoryTaskOutput@74fe5c40[D:\SashaDebugging\SejdaToTiff\SejdaOut]
Task (org.sejda.impl.sambox.PdfToMultipleImageTask@22555ebf) executed in 1 second
Completed execution
  • 1_KiraDebuggingImage.jpg:

    Sejda

6. Not helped

  1. I try to place sejda-console-3.2.83-bin\sejda-console-3.2.83\lib files levigo-jbig2-imageio-2.0-javadoc.jar and jbig2-imageio-3.0.0.jar as recommended on Stack Overflow here and here.
  2. I rename files from section above to jbig2-imageio.

7. Environment

  • Windows 10 Enterprise LTSB 64-bit EN
  • Java 1.8.0_211
  • Sejda Console 3.2.83

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions