Spire.Office for Java 10.5.0 is released

Spire.Office for Java 10.5.0 is released

2025-05-28 07:21:52

We're pleased to announce the release of Spire.Office for Java 10.5.0. In this version, the Spire.PDF for Java supports using the byte[] certificate data when signing with ‘digitalsignatures.PdfCertificate’. Spire.Doc for Java supports excluding table objects during document comparison and setting underline color. In addition, many known issues that occurred when converting and processing Word/ Excel/ PDF/PowerPoint files have been successfully fixed. More details are listed below.

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

Here is a list of changes made in this release

Spire.Doc for Java

Category ID Description
New feature SPIREDOC-11111 Supports excluding table objects during document comparison.
Compareoptions compareoptions = new Compareoptions();
compareoptions.setIgnoreTable(true);
docunment.compare(docunment2, "Yang Merlin", compareoptions );
New feature SPIREDOC-10501 Supports setting underline color.
textRange.getCharacterFormat().setUnderlineColor(Color.RED);
Bug SPIREDOC-10310 Fixes the issue where the text displayed incorrectly when converting Word to PDF.
Bug SPIREDOC-11087 Fixes the issue where reading the TOC of Word document returned null.
Bug SPIREDOC-11093 Fixes the issue where extra symbols appeared when reading the TOC of Word document.
Bug SPIREDOC-11108 Fixes the issue that incorrect content was retrieved when using the ‘BookmarksNavigator.getBookmarkContent()’ method.
Bug SPIREDOC-11100 Fixes the issue that LaTeX formulas rendered incorrectly.
Bug SPIREDOC-11175 Fixes the issue that it was failed to updating the Word page number fields.
Bug SPIREDOC-11176 Fixes the issue where an "ArrayIndexOutOfBoundsException" error occurred when creating a table of contents.
Bug SPIREDOC-11178 Fixes the issue that control content retrieval returned null.
Bug SPIREDOC-11190 Fixes the issue where the characters displayed incorrectly when converting Word to PDF.
Bug SPIREDOC-11200 Fixes the issue where the characters were lost when converting Word to PDF.
Bug SPIREDOC-11204 Fixes the issue where the headers were lost when converting Word to PDF.
Bug SPIREDOC-11218 Fixes the issue that the ‘Document.updateTOCPageNumbers()’ method did not take effect.
Bug SPIREDOC-11224 Fixes the issue that the font modifications did not apply.
Bug SPIREDOC-11229 Fixes the issue that the PDFs displayed incorrectly in Chrome and WPS after converting from a Word document.
Bug SPIREDOC-11232 Fixes the issue where a "NullPointerException" occurred when converting Word to PDF.
Bug SPIREDOC-11250 Fixes the issue that incorrect results were returned when calling the ‘Paragraph.getListText()’ method.

Spire.XLS for Java

Category ID Description
Bug SPIREXLS-5737 Fixes the issue that the program threw an exception when calling Worksheet.findAllString for specific documents.
Bug SPIREXLS-5750 Fixes the issue that the images shifted upward when converting specific Excel files to HTML.
Bug SPIREXLS-5765 Fixes the issue that the program threw “ArrayIndexOutOfBoundsException” when loading specific Excel files.
Bug SPIREXLS-5773 Optimizes the issue that the time consuming for specific Excel to HTML conversion was too much.
Bug SPIREXLS-5786 Fixes the issue that the program threw “Invalid end column index” when converting specific Excel files to HTML.

Spire.PDF for Java

Category ID Description
New feature SPIREPDF-7460 Supports using the byte[] certificate data when signing with "digitalsignatures. PdfCertificate".
PdfDocument pdf = new PdfDocument();
pdf.loadFromFile(inputFile);
FileInputStream instream = new FileInputStream(inputFile_pfx);
byte[] data = FileUtil.getStreamBytes(instream);
PdfCertificate x509 = new PdfCertificate(data, "e-iceblue");
PdfOrdinarySignatureMaker signatureMaker = new PdfOrdinarySignatureMaker(pdf, x509);
signatureMaker.makeSignature("signName");
pdf.saveToFile(outputFile, FileFormat.PDF);
pdf.dispose();
Bug SPIREPDF-7457 Fixes the problem that the program threw “NullPointerException” when setting isFlatten(true).
Bug SPIREPDF-7458 Fixes the issue that some contents were incorrect after converting PDF to PDF/A.
Bug SPIREPDF-7463 Fixes the issue that the format and font were incorrect after converting PDF to PowerPoint.
Bug SPIREPDF-7462 Fixes the issue that the data extracted from tables was incorrect.
Bug SPIREPDF-7353 SPIREPDF-7489 Fixes the issue that the PDF to PDF/A validation failed.
Bug SPIREPDF-7481 Fixes the issue that content was lost when converting SVG to PDF.
Bug SPIREPDF-7484 Fixes the issue that the program threw a NullPointerException when adding annotations
Bug SPIREPDF-7492 Fixes the issue that extra horizontal lines appeared when converting a PDF to Word.

Spire.Presentation for Java

Category ID Description
Bug SPIREPPT-2882 Fixes the issue where the program threw an "Exception in thread "main" java.lang.NullPointerException" when adding Latex formulas.