You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by "Zeiske, Erik (DualStudy)" <er...@hpe.com> on 2016/11/03 08:58:41 UTC
Issues with MRC Compressed using JBIG2-immage
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.
Best regards
Erik Zeiske.
Re: Issues with MRC Compressed using JBIG2-immage
Posted by Tilman Hausherr <TH...@t-online.de>.
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:THausherr@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-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
Re: Issues with MRC Compressed using JBIG2-immage
Posted by Tilman Hausherr <TH...@t-online.de>.
Hello Erik,
I've opened
https://issues.apache.org/jira/browse/PDFBOX-3558
and fixed the cause for the NPE in the sources. I have not fully
understood your text or maybe misunderstood something, and maybe
something is now moot; can you please test with a snapshot that the
rendering is like you want it? The build will be there within a few hours.
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.4-SNAPSHOT/
Tilman
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
>
> -----Original Message-----
> From: Tilman Hausherr [mailto:THausherr@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-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
RE: Issues with MRC Compressed using JBIG2-immage
Posted by "Zeiske, Erik (DualStudy)" <er...@hpe.com>.
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
-----Original Message-----
From: Tilman Hausherr [mailto:THausherr@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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
Re: Issues with MRC Compressed using JBIG2-immage
Posted by Tilman Hausherr <TH...@t-online.de>.
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
> doesnt 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 couldnt find the reason for this and I dont 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