Skip to content

Commit

Permalink
Fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma authored Apr 16, 2022
1 parent ba156df commit b8c6586
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions PyPDF2/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,19 +370,18 @@ def decode(data, decodeParms=None, height=0):
from PyPDF2.generic import ArrayObject
if isinstance(decodeParms, ArrayObject):
for decodeParm in decodeParms:
if '/Columns' in decodeParm:
width = decodeParm['/Columns']
if '/K' in decodeParm:
k = decodeParm['/K']
if CCITT.COLUMNS in decodeParm:
width = decodeParm[CCITT.COLUMNS]
if CCITT.K in decodeParm:
k = decodeParm[CCITT.K]
else:
width = decodeParms['/Columns']
k = decodeParms['/K']
width = decodeParms[CCITT.COLUMNS]
k = decodeParms[CCITT.K]
if k == -1:
CCITTgroup = 4
else:
CCITTgroup = 3

width = decodeParms[CCITT.COLUMNS]
imgSize = len(data)
tiff_header_struct = '<2shlh' + 'hhll' * 8 + 'h'
tiffHeader = struct.pack(tiff_header_struct,
Expand Down

0 comments on commit b8c6586

Please sign in to comment.