pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1642644 - /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/ValidationResult.java
Date Mon, 01 Dec 2014 08:20:42 GMT
Author: tilman
Date: Mon Dec  1 08:20:42 2014
New Revision: 1642644

URL: http://svn.apache.org/r1642644
Log:
PDFBOX-2513: add fallback text to graphics errors

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=1642644&r1=1642643&r2=1642644&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
Mon Dec  1 08:20:42 2014
@@ -290,6 +290,10 @@ public class ValidationResult
             {
                 this.details = "Invalid Color space";
             }
+            else if (errorCode.startsWith(PreflightConstants.ERROR_GRAPHIC_MAIN))
+            {
+                this.details = "Unknown graphics error";
+            }
             else if (errorCode.startsWith(PreflightConstants.ERROR_FONTS_INVALID_DATA))
             {
                 this.details = "Invalid Font definition";



Mime
View raw message