Spire.Doc for Java 14.9.5 supports automatically adjusting watermark font size based on text length

2026-09-24 03:09:35

We're pleased to announce the release of Spire.Doc for Java 14.9.5. This version supports automatically adjusting the font size of the watermark according to the length of the watermark text. Meanwhile, some issues that occurred when converting Word to PDF, saving DOC as DOCX, and setting setMimicWPSLayout(true) have also been successfully fixed. More details are listed below.

Here is a list of changes made in this release

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.
Click the link below to download Spire.Doc for Java 14.9.5: