From ee839b05d39782c833af8443d9ad80873b485c12 Mon Sep 17 00:00:00 2001 From: Matthias Valvekens Date: Wed, 22 Nov 2023 22:25:05 +0100 Subject: [PATCH] Add encrypt_dict property to reader --- pyhanko/pdf_utils/reader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyhanko/pdf_utils/reader.py b/pyhanko/pdf_utils/reader.py index 5bda7efc..4948d708 100644 --- a/pyhanko/pdf_utils/reader.py +++ b/pyhanko/pdf_utils/reader.py @@ -344,6 +344,8 @@ def _get_encryption_params(self) -> Optional[generic.DictionaryObject]: raise misc.PdfReadError("Encryption settings must be a dictionary") return encrypt_dict + encrypt_dict = property(_get_encryption_params) + @property def trailer_view(self) -> generic.DictionaryObject: return self.trailer.flatten()