Thanks, this seems to work
 

Gesendet: Montag, 14. März 2016 um 18:38 Uhr
Von: "Tilman Hausherr" <[email protected]>
An: [email protected]
Betreff: Re: JBIG2 Images
Am 14.03.2016 um 13:00 schrieb Felix Hermann:
> Hello,
>
> do you know a fast way to determine whether there are JBIG2-Images in a PDF 
> document?

Search for /JBIG2Decode in the file.

Tilman

>
> I want my program switch to another PDF-Tool in this case.
>
> Regards
>
> Felix
>
>
>
>
>
> Gesendet: Montag, 14. März 2016 um 10:38 Uhr
> Von: "Felix Hermann" <[email protected]>
> An: [email protected]
> Betreff: AW: JBIG2 Images
> Hello,
>
> thanks for your advice.
>
> Another point: It seems that levigo is not thread-safe. When I used it with 5 
> threads, all five threads were blocked after about one hour. All threads were 
> locked in HashMap.getEntry() (after calling a class of levigo).
>
> Regards
> Felix
>
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Tilman Hausherr [mailto:[email protected]]
> Gesendet: Mittwoch, 9. März 2016 19:07
> An: [email protected]
> Betreff: Re: JBIG2 Images
>
> Am 09.03.2016 um 15:11 schrieb Felix Hermann:
>> Hello,
>>
>> we use PDFBox 2.0.0 for converting PDF to images.
>>
>> We also want to support JBIG2 images. Therefore we would like to use
>> the JBIG2-Image-Decoder, which is proposed on your website. (See:
>> https://pdfbox.apache.org/2.0/dependencies.html[https://pdfbox.apache.org/2.0/dependencies.html[https://pdfbox.apache.org/2.0/dependencies.html][https://pdfbox.apache.org/2.0/dependencies.html[https://pdfbox.apache.org/2.0/dependencies.html]]]
>>  )
>>
>> On your website it says: "These libraries are optional and will be loaded if 
>> present on the classpath, otherwise support for these image formats will be 
>> disable and a warning will be logged when an unsupported image is 
>> encountered."
>>
>> I downloaded the source code, created a jar-file and put it onto the 
>> classpath.
>>
>> However it didn't work. I'm getting the following error:
>>
>> [09.03.2016 14:37:59] ERROR
>> org.apache.pdfbox.contentstream.PDFStreamEngine
>> (PDFStreamEngine.java:851) - Cannot read JBIG2 image: jbig2-imageio is
>> not installed
>>
>> I also tried 'JBIG2 ImageIO' by 'levigo'. This worked. However we cannot use 
>> it, as it is under the GPL-Licence.
>
> That is the reason why we don't distribute the levigo software.
>
> Solutions for you:
> - Distribute your software without it and have your users download it
> - Write your own decoder (you could take the one in PDF.js and write it in 
> java, it is Apache licensed)
> - Ask levigo for an apache license.
>
> Tilman
>
>>
>> Any help will be appreciated
>>
>> Regards
>>
>> Felix
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: 
>> [email protected][mailto:[email protected]]
>> For additional commands, e-mail: 
>> [email protected][mailto:[email protected]]
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> [email protected][mailto:[email protected]]
> For additional commands, e-mail: 
> [email protected][mailto:[email protected]]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to