Spire.Office for Java 10.6.0 is released

Spire.Office for Java 10.6.0 is released

2025-07-01 02:50:16

We are excited to announce the release of Spire.Office for Java 10.6.0. In this version, Spire.Doc for Java adds support for reading and setting chart formats; Spire.XLS for Java supports using font streams when applying custom fonts; and Spire.Presentation for Java enables copying formulas within paragraphs. In addition, many known issues have been successfully resolved. More details are provided below.

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

Here is a list of changes made in this release

Spire.Doc for Java

Category ID Description
New feature - Supports getting and setting chart formats, including chart titles, data labels, axes, legends, and data tables.
New feature - Optimizes the reading and setting of table formats.
New feature - Optimizes Word-to-PDF conversion performance, reducing processing time and memory usage.
Bug SPIREDOC-10375 Fixes the issue where TOC (Table of Contents) field updates failed.
Bug SPIREDOC-10582
SPIREDOC-11284
Fixes the issue where the “outputToOneSvg” parameter did not take effect during Word-to-SVG conversion.
Bug SPIREDOC-10792
SPIREDOC-11165
Fixes the "Key cannot be null" error when comparing Word documents.
Bug SPIREDOC-11237 Fixes the "Cannot insert an object of type 10 into the 6" error when comparing Word documents.
Bug SPIREDOC-11247 Fixes blank content issues when comparing Word documents.
Bug SPIREDOC-11264 Fixes incorrect content retrieval when calling getText().
Bug SPIREDOC-11281 Fixes incorrect line styles when accepting revisions.

Spire.XLS for Java

Category ID Description
New feature SPIREXLS-5817 Added support for font stream data when applying custom fonts.
Workbook book = new Workbook();
FileInputStream stream = new FileInputStream("fontpath");
book.setCustomFontStreams(new FileInputStream[]{stream});
New feature SPIREXLS-5821 Added support for setting setIsSaveBlankCell to control whether to export extra blank cells when converting Excel to HTML.
Workbook workbook = new Workbook();
workbook.loadFromFile(inputFile);
WorksheetsCollection sheets = workbook.getWorksheets();
HTMLOptions options = new HTMLOptions();
options.setImageEmbedded(true);
options.setStyleDefine(HTMLOptions.StyleDefineType.Inline);
options.setIsSaveBlankCell(true);
New feature SPIREXLS-5822 Added support for retrieving the cell location of embedded images.
Worksheet worksheet=wb.getWorksheets().get(0);
ExcelPicture[] cellimages=worksheet.getCellImages();
cellimages[0].getEmbedCellName()
Bug SPIREXLS-5522 Fixed the issue where sheet.getCellImages() could not retrieve images inserted by Office 365.
Bug SPIREXLS-5803 Fixed the issue where page numbering was incorrect when converting Excel to PDF.
Bug SPIREXLS-5812 Fixed the issue that caused a "NullPointerException" when copying Excel and saving it as .xls.
Bug SPIREXLS-5813 Fixed the issue where text content was truncated when converting Excel to PDF.
Bug SPIREXLS-5815 Fixed the issue that caused the error "For input string: 'OP_ID'" when converting CSV to Excel.
Bug SPIREXLS-5816 Fixed the issue where autoFitColumns() behaved incorrectly.
Bug SPIREXLS-5823 Fixed the issue where cell styling was inconsistent when converting Excel to HTML with setIsFixedTableColWidth enabled.
Bug SPIREXLS-5844 Fixed the issue that caused the error "Specified argument was out of the range of valid values" when converting Excel to HTML.
Bug SPIREXLS-5852
SPIREXLS-5855
Fixed the issue where Excel was rendered incorrectly when converting to HTML.

Spire.PDF for Java

Category ID Description
Bug SPIREPDF-7485 Fixed the issue that spaces were lost after converting PDF to PDFA3B.
Bug SPIREPDF-7497 Fixed the issue that signatures were lost after converting PDF to PDFA1A.
Bug SPIREPDF-7506 Fixed the issue that the program threw NullPointerException after converting OFD to PDF.
Bug SPIREPDF-7524 Fixed the issue that fonts were incorrect after replacing text.
Bug SPIREPDF-7530 Fixed the issue that table layouts were incorrect after creating booklets using PdfBookletCreator.

Spire.Presentation for Java

Category ID Description
New feature SPIREPPT-2856 Supports copying formulas within paragraphs.
Presentation sourcePpt = new Presentation();
sourcePpt.loadFromFile("data1.pptx");
Presentation targetPpt = new Presentation();
targetPpt.loadFromFile("data2.pptx");
copyNotes(sourcePpt.getSlides().get(0),targetPpt.getSlides().get(0));
targetPpt.saveToFile("out.pptx", com.spire.presentation.FileFormat.PPTX_2013);
public static void copyNotes(ISlide sourceSlide, ISlide targetSlide) throws DocumentEditException {
    if (sourceSlide.getNotesSlide() == null) {
        System.out.println(sourceSlide.getName());
        return;
    }
    // The paragraph contains formulas
    System.out.println(sourceSlide.getNotesSlide().getNotesTextFrame().getText());
    ParagraphCollection paragraphs = sourceSlide.getNotesSlide().getNotesTextFrame().getParagraphs();
    targetSlide.getNotesSlide().getNotesTextFrame().getParagraphs().append(paragraphs);
Bug SPIREPPT-2860 Fixes the issue where the height of the shape decreased after adding blank paragraphs.
Bug SPIREPPT-2850
SPIREPPT-2868
SPIREPPT-2869
SPIREPPT-2870
SPIREPPT-2879
SPIREPPT-2883
Fixed the issue where adding LaTeX formulas to PPTX files resulted in incorrect output.
Bug SPIREPPT-2861 Fixed the issue where converting ODP to PDF resulted in an “Unknown file format” error.
Bug SPIREPPT-2870 Fixed the issue where adding LaTeX formulas resulted in a “ClassCastException” error.
Bug SPIREPPT-2884 Fixed the issue where retrieving data resulted in a “NullPointerException” error.
Bug SPIREPPT-2891 Fixed the issue where adding LaTeX formulas caused an error when opening the resulting document.
Bug SPIREPPT-2894 Fixed the issue where retrieving data from a doughnut chart resulted in incorrect output.