You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Pierre Huttin (Created) (JIRA)" <ji...@apache.org> on 2012/02/02 14:41:53 UTC
[jira] [Created] (PDFBOX-1219)
org.apache.jempbox.impl.DateConverter unable to parse correct date value
org.apache.jempbox.impl.DateConverter unable to parse correct date value
------------------------------------------------------------------------
Key: PDFBOX-1219
URL: https://issues.apache.org/jira/browse/PDFBOX-1219
Project: PDFBox
Issue Type: Bug
Components: JempBox
Affects Versions: 1.6.0
Reporter: Pierre Huttin
In a PDF I have found the following XMP field:
xmp:CreateDate="2012-01-31T10:33+01:00"
When Jempbox try to access this field I received the following error : "Error converting date:201201311033+0100"
If we read the XMP SPECIFICATION PART 1 (http://www.adobe.com/devnet/xmp.html) in chapter "8.2.1.2 Date" the value is correct, it respect the format : YYYY-MM-DDThh:mmTZD but the DateConverter class is not able to read it.
After a quick view of the class the complete parsing method need to be rewritten.
Best regards,
Pierre Huttin
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (PDFBOX-1219)
org.apache.jempbox.impl.DateConverter unable to parse correct date value
Posted by "Pierre Huttin (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-1219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre Huttin updated PDFBOX-1219:
----------------------------------
Attachment: DateConverter.java.patch
proposal of fixe for org.apache.jempbox.impl.DateConverter class
> org.apache.jempbox.impl.DateConverter unable to parse correct date value
> ------------------------------------------------------------------------
>
> Key: PDFBOX-1219
> URL: https://issues.apache.org/jira/browse/PDFBOX-1219
> Project: PDFBox
> Issue Type: Bug
> Components: JempBox
> Affects Versions: 1.6.0
> Reporter: Pierre Huttin
> Attachments: DateConverter.java.patch
>
>
> In a PDF I have found the following XMP field:
> xmp:CreateDate="2012-01-31T10:33+01:00"
> When Jempbox try to access this field I received the following error : "Error converting date:201201311033+0100"
> If we read the XMP SPECIFICATION PART 1 (http://www.adobe.com/devnet/xmp.html) in chapter "8.2.1.2 Date" the value is correct, it respect the format : YYYY-MM-DDThh:mmTZD but the DateConverter class is not able to read it.
> After a quick view of the class the complete parsing method need to be rewritten.
> Best regards,
> Pierre Huttin
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira