pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1642969 - /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/Validator_A1b.java
Date Tue, 02 Dec 2014 18:00:31 GMT
Author: tilman
Date: Tue Dec  2 18:00:31 2014
New Revision: 1642969

URL: http://svn.apache.org/r1642969
Log:
PDFBOX-2529: output page in command line application

Modified:
    pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/Validator_A1b.java

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/Validator_A1b.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/Validator_A1b.java?rev=1642969&r1=1642968&r2=1642969&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/Validator_A1b.java (original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/Validator_A1b.java Tue
Dec  2 18:00:31 2014
@@ -178,7 +178,15 @@ public class Validator_A1b
             System.out.println("The file " + fd.getName() + " is not valid, error(s) :");
             for (ValidationError error : result.getErrorsList())
             {
-                System.out.println(error.getErrorCode() + " : " + error.getDetails());
+                System.out.print(error.getErrorCode() + " : " + error.getDetails());
+                if (error.getPageNumber() != null)
+                {
+                    System.out.println("on page " + (error.getPageNumber() + 1));
+                }
+                else
+                {
+                    System.out.println();
+                }
             }
             System.out.println();
             return -1;



Mime
View raw message