jhove icon indicating copy to clipboard operation
jhove copied to clipboard

PDF-hul: False positiv for invalid date --> update date format to accept PDF2.0 notation

Open asciim0 opened this issue 9 months ago • 0 comments

PDF versions up to and including 1.7 expected date types to include a terminating apostrophe. With PDF 2.0 this is no longer required. Both versions should be accepted. Currently date values not containing the terminating apostrophe are reported as "Well-formed, but not valid" with "PDF-HUL-133 Improperly formed date" error.

Please upate the date type to allow both variations: (D:YYYYMMDDHHmmSSOHH'mm) and (D:YYYYMMDDHHmmSSOHH'mm')

where: YYYY shall be the year MM shall be the month (01–12) DD shall be the day (01–31) HH shall be the hour (00–23) mm shall be the minute (00–59) SS shall be the second (00–59) O shall be the relationship of local time to Universal Time (UT), and shall be denoted by one of the characters PLUS SIGN (U+002B) (+), HYPHEN-MINUS (U+002D) (-), or LATIN CAPITAL LETTER Z (U+005A) (Z) (see below) HH followed by APOSTROPHE (U+0027) (') shall be the absolute value of the offset from UT in hours (00–23) mm shall be the absolute value of the offset from UT in minutes (00–59) optionally followed by APOSTROPHE (U+0027)

asciim0 avatar May 08 '24 12:05 asciim0