This is the list of changelogs of Spire.Doc New release and hotfix. You can get the detail information of each version's new features and bug solutions.

Download Spire.Doc to start a free trial:

Hot Fix Version: 11.11.8

Category ID Description
New feature - Publicizes the enumeration Spire.Doc.Publics.Drawing.FontStyle.
New feature - Changes the namespace of the "FontStyle" in the "PrivateFontPath" structure to "Spire.Doc.Publics.Drawing".
Instructions:
Changes the method "public PrivateFontPath(string fontName, System.Drawing.FontStyle fontStyle, string fontPath)" to "public PrivateFontPath(string fontName, Spire.Doc.Publics.Drawing.FontStyle fontStyle, string fontPath)".
Changes the method "public PrivateFontPath(string fontName, System.Drawing.FontStyle fontStyle, string fontPath, bool useArabicConcatenationRules)" to "public PrivateFontPath(string fontName, Spire.Doc.Publics.Drawing.FontStyle fontStyle, string fontPath, bool useArabicConcatenationRules)".

Hot Fix Version: 11.11.0

Category ID Description
Bug SPIREDOC-9369 Fixes the issue that the content formatting was incorrect after converting Word to PDF.
Bug SPIREDOC-9456 Fixes the issue that the pagination was incorrect after converting Word to PDF.
Bug SPIREDOC-9594 Fixes the issue that the content was not correct after converting HTML to PDF.
Bug SPIREDOC-9716 Fixes the issue that the program threw System.ArgumentException when converting ODT to PDF.
Bug SPIREDOC-9764 Fixes the issue that the page numbers of the table of contents were incorrectly positioned after merging Word documents and converting them to PDF.
Bug SPIREDOC-9765 Fixes the issue that the formatting of the table of contents was incorrect after merging Word documents and converting them to PDF.
Bug SPIREDOC-9869 Fixes the issue that images were not displayed after converting HTML to PDF.
Bug SPIREDOC-9906 Fixes the issue that the content of OLE objects cloned from RTF documents to Docx documents was not displayed completely.
Bug SPIREDOC-9909 Fixes the issue that the program threw System.InvalidOperationException when converting Word to image/PDF.
Bug SPIREDOC-9923 Fixes the issue that the newly added rows were not aligned after adding new rows to a Word table and converting it to PDF.
Bug SPIREDOC-9924 Fixes the issue that the program threw System.IndexOutOfRangeException when modifying the content of a Word table and converting the document to PDF.
Bug SPIREDOC-9934 Fixes the issue that editing restrictions were lost after saving a Doc format document as a new document.

Hot Fix Version: 11.10.7

Category ID Description
Bug SPIREDOC-9831 Fixes the issue that Thai characters were not aligned and wrapped when converting Word to PDF.

Hot Fix Version: 11.10.3

Category ID Description
New feature - Added the feature of text formatting when converting Word to PDF (mainly for handling Thai characters and Tibetan characters), and support for .NET 4.6.2 and above, .NET Core, and .NET Standard platforms.
Document doc = new Document();
doc.LoadFromFile(fileName);
doc.LayoutOptions.UseHarfBuzzTextShaper = true;
doc.SaveToFile(pdfFileName, Spire.Doc.FileFormat.PDF)

Hot Fix Version: 11.9.19

Category ID Description
Bug SPIREDOC-9455 Fixes the issue that the content was incorrect after adding a footer copied from another document to a document and then converting it to a PDF document.
Bug SPIREDOC-9466 Fixes the issue that extra shapes appeared after loading a document and saving it as a new document.
Bug SPIREDOC-9699 Fixes the issue that the font of a document changed after updating the fields in the document and converting it to PDF.
Bug SPIREDOC-9743 Fixes the issue that extra pictures appeared after loading a document and saving it as a new document.
Bug SPIREDOC-9767 Fixes the issue that recognizing the Latex formula code "therefore" failed.
Bug SPIREDOC-9800 Fixes the issue that the program threw System.StackOverflowException when loading a document.
Bug SPIREDOC-9833 Fixes the issue that the content was garbled after converting Doc documents to PDF documents.
Bug SPIREDOC-9834 Fixes the issue that the program threw System.NullReferenceException when converting Docx documents to PDF documents.
Bug SPIREDOC-9836 Fixes the issue that the program threw System.NullReferenceException when replacing text.
Bug SPIREDOC-9852 Fixes the issue that extra pictures appeared after replacing text and saving the document to PDF.
Bug SPIREDOC-9861 Fixes the issue that the program failed to recognize the "<" MathML format in HTML content.
Bug SPIREDOC-9869 Fixes the issue that pictures were lost after converting an HTML document to a PDF document.
Bug SPIREDOC-9878 Fixes the issue that the symbols were rotated after converting Docx documents to PDF documents.

Hot Fix Version: 11.8.18

Category ID Description
New feature SPIREDOC-9778 Improves the efficiency of document storage.
Bug SPIREDOC-9769 Fixes the issue that the content layout of the result documents generated in .NET 7.0 projects was incorrect.

Hot Fix Version: 11.8.11

