[
https://issues.apache.org/jira/browse/PDFBOX-2503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14215998#comment-14215998
]
Maruan Sahyoun commented on PDFBOX-2503:
----------------------------------------
[~lehmi] although this fixes this case I’m not sure if that is fully compliant.
As NUL can’t be represented in XML this is fine. But e.g. leading and trailing
spaces can be represented in XML so it might be necessary to keep them for
comparison. In addition non permitted characters in XML might be part of the
PDF string somewhere in between. I’ll try to create a test case around these
questions I have so we can validate it.
> 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: 1.8.7, 2.0.0
> Reporter: Ralf Hauser
> Assignee: Andreas Lehmkühler
> Fix For: 1.8.8, 2.0.0
>
> 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)