pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1691438 - /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/ValidationResult.java
Date Thu, 16 Jul 2015 20:03:26 GMT
Author: tilman
Date: Thu Jul 16 20:03:26 2015
New Revision: 1691438

URL: http://svn.apache.org/r1691438
Log:
PDFBOX-2886: add better error message

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

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/ValidationResult.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/ValidationResult.java?rev=1691438&r1=1691437&r2=1691438&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/ValidationResult.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/ValidationResult.java
Thu Jul 16 20:03:26 2015
@@ -338,6 +338,10 @@ public class ValidationResult
             {
                 this.details = "Error on MetaData";
             }
+            else if (errorCode.startsWith(PreflightConstants.ERROR_PDF_PROCESSING_MISSING))
+            {
+                this.details = "A Mandatory element is missing";
+            }
             else
             {
                 // default Unkown error



Mime
View raw message