UPDATE - I was actually able to find a 'solution' to this issue.
try:
pdf_blob_data = pdf_blob.data
except UnicodeDecodeError as e:
pdf_blob_data = e.object
pdf_pages.append(io.BytesIO(pdf_blob_data))
Search found 2 matches
- 2018-07-23T11:37:09-07:00
- Forum: Bugs
- Topic: UnicodeDecodeError when using PythonMagick 0.9.13 and Python 3.6
- Replies: 1
- Views: 5386
- 2018-07-23T08:40:55-07:00
- Forum: Bugs
- Topic: UnicodeDecodeError when using PythonMagick 0.9.13 and Python 3.6
- Replies: 1
- Views: 5386
UnicodeDecodeError when using PythonMagick 0.9.13 and Python 3.6
Hello,
I have some imaging code that converts TIF files into PDFs. It was originally coded in Python 2.7 using PythonMagick, and it worked great. But now, trying to port it to Python 3.6 I'm running into issues. The issue involved the PythonMagick Blob datatype. I have a blob that I am writing ...
I have some imaging code that converts TIF files into PDFs. It was originally coded in Python 2.7 using PythonMagick, and it worked great. But now, trying to port it to Python 3.6 I'm running into issues. The issue involved the PythonMagick Blob datatype. I have a blob that I am writing ...