Commit 4d507251fe99b6cdb7b97c2fbe96f4b5bb518e04

Authored by m-holger
Committed by Jay Berkenbilt
1 parent e813176b

Change QPDFExc type to unsupported for /Standard filter

Showing 1 changed file with 1 additions and 1 deletions
libqpdf/QPDF_encryption.cc
... ... @@ -849,7 +849,7 @@ QPDF::initializeEncryption()
849 849 if (! (encryption_dict.getKey("/Filter").isName() &&
850 850 (encryption_dict.getKey("/Filter").getName() == "/Standard")))
851 851 {
852   - throw QPDFExc(qpdf_e_damaged_pdf, this->m->file->getName(),
  852 + throw QPDFExc(qpdf_e_unsupported, this->m->file->getName(),
853 853 "encryption dictionary", this->m->file->getLastOffset(),
854 854 "unsupported encryption filter");
855 855 }
... ...