pdfbox-commits mailing list archives

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

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

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

Modified: pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java?rev=1818778&r1=1818777&r2=1818778&view=diff
==============================================================================
--- pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java (original)
+++ pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java Wed
Dec 20 11:22:08 2017
@@ -327,7 +327,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))
@@ -343,7 +343,7 @@ public final class ExtractImages
         FileOutputStream out = null;
         try
         {
-            out = new FileOutputStream(filename + "." + suffix);
+            out = new FileOutputStream(prefix + "." + suffix);
             BufferedImage image = pdImage.getImage();
             if (image != null)
             {



Mime
View raw message