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()