Spire.Spreadsheet

Spire.Doc 7.6.5 supports adding Latex math code and enhances conversion effect from Word to PDF

We are pleased to announce the release of Spire.Doc 7.6.5. This version adds two new features ,including supporting adding latex math code in Word and setting MailMergeMainDocumentType as NotAMergeDocument. Besides, a series of issues that occurred when converting Word to PDF, HTML to ODT and XML to .docx format file are fixed. See the content below for more details.

New Features:

  • Supports adding Latex math code to Word.
  • Document doc = new Document();
     Section section = doc.AddSection();
     Paragraph paragraph = section.AddParagraph();
     OfficeMath officeMath = new OfficeMath(doc);
     paragraph.Items.Add(officeMath); 
     officeMath.FromLatexMathCode("x^{2}+\\sqrt{x^{2}+1}=2");
     doc.SaveToFile("latexToDoc.docx", FileFormat.Docx);
    
  • Supports setting MailMergeMainDocumentType as NotAMergeDocument to make the Word as non-mailmerge document when doing MailMerge.
  • document.MailMerge.MailMergeMainDocumentType = MailMergeMainDocumentType.NotAMergeDocument;
    

Bug Fixes:

  • Fixes the issue that the text overlapped after converting Word to PDF.
  • Fixes the issue that using PS method to do conversion from Word to PDF in multi-thread took more time than single thread.
  • Fixes the issue that incorrect format was caused after merging Word files.
  • Fixes the issue that the application hung when executing SaveToImages method.
  • Fixes the issue that there was extra columns when opening the generated ODT by LibreOffice 6.2.3 after converting HTML to ODT.
  • Fixes the issue that the application threw "Items with the same key have been added" when merging Word files.
  • Fixes the issue that incorrect content format was caused after converting XML to Docx.
  • Fixes the issue that overlapped table was caused after converting Word to PDF.
  • Fixes the issue that getting FieldValue and ImageFileName of ImageMergeField had differences between old version and new version.
  • Fixes the issue that the application threw NullReferenceException when converting Word to PDF.
  • Fixes the issue that the application threw “The value is too large or too small for Int32” when loading Word.
  • Fixes the issue that incorrect header was caused after modifying .doc file which was generated by Spire.Doc.

Click the link to download Spire.Doc 7.6.5 :
More information of Spire.Doc new release or hotfix: