We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b85e6b commit f0d5865Copy full SHA for f0d5865
1 file changed
examples/document_conversion_v1.py
@@ -11,7 +11,8 @@
11
# Example of retrieving html or plain text
12
with open(join(dirname(__file__), '../resources/example.html'), 'r') as document:
13
config = {'conversion_target': DocumentConversionV1.NORMALIZED_HTML}
14
- print(document_conversion.convert_document(document=document, config=config, media_type='text/html').text)
+ print(document_conversion.convert_document(document=document, config=config, media_type='text/html')
15
+ .content.decode('utf-8'))
16
17
# Example with JSON
18
0 commit comments