[
https://issues.apache.org/jira/browse/PDFBOX-3135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15123935#comment-15123935
]
Tilman Hausherr commented on PDFBOX-3135:
-----------------------------------------
1.8 is less strict, some PDF/A flaws are not discovered. The problem with this
file is this:
{code}
/CreationDate (D:20141105165027Z00'00')
{code}
the regex in SynchronizedMetaDataValidation.hasTimeZone() doesn't match, so it
claims that this string has no time zone, while the xmp string has one.
PDF-Tools accepts the file, but Z00'00' doesn't look like a good timezone to
me. The PDF specification requires "D:YYYYMMDDHHmmSSOHH'mm" and is somewhat
ambigous in its text, it mentioned the "Z" but does not require that it be the
end of the string.
> False negative with 2503.pdf file of issue PDFBOX-2503
> ------------------------------------------------------
>
> Key: PDFBOX-3135
> URL: https://issues.apache.org/jira/browse/PDFBOX-3135
> Project: PDFBox
> Issue Type: Bug
> Components: Preflight
> Affects Versions: 1.8.10, 2.0.0
> Environment: jdk1.7.0_09
> Reporter: Antoine Ribes
>
> Using the code of the CookBook for PDF/A validation (1.8.10) :
> - with the 2503.pdf as entry file
> - and only replacing the code "parser.parse()" with
> "parser.parse(Format.PDF_A1B)",
> result.isValid() is false with 1.8.10, 2.0.0-RC1 and 2.0.0-RC2 versions of
> pdfbox and preflight. The error displayed is : "7.2 : Error on MetaData,
> CreationDate present in the document catalog dictionary doesn't match with
> XMP information"
> Note : With same file and version 1.8.8, I get as expected a result.isValid()
> true and, with version 1.8.7, I actually obtain the "7.2 : Error on MetaData,
> Producer present in the document catalog dictionary doesn't match with XMP
> information" error message given in the issue PDFBOX-2503.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]