You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ms...@apache.org on 2020/12/22 16:29:03 UTC

svn commit: r1884711 - /pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/TextToPDF.java

Author: msahyoun
Date: Tue Dec 22 16:29:03 2020
New Revision: 1884711

URL: http://svn.apache.org/viewvc?rev=1884711&view=rev
Log:
PDFBOX-2602: swap order of input/output

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

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/TextToPDF.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/TextToPDF.java?rev=1884711&r1=1884710&r2=1884711&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/TextToPDF.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/TextToPDF.java Tue Dec 22 16:29:03 2020
@@ -84,12 +84,12 @@ public class TextToPDF implements Callab
     @Option(names = "-ttf", paramLabel="<ttf file>", description = "the TTF font to use for the text. Either this or -standardFont should be specified but not both.")
     private File ttf;
 
-    @Parameters(paramLabel = "outputfile", description = "the generated PDF file.")
-    private File outfile;
-
     @Parameters(paramLabel = "textfile", description = "the text file to convert.")
     private File infile;
 
+    @Parameters(paramLabel = "outputfile", index="1", description = "the generated PDF file.")
+    private File outfile;
+
     @Option(names = {"-h", "--help"}, usageHelp = true, description = "display this help message")
     boolean usageHelpRequested;