Skip to content

Commit

Permalink
Update filters.py
Browse files Browse the repository at this point in the history
Adding fix from pypdf2 py-pdf#88
  • Loading branch information
mdineen authored Sep 28, 2021
1 parent 18a2627 commit a107c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyPDF2/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
import zlib

def decompress(data):
return zlib.decompress(data)
return zlib.decompressobj().decompress(data)

def compress(data):
return zlib.compress(data)
Expand Down

0 comments on commit a107c64

Please sign in to comment.