You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug is in converter.PDFConverter._is_binary_stream
I have only just caught up with pdfminer.six, was using pdfminer.20191103
This allowed me to use a TextIOWrapper as the output stream for a TextConverter, but this fails with pdfminer.six because _is_binary_stream fails to recognise TextIOWrapper as non-binary.
If relevant, include the output and/or error stacktrace.
...
render(ltpage)
...
File "/usr/lib/python3.6/site-packages/pdfminer/converter.py", line 211, in render
self.write_text(item.get_text())
File "/usr/lib/python3.6/site-packages/pdfminer/converter.py", line 202, in write_text
self.outfp.write(text)
TypeError: write() argument must be str, not bytes
The fix is trivial, see pull request shortly...
The text was updated successfully, but these errors were encountered:
Bug report
Bug is in converter.PDFConverter._is_binary_stream
I have only just caught up with pdfminer.six, was using pdfminer.20191103
This allowed me to use a TextIOWrapper as the output stream for a TextConverter, but this fails with pdfminer.six because
_is_binary_stream
fails to recognise TextIOWrapper as non-binary.The fix is trivial, see pull request shortly...
The text was updated successfully, but these errors were encountered: