pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1860724 - in /pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools: ImageToPDF.java PDFBox.java
Date Thu, 06 Jun 2019 16:48:30 GMT
Author: tilman
Date: Thu Jun  6 16:48:30 2019
New Revision: 1860724

URL: http://svn.apache.org/viewvc?rev=1860724&view=rev
Log:
PDFBOX-4529: revert previous commit; introduce debug log for main tool; remove unneeded comment

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

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ImageToPDF.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ImageToPDF.java?rev=1860724&r1=1860723&r2=1860724&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ImageToPDF.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ImageToPDF.java Thu Jun  6 16:48:30
2019
@@ -18,10 +18,7 @@ package org.apache.pdfbox.tools;
 
 import java.io.IOException;
 import java.util.ArrayList;
-import java.util.Arrays;
 import java.util.List;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
 import org.apache.pdfbox.pdmodel.PDDocument;
 import org.apache.pdfbox.pdmodel.PDPage;
 import org.apache.pdfbox.pdmodel.PDPageContentStream;
@@ -34,8 +31,6 @@ import org.apache.pdfbox.pdmodel.graphic
  */
 public final class ImageToPDF
 {
-    private static final Log LOG = LogFactory.getLog(ImageToPDF.class);
-
     private PDRectangle mediaBox = PDRectangle.LETTER;
     private boolean landscape = false;
     private boolean autoOrientation = false;
@@ -47,7 +42,6 @@ public final class ImageToPDF
 
     public static void main(String[] args) throws IOException
     {
-        LOG.info("Args: " + Arrays.toString(args));
         // suppress the Dock icon on OS X
         System.setProperty("apple.awt.UIElement", "true");
 

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFBox.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFBox.java?rev=1860724&r1=1860723&r2=1860724&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFBox.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFBox.java Thu Jun  6 16:48:30
2019
@@ -24,8 +24,6 @@ import org.apache.pdfbox.debugger.PDFDeb
 /**
  * Simple wrapper around all the command line utilities included in PDFBox.
  * Used as the main class in the runnable standalone PDFBox jar.
- *
- * @see <a href="https://issues.apache.org/jira/browse/PDFBOX-687">PDFBOX-687</a>
  */
 public final class PDFBox 
 {
@@ -39,10 +37,12 @@ public final class PDFBox
      * Main method.
      * 
      * @param args command line arguments
+     * @throws java.lang.Exception
      */
     public static void main(String[] args) throws Exception
     {
-        LOG.info("Args: " + Arrays.toString(args));
+        LOG.debug("Args: " + Arrays.toString(args));
+
         // suppress the Dock icon on OS X
         System.setProperty("apple.awt.UIElement", "true");
 



Mime
View raw message