Skip to content

Commit

Permalink
Correct input_version bound in incremental writer
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasValvekens committed Sep 17, 2022
1 parent b1f0963 commit 8f9c1cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyhanko/pdf_utils/incremental_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def __init__(self, input_stream, prev: PdfFileReader = None, strict=True):
if self._info is not None:
self.trailer['/Info'] = self._info
self._resolves_objs_from = (self, prev)
input_ver = self.prev.input_version
if input_ver > self.output_version:
self.output_version = input_ver
self.ensure_output_version(self.__class__.output_version)

self.security_handler = prev.security_handler
Expand Down

0 comments on commit 8f9c1cd

Please sign in to comment.