Open Honghe opened 4 years ago
Hi !
Maybe a bit late but I found a solution to this. (It may help someone in the future) I modified the following file: site-packages\pdfminer\pdftypes More precisely the function "get_filters" and what it returns. See code below:
def get_filters(self):
filters = self.get_any(('F', 'Filter'))
params = self.get_any(('DP', 'DecodeParms', 'FDecodeParms'), {})
if not filters:
return []
if not isinstance(filters, list):
filters = [filters]
if not isinstance(params, list):
# Make sure the parameters list is the same as filters.
params = [params]*len(filters)
if STRICT and len(params) != len(filters):
raise PDFException("Parameters len filter mismatch")
return list(zip(filters, params))
Best regards,
Thanks
Great ! Many thanks! . Just solved my issue also.
Env:
Command:
log:
Test file:
Wang_et_al_2017_Tacotron.zip