Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Kristinita opened this issue Aug 18, 2019 · 0 comments

Comments

@Kristinita
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant