[ 
https://issues.apache.org/jira/browse/PDFBOX-3651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15822199#comment-15822199
 ] 

Tilman Hausherr commented on PDFBOX-3651:
-----------------------------------------

But the rest of the PDF is still displayed. The only inconvenience you have is 
a log message. You could shut that off too by some fine tuning of your logger.

> Allow users to filter the image types that are read to ignore unsupported ones
> ------------------------------------------------------------------------------
>
>                 Key: PDFBOX-3651
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3651
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.4
>            Reporter: Nicholas DiPiazza
>
> Many cannot use the jb2 image libraries due to license GPL3.
> Can you please add a feature to ignore certain image types? This would avoid 
> the below exception
> {code}
> Caused by: org.apache.pdfbox.filter.MissingImageReaderException: Cannot read 
> JBIG2 image: jbig2-imageio is not installed
>       at org.apache.pdfbox.filter.Filter.findImageReader(Filter.java:128) 
> ~[pdfbox-2.0.1.jar:2.0.1]
>       at org.apache.pdfbox.filter.JBIG2Filter.decode(JBIG2Filter.java:55) 
> ~[pdfbox-2.0.1.jar:2.0.1]
>       at org.apache.pdfbox.cos.COSInputStream.create(COSInputStream.java:69) 
> ~[pdfbox-2.0.1.jar:2.0.1]
>       at 
> org.apache.pdfbox.cos.COSStream.createInputStream(COSStream.java:163) 
> ~[pdfbox-2.0.1.jar:2.0.1]
>       at 
> org.apache.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream.java:235)
>  ~[pdfbox-2.0.1.jar:2.0.1]
>       at 
> org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.<init>(PDImageXObject.java:147)
>  ~[pdfbox-2.0.1.jar:2.0.1]
>       at 
> org.apache.pdfbox.pdmodel.graphics.PDXObject.createXObject(PDXObject.java:70) 
> ~[pdfbox-2.0.1.jar:2.0.1]
>       at 
> org.apache.pdfbox.pdmodel.PDResources.getXObject(PDResources.java:385) 
> ~[pdfbox-2.0.1.jar:2.0.1]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to