pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1641325 - /pdfbox/branches/1.8/preflight/src/main/java/org/apache/pdfbox/preflight/metadata/PDFAIdentificationValidation.java
Date Mon, 24 Nov 2014 07:45:40 GMT
Author: tilman
Date: Mon Nov 24 07:45:40 2014
New Revision: 1641325

URL: http://svn.apache.org/r1641325
Log:
PDFBOX-2517: improve error messages

Modified:
    pdfbox/branches/1.8/preflight/src/main/java/org/apache/pdfbox/preflight/metadata/PDFAIdentificationValidation.java

Modified: pdfbox/branches/1.8/preflight/src/main/java/org/apache/pdfbox/preflight/metadata/PDFAIdentificationValidation.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/preflight/src/main/java/org/apache/pdfbox/preflight/metadata/PDFAIdentificationValidation.java?rev=1641325&r1=1641324&r2=1641325&view=diff
==============================================================================
--- pdfbox/branches/1.8/preflight/src/main/java/org/apache/pdfbox/preflight/metadata/PDFAIdentificationValidation.java
(original)
+++ pdfbox/branches/1.8/preflight/src/main/java/org/apache/pdfbox/preflight/metadata/PDFAIdentificationValidation.java
Mon Nov 24 07:45:40 2014
@@ -61,7 +61,10 @@ public class PDFAIdentificationValidatio
         PDFAIdentificationSchema id = metadata.getPDFIdentificationSchema();
         if (id == null)
         {
-            ve.add(new ValidationError(ERROR_METADATA_PDFA_ID_MISSING));
+            ve.add(new ValidationError(ERROR_METADATA_PDFA_ID_MISSING,
+                    "PDF/A identification schema "
+                    + PDFAIdentificationSchema.class.getAnnotation(StructuredType.class).namespace()
+                    + " is missing"));
             return ve;
         }
 



Mime
View raw message