Spire.Office for Java 11.9.0 is released

2026-09-29 08:55:14

We're pleased to announce the release of Spire.Office for Java 11.9.0. In this version, the Spire.Doc for Java supports automatically adjusting watermark font size based on text length. Spire.PDF for Java supports adding rich text to PdfGridCell. In addition, several issues that occurred during the conversion and processing of Word/Excel/PDF/PowerPoint files have been successfully fixed. More details are listed below.

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

Here is a list of changes made in this release

Spire.Doc for Java

Category ID Description
New Feature SPIREDOC-11738 Adds support for automatically adjusting the font size of the watermark according to the length of the watermark text.
TextWatermark wm = new TextWatermark(document);
wm.setText("Watermark");
// Automatic font size
wm.setFontSize(0); 
document.setWatermark(wm);
Bug Fix SPIREDOC-10474, SPIREDOC-10669, SPIREDOC-12009 Fixes the issue of inconsistent line breaks when converting Word to PDF.
Bug Fix SPIREDOC-11863 Fixes the issue where the content format changed after loading a DOC document and saving it as DOCX.
Bug Fix SPIREDOC-11925 Fixes the issue of incorrect pagination when converting Word to PDF.
Bug Fix SPIREDOC-12023 Fixes the issue where images were incorrect after setting setMimicWPSLayout(true).
Bug Fix SPIREDOC-12089 Fixes the issue where page numbers were inconsistent in WPS mode when converting Word to PDF.

Spire.XLS for Java

Category ID Description
Bug Fix SPIREXLS-6207 Fixed an issue where the value read from a cell did not match the cell format in the original file
Optimization SPIREXLS-6216 Optimized formula calculation time on hidden worksheets when converting Excel to PDF.
Bug Fix SPIREXLS-6218 Fixed an issue where validation failed when converting Excel files to PDF/A-1a, PDF/A-2a, and PDF/A-3a.

Spire.Presentation for Java

Category ID Description
Bug Fix SPIREPPT-3198 Fixes the issue where content was lost when converting a PowerPoint document to PDF.

Spire.PDF for Java

Category ID Description
New Feature SPIREPDF-8081 Added a method to support adding rich text to PdfGridCell.
/ Add rich text
cellContent1.setRichText("<html><body><p style='color:black; font-size:14pt;'>Hello World</p></body></html>");
New Feature SPIREPDF-8127 PdfToWordConverter now supports stream input.
InputStream fileStream = new FileInputStream(inputFile);
PdfToWordConverter convert = new PdfToWordConverter(fileStream);
convert.saveToDocx(outputFile);
Bug Fix SPIREPDF-8140 Fixed an issue where form content was lost when converting PDF to image.
Bug Fix SPIREPDF-8143 Fixed an issue where the program hung when converting PDF to PDF/A-2B.
Bug Fix SPIREPDF-8146 Fixed an IllegalAccessError compatibility issue caused by JPMS module encapsulation when running PDF features on JDK 9+.
Bug Fix SPIREPDF-8149 Fixed an issue where a NullPointerException was thrown when merging PDF documents.