This repository was archived by the owner on Jul 11, 2024. It is now read-only.
This repository was archived by the owner on Jul 11, 2024. It is now read-only.
Use zlib.decompressobj() do decode streams #20
Open
Description
Hi guys! We have a fix for PyPDF2 for the zlib.error: Error -5 while decompressing data: incomplete or truncated stream
.
I want to include this fix here so I added a created a branch but I don't have right access to push it. Basically I added this PDF:
Which raises the error.
return zlib.decompress(data) zlib.error: Error -5 while decompressing data: incomplete or truncated stream
So I added this file to the Resources/ folder and a simple unit test to make sure it works.
The change is just a simple line:
return zlib.decompressobj().decompress(data)
How can I get access?
Metadata
Metadata
Assignees
Labels
No labels