Spire.Office for Java 10.9.0 Released

Spire.Office for Java 10.9.0 Released

2025-09-29 10:13:45

We are excited to announce the release of Spire.Office for Java 10.9.0. In this version, Spire.Doc for Java introduces several new features to enhance Word-to-Markdown conversion; Spire.Presentation for Java adds a new method to quickly retrieve the number of slides; Spire.PDF for Java optimizes memory consumption when loading documents. This release also includes numerous bug fixes. Details are provided below.

Click the link to download Spire.Office for Java 10.9.0:

Here is a list of changes made in this release

Spire.Doc for Java

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-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.

Spire.Presentation for Java

Category ID Description
New feature SPIREPPT-2978 Adds the getSlidesCount() method to quickly retrieve the number of slides without fully parsing the entire document.
// Stream approach:
InputStream stream = new FileInputStream(inputFile);
int count = Presentation.getSlidesCount(stream);

// File path approach:
int count = Presentation.getSlidesCount(inputFile);
Bug SPIREPPT-2908 SPIREPPT-2913 Fixed an issue where the font rendering was incorrect when converting PPTX to PDF on Linux systems.
Bug SPIREPPT-2916 Fixed an issue where layout discrepancies occurred when converting slides to images.
Bug SPIREPPT-2917 Fixed an issue where table content overflowed its cells when converting slides to images.
Bug SPIREPPT-2918 SPIREPPT-2924 Fixed an issue where table borders were missing when converting slides to images.
Bug SPIREPPT-2927 SPIREPPT-2966 Fixed an issue where the rendering of LaTeX formulas was incorrect.

Spire.PDF for Java

Category ID Description
Optimization SPIREPDF-7717 Optimizes memory consumption when loading documents.
Bug SPIREPDF-7608 Fixes the issue where the program threw a "NullPointerException" when converting PDF to HTML.
Bug SPIREPDF-7635 Fixes the issue where the character "-" was missing when extracting text from PDF.
Bug SPIREPDF-7639 Fixes the issue where text wrap settings in Grid cells were not taking effect.
Bug SPIREPDF-7652 Fixes the issue where the obtained image coordinates were inaccurate.

Spire.XLS for Java

Category ID Description
Bug SPIREXLS-5927 Fixed an issue causing extra content and missing blank lines when converting Excel to HTML.
Bug SPIREXLS-5942 Fixed an issue where an "IllegalStateException" exception was thrown when saving an XLSB file.
Bug SPIREXLS-5944 Fixed an issue causing pagination differences when converting Excel to PDF.
Bug SPIREXLS-5946 Fixed an issue where ChartPlotEmptyType changed from Interpolated to Gap when cloning a worksheet.