Traceback (most recent call last):


 "pdf2txt.py", line 188, in <module>

sys.exit(main())


 "pdf2txt.py", line 182, in main

outfp = extract_text(**vars(A))


 "pdf2txt.py", line 56, in extract_text

pdfminer.high_level.extract_text_to_fp(fp, **locals())


 "***/lib/python3.6/site-packages/pdfminer/high_level.py", line 86, in extract_text_to_fp

interpreter.process_page(page)


 "***/lib/python3.6/site-packages/pdfminer/pdfinterp.py", line 895, in process_page

self.render_contents(page.resources, page.contents, ctm=ctm)


 "***/lib/python3.6/site-packages/pdfminer/pdfinterp.py", line 908, in render_contents

self.execute(list_value(streams))


 "***/lib/python3.6/site-packages/pdfminer/pdfinterp.py", line 933, in execute

func(*args)


 "***/lib/python3.6/site-packages/pdfminer/pdfinterp.py", line 840, in do_EI

if 'W' in obj and 'H' in obj:
TypeError: a bytes-like object is required, not 'str'

Traceback (most recent call last):


 "/usr/local/Cellar/azure-cli/2.0.74/libexec/lib/python3.7/site-packages/knack/cli.py", line 212, in invoke

self.output.out(cmd_result, formatter=formatter, out_file=out_file)


 "/usr/local/Cellar/azure-cli/2.0.74/libexec/lib/python3.7/site-packages/knack/output.py", line 132, in out

output = formatter(obj)


 "/usr/local/Cellar/azure-cli/2.0.74/libexec/lib/python3.7/site-packages/knack/output.py", line 38, in format_json

input_dict = dict(result) if hasattr(result, '__dict__') else result
TypeError: 'CommandResultItem' object is not iterable
