pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: JBIG2 Images
Date Tue, 15 Mar 2016 21:23:04 GMT
Am 15.03.2016 um 10:17 schrieb Felix Hermann:
> Hello,
>
> I will do that.
>
> However:
>
> The pdfbox-documentation says: "You can have multiple threads each accessing their own
PDDocument object." (https://pdfbox.apache.org/1.8/faq.html)
>
> Maybe there should be a hint, that this also depends on optional dependencies as "JBIG2
ImageIO", "JBIG2-Image-Decoder" and "JAI Image I/O Tools Core" (https://pdfbox.apache.org/2.0/dependencies.html
)

Maybe, but then we should also warn about java as well. We've had 
problems with some ICC methods.

Tilman

>
> Felix
>
>
>
> Gesendet: Montag, 14. März 2016 um 18:39 Uhr
> Von: "Tilman Hausherr" <THausherr@t-online.de>
> An: users@pdfbox.apache.org
> Betreff: Re: JBIG2 Images
> Am 14.03.2016 um 10:38 schrieb Felix Hermann:
>> 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).
> Please open an issue here:
> https://github.com/levigo/jbig2-imageio/issues
>
> Tilman
>
>
>> Regards
>> Felix
>>
>>
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Tilman Hausherr [mailto:THausherr@t-online.de]
>> Gesendet: Mittwoch, 9. März 2016 19:07
>> An: users@pdfbox.apache.org
>> 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]]
)
>>>
>>> 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: users-unsubscribe@pdfbox.apache.org[mailto:users-unsubscribe@pdfbox.apache.org]
>>> For additional commands, e-mail: users-help@pdfbox.apache.org[mailto:users-help@pdfbox.apache.org]
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org[mailto:users-unsubscribe@pdfbox.apache.org]
>> For additional commands, e-mail: users-help@pdfbox.apache.org[mailto:users-help@pdfbox.apache.org]
>>
>>
>> ---------------------------------------------------------------------
>> 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
>   
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message