Word功能开发控件 Aspose.Words for .NET更新至19.4,添加将边框添加到DML形状等新功能,修复多个bug。
Aspose.Words无需Microsoft Word 也可在任何平台上满足Word文档的一切操作需求。2019年4月Aspose.Words发布v19.4,以下是v19.4更新说明:
Aspose.Words 19.4试用版下载>>>
| key | 概述 | 类别 | 
|---|---|---|
| WORDSNET-14095 | 将边框添加到DML形状 | 新功能 | 
| WORDSNET-18027 | DOCX导出到PDF – 打印文本中字符之间的间隙可调 | 新功能 | 
| WORDSNET-17996 | 提供API以更改文本在文本框中垂直对齐的方式 | 新功能 | 
| WORDSNET-17534 | NodeImporter. ListFormat未导入 | bug修复 | 
| WORDSNET-18107 | 将DOCX保存为PDF时,Document.Save方法不停止 | bug修复 | 
| WORDSNET-9890 | 标题中带有垂直文本的TextBox不会保留在PDF中 | bug修复 | 
| WORDSNET-15523 | 将.docx转换为.pdf时图像丢失 | bug修复 | 
| WORDSNET-17951 | 在DOCX-> HTML-> DOCX转换后,不保留空段落的字体格式 | bug修复 | 
| WORDSNET-18189 | DocumentBuilder.insertHtml在换行前插入额外的空格 | bug修复 | 
| WORDSNET-18231 | 加载DOC时抛出Aspose.Words.FileCorruptedException | bug修复 | 
| WORDSNET-18296 | 将DOC转换为PDF时发生System.NullReferenceException | bug修复 | 
| WORDSNET-17894 | 不保存具有绝对路径但没有格式的图像 | bug修复 | 
| WORDSNET-18363 | 在某些情况下,评论的内容无法突出显示 | bug修复 | 
| WORDSNET-18263 | 将DOCX保存为HTML / PDF时抛出System.IndexOutOfRangeException | bug修复 | 
| WORDSNET-17821 | 转换为PDF后,第二个垂直轴的缩放比例不正确 | bug修复 | 
| … | … | … | 
公共API和向后不兼容的更改
添加了一个新的ImportFormatOptions类,可以更灵活地控制导入任务
相关问题:WORDSNET-14397现已解决。
添加了一个新的ImportFormatOptions类,只有一个公共属性SmartStyleBehavior:
/// <summary>/// Allows to specify various import options to format output./// </summary>public class ImportFormatOptions{  /// <summary>  /// Smart style behavior.  /// Default value is <c>false</c>.  /// </summary>  public bool SmartStyleBehavior}
当导入样式发生冲突时,此选项开始工作。
启用此选项后,如果使用KeepSourceFormatting导入模式,源样式将扩展为目标文档中的直接属性。
禁用此选项后,只有在编 时才会展开源样式。不会覆盖现有目标属性,包括列表。
此选项暂时只能用于DocumentBuilder类的新公共方法:
/// <summary>/// Inserts a document at the cursor position./// </summary>public Node InsertDocument(Document srcDoc, ImportFormatMode importFormatMode, ImportFormatOptions options)
用例:
Document srcDoc = new Document("source.docx");Document dstDoc = new Document("destination.docx");  DocumentBuilder builder = new DocumentBuilder(dstDoc);builder.MoveToDocumentEnd();builder.InsertBreak(BreakType.PageBreak);  ImportFormatOptions options = new ImportFormatOptions();options.SmartStyleBehavior = true;builder.InsertDocument(srcDoc, ImportFormatMode.UseDestinationStyles, options);
添加了公共属性PdfSaveOptions.AdditionalTextPositioning
相关问题:WORDSNET-18027现已解决。
PdfSaveOptions类中添加了以下新属性:
/// <summary>/// A flag specifying whether to write additional text positioning operators or not./// </summary>/// <remarks>/// <para>/// If <c>true</c>, additional text positioning operators are written to the output PDF. This may help to overcome/// issues with inaccurate text positioning with some printers. The downside is the increased PDF document size./// </para>/// <para>The default value is <c>false</c>.</para>/// </remarks>public bool AdditionalTextPositioning{    get { return mAdditionalTextPositioning; }    set { mAdditionalTextPositioning = value; }}
点击查看Aspose.Words for .NET 19.4完整更新内容
想要购买正版授权,或者获取更多Aspsoe.words相关信息的朋友可以点击” 咨询在线客服 “~
标签:文档管理wordAspose.words文档处理
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!