Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
asciim0 opened this issue May 8, 2024 · 0 comments · Fixed by #942
Closed
Milestone

Comments

@asciim0
Copy link
Contributor

asciim0 commented May 8, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants