[ 
https://issues.apache.org/jira/browse/PDFBOX-2503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14216060#comment-14216060
 ] 

Maruan Sahyoun edited comment on PDFBOX-2503 at 11/18/14 10:52 AM:
-------------------------------------------------------------------

If the DocumentInformation meta data contains trailing NUL characters 
everything is fine. For all others the trailing characters as well as control 
characters within the are taken into account by Adobe Preflight as well as 
others and validated against the XMP entry.

>From these tests IMHO we should only trim trailing NUL


was (Author: msahyoun):
If the DocumentInformation meta data contains trailing NUL characters 
everything is fine. For all others the trailing characters are taken into 
account by Adobe Preflight as well as others and validated against the XMP 
entry.

> 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, 
> PDFAMetaDataValidationTestMiddleControlChar.pdf, 
> PDFAMetaDataValidationTestMiddleNul.pdf, 
> PDFAMetaDataValidationTestTrailingControlChar.pdf, 
> PDFAMetaDataValidationTestTrailingNul.pdf, 
> PDFAMetaDataValidationTestTrailingSpaces.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)

Reply via email to