Casting exceptions in PDF module
File validation and characterization
Brought to you by:
carlwilson-bl,
garymcgath
The attached file was created with Adobe Acrobat Pro, and it opens in Acrobat Reader and OS X Preview. JHOVE 1.8 reports the file as not well-formed, with the messages "Unexpected error in findFonts" and "Invalid annotation list." Both errors result from ClassCastException where the module is expecting one kind of PDF object but gets another. This is a running theme in problems with the PDF module.
The content is taken from the massfilc.org website. I'm the webmaster for that site, so I don't think we have any copyright problems.
PDF made with Acrobat Pro from website
Still an issue in 1.9.
This is the same bug as #32, though the PDF is created a different way. After the fix for #32, this file now gets "Expected dictionary for font entry in page resource." This makes me further wonder if I'm missing something in the spec that allows non-dictionaries for fonts.