2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-01 01:40:51 +00:00

Change QPDFExc type to unsupported for /Standard filter

This commit is contained in:
m-holger 2022-02-02 19:24:06 +00:00 committed by Jay Berkenbilt
parent e813176bc0
commit 4d507251fe

View File

@ -849,7 +849,7 @@ QPDF::initializeEncryption()
if (! (encryption_dict.getKey("/Filter").isName() &&
(encryption_dict.getKey("/Filter").getName() == "/Standard")))
{
throw QPDFExc(qpdf_e_damaged_pdf, this->m->file->getName(),
throw QPDFExc(qpdf_e_unsupported, this->m->file->getName(),
"encryption dictionary", this->m->file->getLastOffset(),
"unsupported encryption filter");
}