Skip to content

Commit

Permalink
Fix compatibility with pyPDF 4.3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
rrthomas committed Jul 24, 2024
1 parent 801bb30 commit 5e236d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion psutils/transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def __init__(
super().__init__()
self.outfile = outfile
self.reader = reader
self.writer = PdfWriter(self.outfile)
self.writer = PdfWriter()
self.draw = draw
self.specs = specs

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ urls = {Homepage = "https://github.com/rrthomas/psutils"}
requires-python = ">= 3.9"
dependencies = [
"puremagic >= 1.26",
"pypdf ~= 4.2.0",
"pypdf >= 4.3.0",
]
classifiers = [
"Environment :: Console",
Expand All @@ -35,7 +35,7 @@ requires = [
"setuptools >= 60; python_version >= \"3.12\"",
"pytest-datafiles",
"puremagic >= 1.26",
"pypdf ~= 4.2.0",
"pypdf >= 4.3.0",
"Wand",
]

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ envlist = py39,py310,py311,py312
[testenv]
deps =
argparse-manpage >= 4.2
pypdf ~= 4.2.0
pypdf >= 4.3.0
Wand
mypy
pylint
Expand Down

0 comments on commit 5e236d2

Please sign in to comment.