Author: tilman
Date: Sun Mar 30 20:39:52 2014
New Revision: 1583195

URL: http://svn.apache.org/r1583195
Log:
PDFBOX-2002: changed two deprecated calls to ImageIOUtils

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

Modified: 
pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFReader.java
URL: 
http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFReader.java?rev=1583195&r1=1583194&r2=1583195&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFReader.java 
(original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFReader.java Sun 
Mar 30 20:39:52 2014
@@ -356,7 +356,7 @@ public class PDFReader extends JFrame
                 imageFilename = imageFilename.substring(0, 
imageFilename.length() - 4);
             }
             imageFilename += "_" + (currentPage + 1);
-            ImageIOUtil.writeImage(pageAsImage, "png", imageFilename, 300);
+            ImageIOUtil.writeImage(pageAsImage, imageFilename, 300);
         }
         catch (IOException exception)
         {

Modified: 
pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFToImage.java
URL: 
http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFToImage.java?rev=1583195&r1=1583194&r2=1583195&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFToImage.java 
(original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFToImage.java 
Sun Mar 30 20:39:52 2014
@@ -247,7 +247,7 @@ public class PDFToImage
                 {
                     BufferedImage image = renderer.renderImageWithDPI(i, dpi, 
imageType);
                     String fileName = outputPrefix + (i + 1);
-                    success &= ImageIOUtil.writeImage(image, imageFormat, 
fileName, dpi);
+                    success &= ImageIOUtil.writeImage(image, fileName, dpi);
                 }
 
                 if (!success)


Reply via email to