diff options
Diffstat (limited to 'qpdf/qpdf.cc')
-rw-r--r-- | qpdf/qpdf.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qpdf/qpdf.cc b/qpdf/qpdf.cc index a5eef425..467db2fc 100644 --- a/qpdf/qpdf.cc +++ b/qpdf/qpdf.cc @@ -2550,6 +2550,14 @@ static void show_encryption(QPDF& pdf, Options& o) std::cout << "Encryption key = " << QUtil::hex_encode(encryption_key) << std::endl; } + if (pdf.ownerPasswordMatched()) + { + std::cout << "Supplied password is owner password" << std::endl; + } + if (pdf.userPasswordMatched()) + { + std::cout << "Supplied password is user password" << std::endl; + } std::cout << "extract for accessibility: " << show_bool(pdf.allowAccessibility()) << std::endl << "extract for any purpose: " |