Skip to content
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
@krsarmiento

Description

@krsarmiento

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions