Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Use zlib.decompressobj() do decode streams #20

Open
krsarmiento opened this issue Sep 7, 2022 · 0 comments
Open

Use zlib.decompressobj() do decode streams #20

krsarmiento opened this issue Sep 7, 2022 · 0 comments

Comments

@krsarmiento
Copy link

Hi guys! We have a fix for PyPDF2 for the zlib.error: Error -5 while decompressing data: incomplete or truncated stream.

py-pdf#609

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:

form_acrobatReader.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.

Screen Shot 2022-09-06 at 9 32 07 PM

The change is just a simple line:

return zlib.decompressobj().decompress(data)

How can I get access?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant