我的代码如下
- Code: Select all
from spire.doc import *
document = Document()
document.LoadFromFile("ceshi1.docx")
document.HtmlExportOptions.ImageEmbedded = False
document.HtmlExportOptions.ImagesPath = "Images/"
document.SaveToFile("ceshi1.html", FileFormat.Html)
document.Close()