Python 将单词转换为 html
Python convert word to html
我需要将带有彩色文字的 .docx 文件转换为 html。我试过庞大的库,但颜色丢失了。我怎样才能实现我的目标?
import win32com.client
doc = win32com.client.GetObject("demo.docx")
doc.SaveAs (FileName="hey.html", FileFormat=8)
doc.Close ()
我需要将带有彩色文字的 .docx 文件转换为 html。我试过庞大的库,但颜色丢失了。我怎样才能实现我的目标?
import win32com.client
doc = win32com.client.GetObject("demo.docx")
doc.SaveAs (FileName="hey.html", FileFormat=8)
doc.Close ()