pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1867248 - /pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/PDFToImage.java
Date Fri, 20 Sep 2019 18:06:10 GMT
Author: tilman
Date: Fri Sep 20 18:06:10 2019
New Revision: 1867248

URL: http://svn.apache.org/viewvc?rev=1867248&view=rev
Log:
PDFBOX-4071: output writer formats instead of reader formats

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

Modified: pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/PDFToImage.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/PDFToImage.java?rev=1867248&r1=1867247&r2=1867248&view=diff
==============================================================================
--- pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/PDFToImage.java (original)
+++ pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/PDFToImage.java Fri Sep
20 18:06:10 2019
@@ -295,7 +295,7 @@ public final class PDFToImage
         String message = "Usage: java -jar pdfbox-app-x.y.z.jar PDFToImage [options] <inputfile>\n"
             + "\nOptions:\n"
             + "  -password  <password>            : Password to decrypt document\n"
-            + "  -format <string>                 : Image format: " + getImageFormats()
+ "\n"
+            + "  -format <string>                 : Available image formats: " + getImageFormats()
+ "\n"
             + "  -prefix <string>                 : Filename prefix for image files\n"
             + "  -page <int>                      : The only page to extract (1-based)\n"
             + "  -startPage <int>                 : The first page to start extraction
(1-based)\n"
@@ -315,7 +315,7 @@ public final class PDFToImage
     private static String getImageFormats()
     {
         StringBuilder retval = new StringBuilder();
-        String[] formats = ImageIO.getReaderFormatNames();
+        String[] formats = ImageIO.getWriterFormatNames();
         for( int i = 0; i < formats.length; i++ )
         {
            if (formats[i].equalsIgnoreCase(formats[i]))



Mime
View raw message