Skip to content

BrotliDecode filter #3223

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

Open
stefan6419846 opened this issue Mar 26, 2025 · 0 comments · May be fixed by #3254
Open

BrotliDecode filter #3223

stefan6419846 opened this issue Mar 26, 2025 · 0 comments · May be fixed by #3254
Labels
is-feature A feature request

Comments

@stefan6419846
Copy link
Collaborator

Explanation

The PDF Association announced yesterday that PDF 2.0 will get a new /BrotliDecode filter: https://pdfa.org/brotli-compression-coming-to-pdf/ The actual specification is still missing nevertheless, but they provide three example files of unknown license (although creating our own examples should work nevertheless).

This probably requires introducing a new dependency, for example on the reference implementation bindings: https://pypi.org/project/Brotli/ There might be pure Python implementations, but they lack active support and are much slower. Doing our own variant based upon RFC 7932 itself probably introduces too much maintenance overhead - while the actual complexity is not quite complex, it would involve much more code than for the existing filters (except the JBIG2 one which is not yet sorted out).

@stefan6419846 stefan6419846 added the is-feature A feature request label Mar 26, 2025
ash01ish added a commit to ash01ish/pypdf that referenced this issue Apr 13, 2025
Implements the BrotliDecode filter as specified in ISO 32000-2:2020,
Section 7.4.11. Adds necessary constants, integrates the filter into
the decoding logic, includes brotli as an optional dependency, adds
unit tests, and updates documentation.

Closes py-pdf#3223
ash01ish added a commit to ash01ish/pypdf that referenced this issue Apr 13, 2025
Implements the BrotliDecode filter as specified in ISO 32000-2:2020,
Section 7.4.11. Adds necessary constants, integrates the filter into
the decoding logic, includes brotli as an optional dependency, adds
unit tests, and updates documentation.

Closes py-pdf#3223
ash01ish added a commit to ash01ish/pypdf that referenced this issue Apr 14, 2025
Implements the BrotliDecode filter as specified in ISO 32000-2:2020,
Section 7.4.11. Adds necessary constants, integrates the filter into
the decoding logic, includes brotli as an optional dependency, adds
unit tests, and updates documentation.

Closes py-pdf#3223
ash01ish added a commit to ash01ish/pypdf that referenced this issue Apr 14, 2025
Implements the BrotliDecode filter as specified in ISO 32000-2:2020,
Section 7.4.11. Adds necessary constants, integrates the filter into
the decoding logic, includes brotli as an optional dependency, adds
unit tests, and updates documentation.

Closes py-pdf#3223
ash01ish added a commit to ash01ish/pypdf that referenced this issue Apr 14, 2025
Implements the BrotliDecode filter as specified in ISO 32000-2:2020,
Section 7.4.11. Adds necessary constants, integrates the filter into
the decoding logic, includes brotli as an optional dependency, adds
unit tests, and updates documentation.

Closes py-pdf#3223
ash01ish added a commit to ash01ish/pypdf that referenced this issue Apr 14, 2025
Implements the BrotliDecode filter as specified in ISO 32000-2:2020,
Section 7.4.11. Adds necessary constants, integrates the filter into
the decoding logic, includes brotli as an optional dependency, adds
unit tests, and updates documentation.

Closes py-pdf#3223
ash01ish added a commit to ash01ish/pypdf that referenced this issue Apr 14, 2025
Implements the BrotliDecode filter as specified in ISO 32000-2:2020,
Section 7.4.11. Adds necessary constants, integrates the filter into
the decoding logic, includes brotli as an optional dependency, adds
unit tests, and updates documentation.

Closes py-pdf#3223
ash01ish added a commit to ash01ish/pypdf that referenced this issue Apr 14, 2025
Implements the BrotliDecode filter as specified in ISO 32000-2:2020,
Section 7.4.11. Adds necessary constants, integrates the filter into
the decoding logic, includes brotli as an optional dependency, adds
unit tests, and updates documentation.

Closes py-pdf#3223
ash01ish added a commit to ash01ish/pypdf that referenced this issue Apr 14, 2025
Implements the BrotliDecode filter as specified in ISO 32000-2:2020,
Section 7.4.11. Adds necessary constants, integrates the filter into
the decoding logic, includes brotli as an optional dependency, adds
unit tests, and updates documentation.

Closes py-pdf#3223
ash01ish added a commit to ash01ish/pypdf that referenced this issue Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is-feature A feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant