Spire.Office for Java 11.10.0 is released

2026-10-30 05:12:06

We are pleased to announce the release of Spire.Office for Java 11.10.0. This version introduces two key enhancements: Spire.PDF for Java now supports setting fonts during HTML-to-PDF conversion and converting a specified page range of a PDF to Word, while Spire.Presentation for Java now supports converting PowerPoint presentations to Markdown. In addition, several issues occurred in the conversion and processing of Word, Excel, PDF, and PowerPoint files have been successfully fixed. Full details are provided below.

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

Here is a list of changes made in this release

Spire.Doc for Java

Category ID Description
Bug Fix SPIREDOC-10471 Fixed the issue where the converted PDF content did not match the original Word document.
Bug Fix SPIREDOC-11959 SPIREDOC-12092 Fixed the issue where page numbers were displayed incorrectly after updating the Word table of contents field.
Bug Fix SPIREDOC-12025 Fixed the issue where the document content was incorrect after accepting revisions.
Bug Fix SPIREDOC-12055 Fixed the issue where extra blank pages were generated when converting Word to PDF.
Bug Fix SPIREDOC-12064 Fixed the issue where caption numbers were not automatically updated after inserting a caption.
Bug Fix SPIREDOC-12108 Fixed the issue where memory was not released in a timely manner during Word to PDF conversion.
Bug Fix SPIREDOC-12109 Fixed the issue where comments were still retained after clearing them, causing the operation to fail.
Bug Fix SPIREDOC-12114 Fixed the issue where an OutOfMemoryError was thrown when replacing long text.

Spire.XLS for Java

Category ID Description
Bug Fix SPIREXLS-6211 Fixed an issue where the Excel to PDF conversion program always hung and the conversion failed.

Spire.Presentation for Java

Category ID Description
New Feature SPIREPPT-2914 Added support for converting PPT(X) to Markdown file format.
Presentation presentaion = new Presentation();
presentaion.loadFromFile(inputFile);
presentaion.saveToFile(outputFile, FileFormat.Markdown);
presentaion.dispose();
Bug Fix SPIREPPT-3200 Fixed the issue where the layout of content was inconsistent after converting PPT(X) to PDF.

Spire.PDF for Java

Category ID Description
New Feature SPIREPDF-8121 Added support for setting fonts when converting HTML to PDF.
ConvertOptions options = new ConvertOptions();
options.setAllowedFonts(new String[] { "Times New Roman", "Arial" });
converter.convertToPdf(input, output, options);
New Feature SPIREPDF-8142 Added the setTextPen(PdfPen) method to PdfGridCellContent.
PdfDocument doc = new PdfDocument();
        PdfPageBase page = doc.getPages().add();

        PdfGrid grid = new PdfGrid();
        grid.getStyle().setCellSpacing(1.0f);
        PdfGridRow row = grid.getRows().add();
        grid.getColumns().add(2);

        float width = (float) page.getCanvas().getClientSize().getWidth()-(grid.getColumns().getCount() + 1);

        grid.getColumns().get(0).setWidth(width * 0.8f);
        PdfGridCell pdfGridCell = row.getCells().get(0);
        PdfGridCellStyle pdfGridStyle =new PdfGridCellStyle();
        PdfPen pen = PdfPens.getGreen();
        pdfGridStyle.setTextPen(pen);
        pdfGridStyle.setTextBrush(PdfBrushes.getBlack());
        Font font=new Font("方正仿宋_GBK", Font.PLAIN, 12);
        PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true);
        pdfGridStyle.setFont(trueTypeFont);
        pdfGridCell.setStyle(pdfGridStyle);
        pdfGridCell.setValue("Thank you for interest in Spire.PDF.");



        PdfGridCellContentList lst = new PdfGridCellContentList();
        PdfGridCellContent textAndStyle = new PdfGridCellContent();
        textAndStyle.setText("Thank you for interest in Spire.PDF.");
        textAndStyle.setFont(trueTypeFont);
        textAndStyle.setPen(PdfPens.Green());
        textAndStyle.setBrush(PdfBrushes.getGreen());
        lst.getList().add(textAndStyle);
        row.getCells().get(1).setValue(lst);

        PdfLayoutResult result = grid.draw(page, new Point2D.Float(10, 100));
        doc.saveToFile("result_Bold.pdf", FileFormat.PDF);
New Feature SPIREPDF-7439 Supports converting specified PDF page ranges to Word.
PdfToWordConverter pdfToWordConverter = new PdfToWordConverter(inputPath);

pdfToWordConverter.saveToDocx(0, 2, outputPath);
Bug Fix SPIREPDF-7542 Fixed an issue where spaces between words were lost when converting PDF to Word.
Bug Fix SPIREPDF-7659 Fixed an issue where chart data was lost when converting PDF to Word in flow layout mode.
Bug Fix SPIREPDF-7955 Fixed an issue where the conversion results were inaccurate when converting PDF to Word.
Bug Fix SPIREPDF-8103 Fixed an issue where font names had an extra prefix and bold formatting was lost when converting PDF to Word.
Bug Fix SPIREPDF-8120 Fixed an issue where formatting was incorrect when converting PDF to Word.
Bug Fix SPIREPDF-8157 Fixed an issue where a NoSuchMethodException was thrown when calling ImageReader.getImageMetadata.
Bug Fix SPIREPDF-6805/SPIREPDF-6891 Fixes the issue of layout errors when converting PDF to Word.
Bug Fix SPIREPDF-6960 Fixes the issue where spaces between words in table cells were lost when extracting table text.
Bug Fix SPIREPDF-6980 Fixes the issue where the color of the seal changed when converting PDF pages to images.