Details
Description
Currently JBIG2Filter does not set read params. This causes noise because jbig2-imageio logs this before using default params (e.g. see this comment). This patch explicitly uses the default params, which would solve that:
Index: pdfbox/src/main/java/org/apache/pdfbox/filter/JBIG2Filter.java =================================================================== --- pdfbox/src/main/java/org/apache/pdfbox/filter/JBIG2Filter.java (revision 1650041) +++ pdfbox/src/main/java/org/apache/pdfbox/filter/JBIG2Filter.java (working copy) @@ -85,7 +85,7 @@ BufferedImage image; try { - image = reader.read(0); + image = reader.read(0, reader.getDefaultReadParam()); } catch (Exception e) {
Attachments
Issue Links
- supercedes
-
PDFBOX-2591 Allow using custom Filters
- Closed