We're pleased to announce the release of Spire.Doc for Java 13.9.19. This version introduces enhanced Markdown export options, allowing better control over image encoding, output paths, link modes, lists, equations, and table formatting when converting Word documents. Meanwhile, multiple issues related to document revision comparison, page retrieval, content formatting, and exceptions during file conversions have also been fixed. More details are listed below.
Here is a list of changes made in this release
| Category | ID | Description |
| New feature | SPIREDOC-11484 | Supports configuring images to be embedded in Base64 encoding when converting Word to Markdown.
doc.getMarkdownExportOptions().setImagesAsBase64(true); |
| New feature | — | Supports configuring the output directory and resource reference path for images when converting Word to Markdown.
doc.getMarkdownExportOptions().setImagesFolder(ImagesFolder); doc.getMarkdownExportOptions().setImagesFolderAlias(file_imageFile.getCanonicalPath()); |
| New feature | — | Supports configuring the link output mode (Auto/Inline/Reference) when converting Word to Markdown.
doc.getMarkdownExportOptions().setLinkOutputMode(MarkdownLinkOutputMode.Inline); |
| New feature | — | Supports configuring lists to be exported using Markdown syntax or plain text when converting Word to Markdown.
doc.getMarkdownExportOptions().setListOutputMode(MarkdownListOutputMode.PlainText); |
| New feature | — | Supports configuring equations to be exported as text, image, or MathML when converting Word to Markdown.
doc.getMarkdownExportOptions().setOfficeMathOutputMode(MarkdownOfficeMathOutputMode.Image); |
| New feature | — | Supports retaining specified content (e.g., tables) in HTML format when converting Word to Markdown.
doc.getMarkdownExportOptions().setSaveAsHtml(MarkdownSaveAsHtml.Tables); |
| New feature | — | Supports using "++" symbols to represent underline formatting when converting Word to Markdown.
doc.getMarkdownExportOptions().setSaveUnderlineFormatting(true); |
| New feature | — | Supports configuring text alignment (Left/Center/Right/Auto) for tables when converting Word to Markdown.
doc.getMarkdownExportOptions().setTableTextAlignment(TableTextAlignment.Center); |
| Bug | SPIREDOC-10545, SPIREDOC-11365, SPIREDOC-11366 | Fixed an issue where Word document revision comparison was inaccurate. |
| Bug | SPIREDOC-11262 | Fixed an issue where page retrieval was incorrect. |
| Bug | SPIREDOC-11270 | Fixed an exception "Shape width cannot be greater than 1584 points" when converting Markdown to Word. |
| Bug | SPIREDOC-11319 | Fixed an exception "Error loading file: Unsupported file format" when converting HTML to Word. |
| Bug | SPIREDOC-11371 | Fixed incorrect page breaking when converting Word to PDF. |
| Bug | SPIREDOC-11435 | Fixed incorrect indentation in table of contents when saving Word documents. |
| Bug | SPIREDOC-11473, SPIREDOC-11485 | Fixed a "NullPointerException" when converting Word to Markdown. |
| Bug | SPIREDOC-11479 | Fixed an issue where the output stream was blank when saving Word to Markdown. |
| Bug | SPIREDOC-11480 | Fixed incorrect behavior when accepting revisions. |
| Bug | SPIREDOC-11486 | Fixed an issue where clearing table row background color had no effect. |
| Bug | SPIREDOC-11487 | Fixed a "NullPointerException" when calling the removeSelfOnly method to remove content controls. |
| Bug | SPIREDOC-11500 | Fixed an issue where the application hung when replacing bookmark content after enabling revisions. |
| Bug | SPIREDOC-11501 | Fixed an issue where the "incorrect password" exception was not properly thrown when loading encrypted documents. |
| Bug | SPIREDOC-11505 | Fixed a "NullPointerException" when retrieving the PackageFileName of an OLE object. |
| Bug | SPIREDOC-11506 | Fixed incorrect text retrieval. |
| Bug | SPIREDOC-11517 | Fixed an "Unsupported file format" exception when loading HTML files. |
| Bug | SPIREDOC-11548 | Fixed incorrect comment timestamps after saving Word documents. |
Click the link below to download Spire.Doc for Java 13.9.19: