Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-1219

org.apache.jempbox.impl.DateConverter unable to parse correct date value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.0
    • Fix Version/s: 1.8.3, 2.0.0
    • Component/s: JempBox
    • Labels:
      None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lehmi Andreas Lehmkühler
                Reporter:
                thef0x Pierre Huttin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: