0
import pypandoc
output = pypandoc.convert_file('file.html', 'docx',outputfile="file1.docx")
assert output == ""
새로운 docx 파일을 생성하지만 스타일은 무시하고 있습니다.어떻게 html을 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