Spire.Office for Java 11.3.0 is released

Spire.Office for Java 11.3.0 is released

2026-03-30 02:04:42

We’re pleased to announce the release of Spire.Office for Java 11.3.0. In this update, Spire.Doc for Java supports “kerning for fonts” feature; Spire.PDF for Java supports PDF 2.0 format; Spire.Presentation supports saving PPTX to video formats; Spire.XLS for Java enhances the Excel to PDF conversion stability. Moreover, a large number of known issues have been successfully resolved. More details are as follows.

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

Below is a summary of the changes included in this release.

Spire.Doc for Java

Category ID Description
New Feature SPIREDOC-9870 Support the "Automatically adjust right indent when defining grid" feature.
paragraph.Format.AdjustRightIndent = true; // Default value is true
New Feature SPIREDOC-11030 Support the "Kerning for fonts" feature.
textRange.CharacterFormat.Kerning = 2.5f;
New Feature SPIREDOC-11792 Supports configuring formula conversion to MathML when converting Word to HTML.
HtmlExportOptions options = document.getHtmlExportOptions();
options.setOfficeMathOutputMode(HtmlOfficeMathOutputMode.Math_ML);
Bug Fix SPIREDOC-11702 Fixed an issue where loading a document threw the exception "Document element did not appear. Line 2, position 1".
Bug Fix SPIREDOC-11742 Fixed an issue where bullet/numbering positions in headings were incorrect when converting Word to Markdown.
Bug Fix SPIREDOC-11798 Fixed an issue where page layout effects were rendered incorrectly.
Bug Fix SPIREDOC-11804 Fixed an issue where extra blank pages appeared when converting Word to PDF.
Bug Fix SPIREDOC-10476 Fixes the issue where a NullPointerException was thrown when loading a Word document in the JDK 11 environment.
Bug Fix SPIREDOC-11628 Fixes the issue where the "There are too many styles in the document" exception was thrown when loading a Word document.
Bug Fix SPIREDOC-11635 Fixes the issue where the "Invalid format string" exception was thrown when loading a Word document containing signatures.
Bug Fix SPIREDOC-11713 Fixes the issue where images were lost when converting Word to PDF.
Bug Fix SPIREDOC-11819 Fixes the issue where OLE object icons became abnormally large upon double-clicking after being added to a Word document.
Bug Fix SPIREDOC-11828 Fixes the issue where a NullPointerException was thrown when deleting OLE objects from a Word document.
Bug Fix SPIREDOC-11843 Fixes the issue where the java.lang.Float cannot be cast to java.lang.Integer exception was thrown when loading a Word document.
Bug Fix SPIREDOC-11847 Fixes the issue where content overlapped when converting Word to PDF.

Spire.XLS for Java

Category ID Description
Bug Fix SPIREXLS-6109 Fixed an issue where some borders were missing when converting Excel to PDF on a Linux server.
Bug Fix SPIREXLS-6119 Fixed an issue where the application would hang when loading a document.

Spire.PDF for Java

Category ID Description
New Feature SPIREPDF-4796 Added support for setting the PDF 2.0 version.
doc.getFileInfo().setVersion(PdfVersion.Version_2_0);
Bug Fix SPIREPDF-6872 Fixed an issue where punctuation marks appeared at the beginning of lines when rendering Chinese text.
Bug Fix SPIREPDF-7863 Fixed an issue where OFD files converted from PDF failed to open with ofd.umd.js.
Bug Fix SPIREPDF-7682 Fixed an issue where images placed at the bottom layer appeared above text after converting PDF to PDF/A-1a.
Bug Fix SPIREPDF-7944 Fixed an issue where the application hung when loading a PDF document.
Bug Fix SPIREPDF-7978 Fixed an issue where partial text was lost after converting PDF to PDF/A-1a.
Bug Fix SPIREPDF-7979 SPIREPDF-7993 Fixed an issue where the application threw a "file structure is not valid" exception when loading a PDF document.
Bug Fix SPIREPDF-7811 Fixes the issue where a java.lang.NullPointerException was thrown when merging PDF documents.
Bug Fix SPIREPDF-7931 Fixes the issue where a java.lang.NullPointerException was thrown when releasing resources during PDF merging.
Bug Fix SPIREPDF-7995 Fixes the issue where partial text was missing when converting PDF to PDF/A.

Spire.Presentation for Java

Category ID Description
New Feature - Added support for saving PPTX to video formats.
String inputFile = "input.pptx";
String outputFile = "output.mp4";  

Presentation presentation = new Presentation();
presentation.loadFromFile(inputFile);

SaveToVideoOption saveOption = new SaveToVideoOption.Builder("D:\\tools\\ffmpeg-7.1.1-essentials_build\\bin")  // Set ffmpeg path
.setFps()  // Frame rate
.setThreadsCount()  // Number of threads
.setDurationForEachSlide()  // Duration for each slide
.build(); 
presentation.setSaveToVideoOption(saveOption);
presentation.saveToFile(outputFile, FileFormat.AUTO);