Category ID Description
New feature SPIREDOC-9057 Supports converting math formulas to OfficeMathMLCode.
    Document doc = new Document();
            doc.LoadFromFile("1.docx");
            StringBuilder stringBuilder = new StringBuilder();

            foreach (Section section in doc.Sections)
            {
                foreach (Paragraph par in section.Body.Paragraphs)
                {
                    foreach (DocumentObject obj in par.ChildObjects)
                    {
                        OfficeMath omath = obj as OfficeMath;
                        if (omath == null) continue;
                        string mathml = omath.ToOfficeMathMLCode();
                        stringBuilder.Append(mathml);
                        stringBuilder.Append("\r
");
                    }
                }
            }
            File.WriteAllText("1.txt", stringBuilder.ToString());
            doc.Close();
New feature SPIREDOC-9710 Supports adding hyperlinks to images in mail merge.
Document doc = new Document();
                doc.LoadFromFile("Test.docx");
                var fieldNames = new string[] { "MyImage" };
                var fieldValues = new string[] { "logo.png" };

                doc.MailMerge.MergeImageField += new MergeImageFieldEventHandler(MailMerge_MergeImageField);

                doc.MailMerge.Execute(fieldNames, fieldValues);

                doc.SaveToFile("result.docx", FileFormat.Docx);
            }

            void MailMerge_MergeImageField(object sender, MergeImageFieldEventArgs field)
            {
                string filePath = field.FieldValue as string;
                if (!string.IsNullOrEmpty(filePath))
                {
                    field.Image = Image.FromFile(filePath);
                    field.ImageLink = "https://www.e-iceblue.com/";
                }

            }
Bug SPIREDOC-6013 Fixes the issue that loading Word documents threw a System.InvalidOperationException exception.
Bug SPIREDOC-8541 Fixes the issue that converting Word to PDF caused inconsistent pagination.
Bug SPIREDOC-8587 Fixes the issue that converting Word to PDF threw a System.NullReferenceException exception.
Bug SPIREDOC-9197 Fixes the issue that exporting Docx files from Sparrow and converting them to HTML files failed.
Bug SPIREDOC-9213 Fixes the issue that page number fields could not be automatically updated after insertion.
Bug SPIREDOC-9253 Fixes the issue that list characters were displayed incorrectly when converting HTML to Doc.
Bug SPIREDOC-9310 Fixes the issue that line break tags were ignored when converting HTML to Doc.
Bug SPIREDOC-9400 Fixes the issue that logos were lost when converting Docx to PDF.
Bug SPIREDOC-9627 Fixes the issue that loading RTF documents threw a System.NullReferenceException exception.
Bug SPIREDOC-9640 Fixes the issue that the symbol "~" in LaTeX formulas was parsed incorrectly.
Bug SPIREDOC-9641 Fixes the issue that TOC was split across multiple pages when converting Word to PDF.
Bug SPIREDOC-9684 Fixes the issue that images were blurry when converting Docx to HTML.
Bug SPIREDOC-9712 Fixes the issue that extra text appeared when converting Word to PDF.
Bug SPIREDOC-9755 Fixes the issue that content was inconsistent after loading and saving a document.
Bug SPIREDOC-9761 Fixes the issue that the program hung when inserting HTML strings.

Hot Fix Version: 11.8.2

Category ID Description
New feature SPIREDOC-9758 Exposes the AllowOverlap and BehindText properties under the ShapeObject object

Hot Fix Version: 11.7.25

Category ID Description
Bug SPIREDOC-7603 Fixes the issue that the header wrapped after converting Word to PDF.
Bug SPIREDOC-9190 Fixes the issue that hyperlinks were invalid after converting Word to PDF.
Bug SPIREDOC-9422 Fixes the issue that the content layout was wrong after converting Word to PDF.
Bug SPIREDOC-9471 Fixes the issue that updating the page number of the table of contents did not take effect.
Bug SPIREDOC-9463 Fixes the issue that the populated field value had extra "\r" at the end.
Bug SPIREDOC-9495 Fixes the issue that the populated values of mail merge fields were updated incorrectly.
Bug SPIREDOC-9515 Fixes the issue that formulas were displayed incorrectly after converting HTML to Word.
Bug SPIREDOC-9524 Fixes the issue that the content was lost after loading a document and saving it as a new document.
Bug SPIREDOC-9558 Fixes the issue that inequality signs were not correctly parsed after adding Latex formulas.
Bug SPIREDOC-9563 Fixes the issue that parallel symbols were not correctly parsed after adding Latex formulas.
Bug SPIREDOC-9564 Fixes the issue that vector symbols were not correctly positioned after adding Latex formulas.

Hot Fix Version: 11.7.0

Category ID Description
New feature SPIREDOC-3548 Supports setting the number of characters for the first line indent.
paragraph.ParagraphFormat.FirstLineIndentChars = value;
Positive value: sets first-line indentation
Negative value: sets hanging indentation
When value is 0, using paragraph.Format.SetFirstLineIndentChars(0) method.
New feature SPIREDOC-4467 Supports locking the aspect ratio of text boxes.
textBox.AspectRatioLocked = true; //The aspect ratio is not locked by default when a text box is added
New feature SPIREDOC-7850 Supports locking the aspect ratio of images.
picture.AspectRatioLocked = true; // The aspect ratio is locked by default when a picture is added
New feature SPIREDOC-9137 Adds the static method FromEqField() to OfficeMath for converting EQField to OfficeMath.
Bug SPIREDOC-3366 Fixes the issue that when setting the width of pictures with auto-lock aspect ratio, the height would not be adjusted accordingly.
Bug SPIREDOC-7839 Fixes the issue that the "Object reference not set to an instance of an object" exception was thrown when converting Word to PDF.
Bug SPIREDOC-8340 Fixes the issue that the System.ArgumentOutOfRangeException exception was thrown when converting Word to PDF.
Bug SPIREDOC-9341 Fixes the issue that mail merge fields' values were not updated correctly.
Bug SPIREDOC-9371 Fixes the issue that the "System.NullReferenceException" exception was thrown when comparing documents.
Bug SPIREDOC-9450 Fixes the issue that the value obtained before and after a paragraph was incorrect.
Bug SPIREDOC-9525 Fixes the issue that the System.InvalidOperationException exception was thrown when comparing a Dotm document with a Docx document.

e-iceblue