[
https://issues.apache.org/jira/browse/PDFBOX-2503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14215913#comment-14215913
]
Maruan Sahyoun commented on PDFBOX-2503:
----------------------------------------
As the trailing information at the end of the string is NUL IMHO this shall be
ignored when comparing the DocumentInformation entry with the XMP entry which
is also inline with other validators. This is as NUL is not a legal character
in XML and as a result can not be represented.
{quote}
[2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] |
[#xE000-#xFFFD] | [#x10000-#x10FFFF]
{quote}
> false negative? 1: 7.2 : Error on MetaData, Producer present in the document
> catalog dictionary doesn't match with XMP information
> ----------------------------------------------------------------------------------------------------------------------------------
>
> Key: PDFBOX-2503
> URL: https://issues.apache.org/jira/browse/PDFBOX-2503
> Project: PDFBox
> Issue Type: Bug
> Components: Preflight
> Affects Versions: 2.0.0
> Reporter: Ralf Hauser
> Assignee: Andreas Lehmkühler
> Attachments: 2503.pdf
>
>
> at
> org.apache.pdfbox.preflight.metadata.SynchronizedMetaDataValidation.unsynchronizedMetaDataError(SynchronizedMetaDataValidation.java:534)
> at
> org.apache.pdfbox.preflight.metadata.SynchronizedMetaDataValidation.analyzeProducerProperty(SynchronizedMetaDataValidation.java:277)
> at
> org.apache.pdfbox.preflight.metadata.SynchronizedMetaDataValidation.validateMetadataSynchronization(SynchronizedMetaDataValidation.java:471)
> at
> org.apache.pdfbox.preflight.process.MetadataValidationProcess.validate(MetadataValidationProcess.java:83)
> at
> org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:73)
> at
> org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:88)
> at
> org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:168)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)