We are excited to announce the release of Spire.Doc for Java 11.4.2. This version supports Docx2026 and Docx2019 file formats. It also supports updating only page numbers of the contents and retrieving replies to comments. Besides, it enhances the conversion from Word to PDF, HTML, and OFD. In addition, many known issues are fixed in this version, such as the issue that the page orientation changed from portrait to landscape after accepting revisions. More details are listed below.
Here is a list of changes made in this release
Category | ID | Description |
New feature | SPIREDOC-6422 | Supports Docx2016 and Docx2019 file formats.
Spire.Doc.FileFormat.Docx2016 Spire.Doc.FileFormat.Docx2019 |
New feature | SPIREDOC-6913 | Supports updating only page numbers of the contents.
document.updateTOCPageNumbers(); document.updateTOCPageNumbers(TableOfContent toc); |
New feature | SPIREDOC-9216 | Supports retrieving replies to comments.
Document doc = new Document(); doc.loadFromFile(inputFile); Comment comment = doc.getComments().get(0); CommentsCollection comCollect = comment.getReplyCommentItems(); String author = comCollect.get(0).getFormat().getAuthor(); Date dateTime = comCollect.get(0).getFormat().getDateTime(); String replayContent = ""; IDocumentObjectCollection objCollect = comCollect.get(0).getBody().getChildObjects(); for (int i = 0; i < objCollect.getCount(); i++) { DocumentObject obj = objCollect.get(i); if (obj.getDocumentObjectType() == DocumentObjectType.Paragraph) { replayContent = ((Paragraph) obj).getText(); } } |
Bug | SPIREDOC-8680 | Fixes the issue that the page orientation changed from portrait to landscape after accepting revisions. |
Bug | SPIREDOC-8786 SPIREDOC-9159 |
Fixes the issue that the layout was incorrect after converting Word to PDF. |
Bug | SPIREDOC-8789 | Fixes the issue that the content formatting was incorrect after converting Word to PDF. |
Bug | SPIREDOC-9019 | Fixes the issue that the page numbers of the contents were not updated correctly. |
Bug | SPIREDOC-9097 | Fixes the issue that an exception "java.lang.NullPointerException" occurred when loading an RTF document. |
Bug | SPIREDOC-9099 SPIREDOC-9123 SPIREDOC-9124 SPIREDOC-9177 |
Fixes the issue that text line breaks were incorrect after converting Word to PDF. |
Bug | SPIREDOC-9130 | Fixes the issue that an exception "java.lang.NullPointerException" occurred when converting Word to PDF. |
Bug | SPIREDOC-9151 | Fixes the issue that formulas could not be edited after merging documents. |
Bug | SPIREDOC-9153 | Fixes the issue that the document format was incorrect after loading and saving a document. |
Bug | SPIREDOC-9181 | Fixes the issue that character spacing scaling styles were lost after converting Word to HTML. |
Bug | SPIREDOC-9196 | Fixes the issue that an error "Cannot find stream '1Table' in the storage" occurred when loading a document. |
Bug | SPIREDOC-9227 | Fixes the issue that an exception "java.lang.NullPointerException" occurred when converting to PDF after comparing two Word documents. |
Bug | SPIREDOC-9251 | Fixes the issue that line breaks were incorrect after converting Word to OFD. |
Bug | SPIREDOC-9260 | Fixes the issue that an exception "java.lang.NullPointerException" occurred when loading a DOC document. |
Bug | SPIREDOC-9280 | Fixes the issue that an exception "java.lang.IllegalArgumentException" occurred when comparing two Word documents. |
Click the link to download Spire.Doc for Java 11.4.2: