【发布时间】:2017-03-14 06:33:13
【问题描述】:
import pypandoc
output = pypandoc.convert_file('file.html', 'docx', outputfile="file1.docx")
assert output == ""
它正在生成新的 docx 文件,但忽略样式。
谁能告诉我如何生成带有样式的新 docx 文件?
提前感谢您的回答。
【问题讨论】:
-
这能回答你的问题吗? html to .doc converter in Python?
标签: python html ubuntu-16.04 doc