jhove
jhove copied to clipboard
'Invalid Date' misreported as 'Malformed Dictionary' (PDF-HUL-42)
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.