2020新年首更!Java版Word处理控件Aspose.Words最新支持用于Web扩展的Java文档

很高兴与大家分享Java平台的Aspose.Words迎来了2020新年第一次更新,该版本具有.NET版同样的5大新功能体验,同时还独具3大新功能,包括从PostgreSQL BlobInputStream加载文档、JavaDoc for WebExtensions以及渲染包含图标和图标标题的EMF文件。

主要特点

  • 在脚注中实现了对段落规则的支持。
  • 公开了获取/设置浮动表位置的API。
  • 实现了检查VbaProject是否已签名的功能。
  • 添加了在使用InsertOleObject时插入IconCaption的功能。
  • 支持LINQ Reporting Engine的动态书签插入。

具体更新内容

key 概述 类别
WORDJAVA-2248 研究从PostgreSQL BlobInputStream加载文档。 新功能
WORDJAVA-2280 JavaDoc for WebExtensions 新功能
WORDJAVA-2286 渲染包含图标和图标标题的EMF文件。 新功能
WORDSNET-12444 支持API检查VBAcode是否已签名 新功能
WORDSNET-12204 添加功能以设置/获取浮动表的位置 新功能
WORDSNET-19648 使用LINQ Reporting Engine创建书签 新功能
WORDSNET-11833 添加功能以在使用InsertOleObject时插入IconCaption 新功能
WORDSNET-19366 在使用InsertOleObject时插入IconCaption的功能 新功能
WORDSNET-18818 使DML图像渲染对具有损坏的SVG扩展名的图像具有弹性 增强功能
WORDSNET-19498 内容已推送到PDF的前一页 增强功能
WORDSNET-11110 表格布局的DOC至PDF转换问题 增强功能

完整更新细则请参考:【Aspose.Words for Java v20.1更新说明】

用于浮动表属性的设置器

为以下表格属性添加了设置器:RelativeHorizontalAlignmentAbsoluteHorizontalDistanceRelativeVerticalAlignmentAbsoluteVerticalDistance。这些属性允许设置浮动表的位置。

用例:

Document doc = new Document("some doc");Table table = document.FirstSection.Body.Tables[0];table.AbsoluteHorizontalDistance = 10; // sets absolute table horizontal position at 10pt.table.RelativeVerticalAlignment = VerticalAlignment.Center; // sets vertical table position to center of entity specified by Table.VerticalAnchor.

添加功能以在使用InsertOleObject时插入IconCaption并更正图标

新的公共方法已添加到DocumentBuilder类中:

/// <summary>/// Inserts an embedded or linked OLE object as icon into the document./// Allows to specify icon file and caption. Detects OLE object type using file extension./// </summary>/// <param name="fileName">Full path to the file.</param>/// <param name="isLinked">/// If true then linked OLE object is inserted otherwise embedded OLE object is inserted./// </param>/// <param name="iconFile">/// Full path to the ICO file./// If the value is null or the ICO file is not readable, Aspose.Words will use a predefined image./// </param>/// <param name="iconCaption">Icon caption.</param>/// <returns>Shape node containing Ole object and inserted at the current Builder position.</returns>publicShape InsertOleObjectAsIcon(stringfileName,boolisLinked,stringiconFile,stringiconCaption)

用例。说明如何将嵌入式或链接的OLE对象作为图标插入文档:

Document doc = new Document();DocumentBuilder builder = new DocumentBuilder(doc);Shape shape = builder.InsertOleObjectAsIcon("C:\embedded.xlsx", false, "C:\icon.ico", "My embedded file");doc.Save("C:\output.docx");

还想要更多吗可以点击阅读【2019 · Aspose最新资源整合】查找需要的教程资源。如果您有任何疑问或需求,请随时联系客服,我们很高兴为您提供查询和咨询
标签:

来源:慧都

声明:本站部分文章及图片转载于互联网,内容版权归原作者所有,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2020年1月4日
下一篇 2020年1月4日

相关推荐

发表回复

登录后才能评论