pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1798633 - /pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java
Date Tue, 13 Jun 2017 19:53:02 GMT
Author: tilman
Date: Tue Jun 13 19:53:02 2017
New Revision: 1798633

URL: http://svn.apache.org/viewvc?rev=1798633&view=rev
Log:
PDFBOX-3829: save jpx and jbig2 as png

Modified:
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java?rev=1798633&r1=1798632&r2=1798633&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java Tue Jun 13
19:53:02 2017
@@ -320,7 +320,7 @@ public final class ExtractImages
     private void write2file(PDImage pdImage, String filename, boolean directJPEG) throws
IOException
     {
         String suffix = pdImage.getSuffix();
-        if (suffix == null)
+        if (suffix == null || suffix.equals("jpx") || suffix.equals("jb2"))
         {
             suffix = "png";
         }



Mime
View raw message