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

'Invalid Date' misreported as 'Malformed Dictionary' (PDF-HUL-42) #670

Open
asciim0 opened this issue Apr 15, 2021 · 0 comments · Fixed by #986
Open

'Invalid Date' misreported as 'Malformed Dictionary' (PDF-HUL-42) #670

asciim0 opened this issue Apr 15, 2021 · 0 comments · Fixed by #986
Assignees
Labels
bug A product defect that needs fixing P1 High priority issues to be scheduled in the upcoming release
Milestone

Comments

@asciim0
Copy link
Contributor

asciim0 commented Apr 15, 2021

Can't unfortunately share the sample files, but I have several where a malformed date within the Document Info object is reproted as 'malformed dictionary'.

The dictionary looks like this:

> 712 0 obj
> <<
> /CreationDate(20190709173525+01'00')          
> /XPressPrivate(%%DocumentProcessColors: Cyan Magenta Yellow Black\n%%EndComments)
> /ModDate(20190709173525+01'00')
> /Producer(QuarkXPress(R) 8.1)
> /Title<FEFF004C00610079006F0075007400200031>
> /Creator(QuarkXPress(R) 8.1)
> >>
> endobj

After changing the /CreationDate to /CreationDate (D:20190709173525+01'00') and rebuilding the xref, the file validates correctly. Other tools, like pdfcpu, report this issue correctly as "invalid date
validateDateObject 20190709173525+01'00' ".

IMO Jhove needs to be changed that the validation error is reported as Invalid Date.

@asciim0 asciim0 changed the title 'Invalid Date' misreported as 'Invalid Dictionary' 'Invalid Date' misreported as 'Malformed Dictionary' (PDF-HUL-42) Apr 15, 2021
@carlwilson carlwilson self-assigned this Jun 16, 2022
@carlwilson carlwilson added bug A product defect that needs fixing P1 High priority issues to be scheduled in the upcoming release labels Jun 16, 2022
@carlwilson carlwilson added this to the JHOVE 1.28 milestone Jun 16, 2022
@carlwilson carlwilson modified the milestones: JHOVE 1.28, OPF Hackathon 2023 Tasks Jun 21, 2023
@carlwilson carlwilson removed this from the OPF Hackathon 2023 Tasks milestone Mar 6, 2024
@carlwilson carlwilson added this to the JHOVE 1.34 milestone Aug 22, 2024
@carlwilson carlwilson linked a pull request Jan 22, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A product defect that needs fixing P1 High priority issues to be scheduled in the upcoming release
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants