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

Maruan Sahyoun edited comment on PDFBOX-2619 at 1/30/15 8:10 AM:
-----------------------------------------------------------------

But isn’t the issue because the XMP Date has the timezone and the PDF date 
doesn’t. So if the PDF date would be D:20090317081112Z everything should be 
fine and as this is not the case the PDF/A validation files. So if we 
transcript the XMP date to  D:20090317081112Z from the XMP ISO date and compare 
that to D:20090317081112 the comparison fails as does the PDF/A validation.

Further more if the XMP date is 2009-03-17T08:11:12+00:00 that should be 
translated into D:20090317081112+00’00 so if the content would be 
D:20090317081112Z the dates will differ, although they will point to the same 
date.


was (Author: msahyoun):
But isn’t the issue because the XMP Date has the timezone and the PDF date 
doesn’t. So if the PDF date would be D:20090317081112Z everything should be 
fine and as this is not the case the PDF/A validation files. So if we 
transcript the XMP date to  D:20090317081112Z from the XMP ISO date and compare 
that to D:20090317081112 the comparison fails as does the PDF/A validation.

> XMP dates contain time zone, while document info dates do not, and this isn't 
> detected by preflight
> ---------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-2619
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2619
>             Project: PDFBox
>          Issue Type: Sub-task
>          Components: Preflight
>    Affects Versions: 1.8.8, 2.0.0
>            Reporter: Tilman Hausherr
>         Attachments: empty_word.pdf
>
>
> Another one from the Bavaria test suite:
> {code}
> /CreationDate(D:20090317081112) 
> /ModDate(D:20090317081112)
> <xmp:CreateDate>2009-03-17T08:11:12Z</xmp:CreateDate>
> <xmp:ModifyDate>2009-03-17T08:11:12Z</xmp:ModifyDate>
> {code}
> The info dates do not have a timezone, but the xmp dates do (Z = "Zulu"). 
> This information (whether there was a timezone information in the string) is 
> "lost" in our conversion methods :-(
> Amusingly, PDF Tools says the file is valid.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to