Spire.Doc for Python 12.6.0 supports converting Word to Markdown, or Markdown to Word/PDF

2024-06-26 09:02:32

We're pleased to announce the release of Spire.Doc for Python 12.6.0. This version supports loading, saving and converting Markdown documents, such as converting Word to Markdown,or Markdown to Word/PDF. In addition, it also fixes some issues that occurred when converting Word to PDF, Html to Word. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New feature SPIREDOC-10556 Supports loading, saving and converting Markdown documents.
document= Document()
#load .md file
document.LoadFromFile("input.md")
#save to .md file
document.SaveToFile("output.md", FileFormat.Markdown)
#save to .docx file
document.SaveToFile("output.docx", FileFormat.Docx)
#save to .doc file
document.SaveToFile("output.doc", FileFormat.Doc)
#save to .pdf file
document.SaveToFile("output.pdf", FileFormat.PDF)
 
document= Document()   
#load .docx file
document.LoadFromFile("input.docx")
#load .doc file
#document.LoadFromFile("input.doc")
#save to .md file
document.SaveToFile("output.md", FileFormat.Markdown)
Bug SPIREDOC-10321
SPIREDOC-10368
Fixes the issue that the bookmark content was incorrect when converting Word to PDF.
Bug SPIREDOC-10390 Fixes the issue that the program threw "InvalidOperation_EmptyStack" when converting Html to Word.
Bug SPIREDOC-10505 Fixes the issue that the content was incorrect after updating TableOfContents.
Bug SPIREDOC-10507 Fixes the issue that the images were not displayed when converting Html to Word.
Click the link to download Spire.Doc for Python 12.6.0: