Am 07.11.2016 um 08:06 schrieb Zeiske, Erik (DualStudy):
Here is a Dropbox link to download the PDF:
https://www.dropbox.com/s/q1t58ov6vybu3k7/scan300_1-6.pdf?dl=0
I am using version 2.0.3 of PDF-Box

Thanks... the bpc value is indeed missing. I'll fix this tonight (we only process bpc=1 anyway) and then we'll see what other problems remain.

Tilman


-----Original Message-----
From: Tilman Hausherr [mailto:thaush...@t-online.de]
Sent: Donnerstag, 3. November 2016 18:07
To: users@pdfbox.apache.org
Subject: Re: Issues with MRC Compressed using JBIG2-immage

Am 03.11.2016 um 09:58 schrieb Zeiske, Erik (DualStudy):
Hello everybody,

I have an issue with PDFBox and the handling of a MRC Compressed PDF.

The issue is related to the JBIG2 Compression used in the PDF. If I
try to extract the different Images used in the PDF attached, the
library throws an NullPointerException cause the Bits are not defined
in the JBIG2-Filter. I think this is because in the PDF there is no
"Bits per Component" defined in the JBIG2-Immage. If I try to define
the Bits in the JAVA-Code the program runs without an error, but it
doesn't apply the JBIG2 mask properly to the foreground-colour-image
of the PDF. To fix this issue I tried to extract the mask into a file,
but it seems like the mask-image is the same as the foreground-image.
I couldn't find the reason for this and I don't think it is related to
the PDF itself.

The PDF I was using with is in the attached to this e-mail.

Please upload the file to a sharehoster, PDF attachments are not allowed. 
Please tell also what version you are using and what

Tilman

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to