Skip to content

Commit

Permalink
use zlib.decompressobj() do decode streams
Browse files Browse the repository at this point in the history
This should resolve py-pdf#88
  • Loading branch information
Stef-Sijben authored Mar 6, 2021
1 parent 18a2627 commit 9e4f8b3
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 9e4f8b3

Please sign in to comment.