0
import pypandoc
output = pypandoc.convert_file('file.html', 'docx',outputfile="file1.docx")
assert output == ""
新しいdocxファイルを生成していますが、スタイルは無視しています。どうすればhtmlをpythonでdocxに変換できますか?
スタイルで新しいdocxファイルを生成する方法を教えてください。
ご回答いただきありがとうございます。
これを確認してくださいhttp://stackoverflow.com/questions/1035183/how-can-i-create-a-word-document-using-pythonとhttp://python-docx.readthedocs.io/en/latest /user/styles-using.html – Shailesh