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

BUG: Handle indirect objects as parameters for CCITTFaxDecode #2307

Merged
merged 3 commits into from
Nov 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pypdf/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,8 @@
k = 0
columns = 1728
if parameters:
if isinstance(parameters, IndirectObject):
stefan6419846 marked this conversation as resolved.
Show resolved Hide resolved
parameters = parameters.get_object()

Check warning on line 568 in pypdf/filters.py

View check run for this annotation

Codecov / codecov/patch

pypdf/filters.py#L568

Added line #L568 was not covered by tests
if isinstance(parameters, ArrayObject):
for decode_parm in parameters:
if CCITT.COLUMNS in decode_parm:
Expand Down
Loading