pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1818777 - /pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java
Date Wed, 20 Dec 2017 11:22:03 GMT
Author: tilman
Date: Wed Dec 20 11:22:03 2017
New Revision: 1818777

URL: http://svn.apache.org/viewvc?rev=1818777&view=rev
Log:
PDFBOX-2852: correct parameter name

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=1818777&r1=1818776&r2=1818777&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 Wed Dec 20
11:22:03 2017
@@ -317,7 +317,7 @@ public final class ExtractImages
      * @param directJPEG if true, force saving JPEG/JPX streams as they are in the PDF file.

      * @throws IOException When something is wrong with the corresponding file.
      */
-    private void write2file(PDImage pdImage, String filename, boolean directJPEG) throws
IOException
+    private void write2file(PDImage pdImage, String prefix, boolean directJPEG) throws IOException
     {
         String suffix = pdImage.getSuffix();
         if (suffix == null || "jb2".equals(suffix))
@@ -330,7 +330,7 @@ public final class ExtractImages
             suffix = "jp2";
         }
 
-        try (FileOutputStream out = new FileOutputStream(filename + "." + suffix))
+        try (FileOutputStream out = new FileOutputStream(prefix + "." + suffix))
         {
             BufferedImage image = pdImage.getImage();
             if (image != null)



Mime
View raw message