Skip to content

Commit

Permalink
Try to decompressing data streams first
Browse files Browse the repository at this point in the history
based on py-pdf#88
  • Loading branch information
Itisfilipe authored Mar 25, 2022
1 parent 7fefa19 commit 6f36195
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 6f36195

Please sign in to comment.