Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use zlib.decompressobj() do decode streams #609

Closed
wants to merge 2 commits into from

Conversation

Stef-Sijben
Copy link
Contributor

This should resolve #88, as described in my comment there.

@Stef-Sijben
Copy link
Contributor Author

I see that #603 does basically the same thing, but first tries to decode in the existing way and falls back to this approach and feeding data one byte at a time if the normal decompression fails.

@MartinThoma MartinThoma added the Tiny Pull requests that make a tiny change - and thus should be easy to merge label Apr 6, 2022
@MartinThoma
Copy link
Member

Do you think your PR or the other one should be merged?

@MartinThoma MartinThoma added the needs-discussion The PR/issue needs more discussion before we can continue label Apr 10, 2022
@MartinThoma
Copy link
Member

Thank you for your PR - I've now merged the other one as that one is guaranteed not to break any existing code.

I will make a release on PyPI this month.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-discussion The PR/issue needs more discussion before we can continue Tiny Pull requests that make a tiny change - and thus should be easy to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Encounter a valid pdf file but PyPDF2 fail on it
2 participants