pdfFile = aw.Document('test.pdf')
save_options = aw.saving.HtmlSaveOptions()
save_options.save_format = aw.SaveFormat.HTML
save_options.encoding = "utf-8"
save_options.images_folder = "images"
html_stream = io.BytesIO()
content = html_stream.getvalue().decode()
I want to convert a file with run code. The file is a chinese pdf. So content findally return garbled.I tried a lot and it didn’t work.
test.pdf (75 KB)
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): WORDSNET-25426
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
Please note, PDF and HTML are not native formats for Aspose.Words, which is designed to work with MS Word documents at first. PDF and HTML document object models are quite different from MS Word documents. These differences might cause losses of document fidelity after converting these formats using Aspose.Words.