Spire.Doc for Java 13.10.6 supports retrieving style change revisions

Spire.Doc for Java 13.10.6 supports retrieving style change revisions

2025-10-28 09:50:42

We're pleased to announce the release of Spire.Doc for Java 13.10.6. This version supports retrieving style change revisions, accepting or rejecting partial revisions, and tracking revision records for styles. Meanwhile, some issues that occurred when converting Word to PDF, HTML to Word, loading and saving Word documents 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-9691 SPIREDOC-8447 Added support for accepting or rejecting partial revisions.
Document document = new Document();
        document.loadFromFile(inputFile);
        RevisionInfoCollection revisionInfoCollection= document.getRevisionInfos();
        for (int i = 0; i 
                        
New feature SPIREDOC-10632 SPIREDOC-11261 Added support for retrieving style change revisions.
Document document = ConvertUtil.GetNewEngineDocument();
document.loadFromFile(inputFile);
RevisionInfoCollection revisionInfoCollection= document.getRevisionInfos();
for (RevisionInfo revisionInfo : (java.lang.Iterable)revisionInfoCollection) {
    if(revisionInfo.getRevisionType()==RevisionType.Format_Change){
        if(revisionInfo.getOwnerObject() instanceof TextRange){
            TextRange range = (TextRange)revisionInfo.getOwnerObject();
            TestUtil.writeAllText(outputFile,"TextRange:"+range.getText()+"\r\n");
            document.setRevisionsView(RevisionsView.Original);
            TestUtil.writeAllText(outputFile,"Original bold:"+range.getCharacterFormat().getBold()+"\r\n");
            document.setRevisionsView(RevisionsView.Final);
            TestUtil.writeAllText(outputFile,"Final bold:"+range.getCharacterFormat().getBold()+"\r\n");
        }
    }
}
document.close();
New feature SPIREDOC-11303 Added support for tracking revision records for styles.
Document document = new Document();
document.loadFromFile("test.docx");
document.startTrackRevisions("e-iceblue");
for (int i=0; i
                        
New feature SPIREDOC-11313 Added support for setting the number of characters per line in the document grid.
sec.getPageSetup().setGridType(GridPitchType.Chars_And_Line);
sec.getPageSetup().setCharactersPerLine(30);
Bug SPIREDOC-9775 Fixed the issue where revision acceptance behavior was incorrect.
Bug SPIREDOC-10561 SPIREDOC-11399 SPIREDOC-11405 SPIREDOC-11476 SPIREDOC-11481 SPIREDOC-11518 SPIREDOC-11530 SPIREDOC-11569 SPIREDOC-11585 Fixed the issues where rendering effect was incorrect when converting Word to PDF.
Bug SPIREDOC-10635 Fixed the issue that highlight colors could not be retrieved when AcceptChanges() is not called.
Bug SPIREDOC-10995 Fixed the issue where errors occurred when setting table styles.
Bug SPIREDOC-11433 Fixed the issue that the table of contents updated incorrectly.
Bug SPIREDOC-11511 SPIREDOC-11599 Fixed the issues where rendering was incorrect when converting HTML to Word.
Bug SPIREDOC-11519 Fixed the issue where text was garbled when converting MHT files to DOCX.
Bug SPIREDOC-11520 Fixed the issue that "IllegalArgumentException" was thrown when loading documents.
Bug SPIREDOC-11525 Fixed the issue that "NullPointerException" was thrown when loading documents.
Bug SPIREDOC-11531 Fixed the issue where behavior was incorrect when removing content controls.
Bug SPIREDOC-11551 Fixed the issue that bookmarks returned empty.
Bug SPIREDOC-11560 Fixed the issue that selected checkboxes failed to remain checked.
Bug SPIREDOC-11563 Fixed the issue that content regions were non-editable after accepting revisions.
Bug SPIREDOC-11572 Fixed the issue where image content was lost when saving documents to WPS format.
Bug SPIREDOC-11584 Fixed the issue that exceptions were thrown when using useHarfBuzzTextShaper(true) during Word to PDF conversion.
Bug SPIREDOC-11589 Fixed issue with "NullPointerException" being thrown when using replaceBookmarkContent. ()
Bug SPIREDOC-11597 Fixed the issue that replacement behavior was incorrect.
Bug SPIREDOC-11600 Fixed the issue that "Cannot remove because there is no parent" exception was thrown when using StructureDocumentTagCell.removeSelfOnly.
Click the link below to download Spire.Doc for Java 13.10.6: