-
Notifications
You must be signed in to change notification settings - Fork 79
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
Report a more informative error message for encrypted PDFs #640
Comments
I strongly support this and can supply quite a few real-life examples. |
We recently ran into a similar problem, and our JHOVE users couldn't understand the problem because of the arbitrary message JHOVE returned. So I also support this issue. |
I just stumbled across this issue again. In addition to the confusing message itself, the fact hat JHOVE exits with an error (instead of parsing the file) also doesn't seem quite the right behavior (except for PDFs with an "open password", which cannot be parsed at all without a password). For all other cases (printing, copying and text access restrictions) other tools such as VeraPDF are perfectly capable of parsing PDFs with those restrictions. And since the PDF spec allows these restrictions, they shouldn't result in a "Not well-formed" validation outcome. |
Seems JHOVE 1.28 changes fixed this, so closing this issue now. |
Re-opening as JHOVE still reports this error for some PDFs with security-related features. Examples: Additional check with VeraPDF confirms both files contain security features. |
Jhove's output could be more informative for PDFs that use any kind of encryption. Currently JHOVE reports the following error message in this case (tested with Jhove 1.24.1, 2020-03-16):
This is not particularly helpful, especially because it provides no clue whatsoever about encryption being the culprit. Perhaps the error message could be changed to something more informative that at least mentions the encryption?
Example files:
The text was updated successfully, but these errors were encountered: