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

FIX: Document info date parsing #985

Merged
merged 3 commits into from
Jan 22, 2025
Merged

FIX: Document info date parsing #985

merged 3 commits into from
Jan 22, 2025

Conversation

carlwilson
Copy link
Member

  • fixes for date handling in the document info dictionary:
    • factored out getting the String literal from addDateProperty to getDateLiteral method, to simplify the methods;
    • no longer throwing a PdfInvalidException from addDateProperty so that bad dates don't halt docinfo processing, i.e. ModDate is still validated if CreationDate is invalid;
  • fixes to `jhove-bbt/scripts/create-1.33-target.sh' to adjust output affected by the above; and
  • bumped PDF module -> 1.12.7 and date.

- fixes for date handling in the document info dictionary:
  - factored out getting the String literal from `addDateProperty` to `getDateLiteral` method, to simplify the methods;
  - no longer throwing a `PdfInvalidException` from `addDateProperty` so that bad dates don't halt docinfo processing, i.e. `ModDate` is still validated if `CreationDate` is invalid;
- fixes to `jhove-bbt/scripts/create-1.33-target.sh' to adjust output affected by the above; and
- bumped PDF module -> 1.12.7 and date.
@carlwilson carlwilson merged commit 55568f4 into dev/1.33 Jan 22, 2025
0 of 2 checks passed
@carlwilson carlwilson deleted the fix/docinfodates branch January 22, 2025 18:00
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 this pull request may close these issues.

1 participant