Am 27.01.2016 um 15:08 schrieb Roberto Nibali:
The PDF uploaded to http://www.filedropper.com/6biasebm seems to have
a broken header section. It opens well with Preview, Adobe and others,
however preflight repeatedly trips pretty badly with a NFE:
log4j: Adding appender named [console] to category [root].
2016-01-27 14:52:38 DEBUG COSParser:1879 - Can't parse the header version.
java.lang.NumberFormatException: For input string: "1.\"
at
sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
That's only in debugging that this is shown. The NFE is retrown as an
IOException and this should result in a normal preflight error.
However I don't get this with your file. Instead I get this, which is
even worse:
Exception in thread "main" java.lang.NullPointerException
at
org.apache.xmpbox.xml.PdfaExtensionHelper.populatePDFAPropertyType(PdfaExtensionHelper.java:180)
at
org.apache.xmpbox.xml.PdfaExtensionHelper.populatePDFASchemaType(PdfaExtensionHelper.java:159)
at
org.apache.xmpbox.xml.PdfaExtensionHelper.populateSchemaMapping(PdfaExtensionHelper.java:116)
at org.apache.xmpbox.xml.DomXmpParser.parse(DomXmpParser.java:194)
at
org.apache.pdfbox.preflight.process.MetadataValidationProcess.validate(MetadataValidationProcess.java:69)
at
org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:84)
at
org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:122)
at
org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:163)
at
org.apache.pdfbox.preflight.Validator_A1b.runSimple(Validator_A1b.java:174)
at
org.apache.pdfbox.preflight.Validator_A1b.main(Validator_A1b.java:135)