Spire.Doc for Java 12.4.6 supports loading, manipulating, and converting Markdown documents

2024-04-19 08:34:32

We are excited to announce the release of Spire.Doc for Java 12.4.6. This version supports manipulating and converting Markdown documents. It also enhances the conversion from Word to PDF, HTML, and SVG. Moreover, some known issues are fixed successfully in this version, such as the issue that the rest content of the document was changed after replacing the bookmark content. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New feature SPIREDOC-10091 Supports loading and operating MarkDown documents, or converting word documents to MarkDown.
Document doc = new Document();
//load .md file
doc.loadFromFile("input.md");
//save to .md file
doc.saveToFile("output.md", com.spire.doc.FileFormat.Markdown);
//save to .docx file
//doc.saveToFile("output.docx", com.spire.doc.FileFormat.Docx);
//save to .doc file
//doc.saveToFile("output.doc", com.spire.doc.FileFormat.Doc);
//save to .pdf file
//doc.saveToFile("output.pdf", com.spire.doc.FileFormat.PDF);
doc.close();

Document doc = new Document();
//load .docx file
doc.loadFromFile("input.docx");
//load .doc file
//doc.loadFromFile("input.doc");
//save to .md file
doc.saveToFile("output.md", com.spire.doc.FileFormat.Markdown);
doc.close();
Bug SPIREDOC-9801 Fixes the issue that the content format was inconsistent after converting Word to PDF.
Bug SPIREDOC-10038 Fixes the issue that the rest content of the document was changed after replacing the content of bookmarks.
Bug SPIREDOC-10073 Optimizes the document size of Word to PDF conversion results.
Bug SPIREDOC-10183 Fixes the issue that the result document of comparison reported an error when opening.
Bug SPIREDOC-10237 Fixes the issue that the content was not formatted correctly after converting Word to HTML.
Bug SPIREDOC-10283 Fixes the issue that it reported "Cannot found font insatlled on the system" error when converting Word to PDF on linux environment without any fonts installed.
Bug SPIREDOC-10292 Fixes the issue that the number of pages was incorrect after converting Word to SVG.
Bug SPIREDOC-10364 Fixes the issue that it reported "Error loading file: Unsupported file format" error when loading ODT file.
Bug SPIREDOC-10369 Fixes the issue that the generated Word documents could not be opened by WeChat on Apple mobile devices.
Bug SPIREDOC-10387 Optimizes FixedLayoutLine.getRectangle() method to get its height and width, i.e. FixedLayoutLine.getRectangle().width and FixedLayoutLine.getRectangle().height.
Click the link below to download Spire.Doc for Java 12.4.6: