News & Releases
|
Spire.Doc 8.12.14 supports getting the compared differences between two Word documents
We are happy to announce the release of Spire.Doc 8.12.14. This version supports getting the compared differences between two Word documents as well as supports obtaining the author and date time of revisions. At the same time, it additionally enhances the conversion from Word to PDF and fixes the issue occurred in the course of cloning documents. More details are given below.
Here is a list of changes made in this release
Category | ID | Description |
New Feature | SPIREDOC-4965 | Supports getting the differences compared between two Word documents. |
New Feature | SPIREDOC-4965 | Supports obtaining author and date time of revisions.
Document doc1 = new Document(); doc1.LoadFromFile("C:/1.docx"); Document doc2 = new Document(); doc2.LoadFromFile("C:/2.docx"); doc1.Compare(doc2, "spire.support"); foreach (Section sec in doc1.Sections) { foreach (DocumentObject docItem in sec.Body.ChildObjects) { if (docItem is Paragraph) { Paragraph para = docItem as Paragraph; if (para.IsInsertRevision) { EditRevision insRevison = para.InsertRevision; EditRevisionType insType = insRevison.Type; string insAuthor = insRevison.Author; DateTime insDateTime = insRevison.DateTime; } else if (para.IsDeleteRevision) { EditRevision delRevison = para.DeleteRevision; EditRevisionType delType = delRevison.Type; string delAuthor = delRevison.Author; DateTime delDateTime = delRevison.DateTime; } foreach (ParagraphBase paraItem in para.ChildObjects) { if (paraItem.IsInsertRevision) { EditRevision insRevison = paraItem.InsertRevision; EditRevisionType insType = insRevison.Type; string insAuthor = insRevison.Author; DateTime insDateTime = insRevison.DateTime; } else if (paraItem.IsDeleteRevision) { EditRevision delRevison = paraItem.DeleteRevision; EditRevisionType delType = delRevison.Type; string delAuthor = delRevison.Author; DateTime delDateTime = delRevison.DateTime; } } } } } //Get the difference about revisions DifferRevisions differRevisions = new DifferRevisions(doc1); doc1.SaveToFile("C:/result.docx", FileFormat.Docx); |
Bug | SPIREDOC-4223 | Fixes the issue that the content was incorrect when filling Html content into the merged fields. |
Bug | SPIREDOC-4962 | Fixes the issue that there are problems with math-equations when opening generated Word document with MS Word. |
Bug | SPIREDOC-5214 | Fixes the issue that the style was missing when cloning document. |
Bug | SPIREDOC-5324 | Fixes the issue that some content was incorrect when converting Word containing Arabic characters to PDF. |
Bug | SPIREDOC-5349 | Fixes the issue that math-equations became pictures when converting Doc to Docx. |
Bug | SPIREDOC-5367 | Fixes the issue that the content of the generated TOC was inconsistent with the outline. |
Bug | SPIREDOC-4621 | Fixes the issue that "-" glyph was missing when converting Word to PDF. |
Bug | SPIREDOC-4374 | Fixes the issue that the content was inconsistent when converting Word to PDF. |
Click the link to download Spire.Doc 8.12.14:
More information of Spire.Doc new release or hotfix: