Spire.Doc 7.6.5已正式发布。该版本新增了两个功能,即,支持在Word中添加Latex数学公式代码以及操作文档时新增了设置MailMergeMainDocumentType为NotAMergeDocument。此外,也修复了将Word转为PDF、HTML转为ODT以及XML 转为 .docx格式的文件时,出现的一系列问题。新功能及问题修复详情,请查阅以下内容。 新功能: 支持添加Latex数学公式代码到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); 支持设置MailMergeMainDocumentType为NotAMergeDocument以使Word文档为非邮件合并文档 document.MailMerge.MailMergeMainDocumentType = MailMergeMainDocumentType.NotAMergeDocument; 问题修复: 修复了转换Word到PDF文本重叠的问题 修复了在多线程中使用PS转换Word到PDF耗时比单线程多的问题 修复了合并Word文档格式错误的问题…