pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leleu...@apache.org
Subject svn commit: r1538371 - /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/process/FileSpecificationValidationProcess.java
Date Sun, 03 Nov 2013 14:50:18 GMT
Author: leleueri
Date: Sun Nov  3 14:50:18 2013
New Revision: 1538371

URL: http://svn.apache.org/r1538371
Log:
[PDFBOX-1758] Test "F" as possible value for a Filespec type

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

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/process/FileSpecificationValidationProcess.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/process/FileSpecificationValidationProcess.java?rev=1538371&r1=1538370&r2=1538371&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/process/FileSpecificationValidationProcess.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/process/FileSpecificationValidationProcess.java
Sun Nov  3 14:50:18 2013
@@ -58,7 +58,7 @@ public class FileSpecificationValidation
             {
                 COSDictionary dic = (COSDictionary) cBase;
                 String type = dic.getNameAsString(COSName.TYPE);
-                if (FILE_SPECIFICATION_VALUE_TYPE.equals(type))
+                if (FILE_SPECIFICATION_VALUE_TYPE.equals(type) || COSName.F.getName().equals(type))
                 {
                     // ---- It is a file specification
                     validateFileSpecification(ctx, dic);



Mime
View raw message