Skip to content

Commit

Permalink
Add encrypt_dict property to reader
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasValvekens committed Nov 22, 2023
1 parent f090378 commit ee839b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyhanko/pdf_utils/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ee839b0

Please sign in to comment.