pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1775090 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java
Date Mon, 19 Dec 2016 13:53:04 GMT
Author: tilman
Date: Mon Dec 19 13:53:03 2016
New Revision: 1775090

URL: http://svn.apache.org/viewvc?rev=1775090&view=rev
Log:
PDFBOX-3634: return jb2 suffix for JBIG2

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java?rev=1775090&r1=1775089&r2=1775090&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java
Mon Dec 19 13:53:03 2016
@@ -692,6 +692,10 @@ public final class PDImageXObject extend
         {
             return "png";
         }
+        else if (filters.contains(COSName.JBIG2_DECODE))
+        {
+            return "jb2";
+        }
         else
         {
             LOG.warn("getSuffix() returns null, filters: " + filters);



Mime
View raw message