Spire.Doc for Java 4.12.1 supports converting Word to OFD format

2021-12-03 03:35:07

We are pleased to announce the release of Spire.Doc for Java 4.12.1. This version supports converting Word to OFD format, setting the revision author, as well as setting "ignore formatting" when doing the comparison. Additionally, it enhances the conversion from Word to PDF, also fixes some known issues such as the list text obtained being incorrect. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New feature - Supports converting Word to OFD format.
Document document = new Document();
document.loadFromFile("input.docx");
document.saveToFile("output.ofd", FileFormat.OFD);
New feature SPIREDOC-6969 Supports setting the revision author.
Document doc = new Document();
doc.loadFromFile(inputFile);
doc.setTrackChanges(true);
TextRange range = doc.getLastParagraph().appendText("123413");
range.getInsertRevision().setAuthor("user");
doc.saveToFile(outputFile);
doc.dispose(); 
New feature SPIREDOC-6992 Supports setting "ignore formatting" when doing the comparison.
Document.compare(Document document, String author, CompareOptions options);
Document.compare(Document document, String author, Date date, CompareOptions options);
CompareOptions.setIgnoreFormatting(true); 
Bug SPIREDOC-6723 Fixes the issue that the content format was incorrect after doing the comparison.
Bug SPIREDOC-6738 Fixes the issue that the merged cells were split when converting word document to PDF.
Bug SPIREDOC-6752 Fixes the issue that the table border style was changed after inserting a word document.
Bug SPIREDOC-6768 Fixes the issue that the application threw "java.lang.StackOverflowError" when converting a word document to PDF.
Bug SPIREDOC-6790 Fixes the issue that the application threw "java.lang.IllegalStateException" when loading a word document.
Bug SPIREDOC-6825 Fixes the issue that the content format was incorrect when converting a word document to PDF.
Bug SPIREDOC-6867 Fixes the issue that the application threw "No have this FieldType" when loading a word document.
Bug SPIREDOC-6872 Fixes the issue that the content format was changed after repplacing a document.
Bug SPIREDOC-6878 Fixes the issue that the application was hanging when converting a word document to PDF.
Bug SPIREDOC-6903 Fixes the issue that the TOC field was updated failed.
Bug SPIREDOC-6904 Fixes the issue that the application threw "incomplete dynamic bit lengths tree" when loading a word document.
Bug SPIREDOC-6909 Fixes the issue that the margins were incorrect when copying a section of the merged document to a new document.
Bug SPIREDOC-6920 Fixes the issue that the content was overlapped when converting a word document to PDF.
Bug SPIREDOC-6931 Fixes the issue that the list text obtained being incorrect.
Bug SPIREDOC-6983 Fixes the issue that the content was incorrect when converting a word document to PDF.
Bug SPIREDOC-7010 Fixes the issue that the watermark text was displayed incorrectly when converting a word document to PDF.
Bug SPIREDOC-7028 Fixes the issue that the application threw "IllegalArgumentException" when converting a word document to PDF.
Bug SPIREDOC-7055 Fixes the issue that the content was incorrect after accepting Changes.
Click the link to download Spire.Doc for Java 4.12.1: