提供3000多款全球软件/控件产品
针对软件研发的各个阶段提供专业培训与技术咨询
根据客户需求提供定制化的软件开发服务
全球知名设计软件,显著提升设计质量
打造以经营为中心,实现生产过程透明化管理
帮助企业合理产能分配,提高资源利用率
快速打造数字化生产线,实现全流程追溯
生产过程精准追溯,满足企业合规要求
以六西格玛为理论基础,实现产品质量全数字化管理
通过大屏电子看板,实现车间透明化管理
对设备进行全生命周期管理,提高设备综合利用率
实现设备数据的实时采集与监控
利用数字化技术提升油气勘探的效率和成功率
钻井计划优化、实时监控和风险评估
提供业务洞察与决策支持实现数据驱动决策
原创|产品更新|编辑:李显亮|2019-08-23 15:22:06.853|阅读 527 次
概述:Aspose.Words for Java更新至最新版v19.8,选择调用HarfBuzz库(仅在Windows上)以获得更好的字距调整Aspose.Words for Java在Java 12上进行了测试,我们一起来看一看新功能详解吧!
# 慧都年终大促·界面/图表报表/文档/IDE等千款热门软控件火热促销中 >>
Aspose.Words for Java是功能丰富的Word处理API。它允许开发人员在不使用Microsoft Word API的情况下嵌入在自己的Java应用程序中生成,修改,转换,呈现和打印文档的功能,提供访问和操作所有文档元素的格式属性的功能,多种格式的高质量转换,将单个页面或完整文档呈现为不同的文件格式,使用来自各种数据源或业务对象的数据生成报告等等。
Aspose.Words for Java更新至最新版v19.8,选择调用HarfBuzz库(仅在Windows上)以获得更好的字距调整Aspose.Words for Java在Java 12上进行了测试,我们一起来看一看新功能详解吧!>>欢迎下载Aspose.Words for Java v19.8体验
key | 概述 | 类别 |
---|---|---|
WORDSJAVA-1989 | 当外部tiff图像库(JAI)不可用时,使用内部TIFFImageWriter。 | 新功能 |
WORDSJAVA-2111 | 对于FIPS模式下的非FIPS操作,清除FipsUnapprovedOperationException。 | 新功能 |
WORDSJAVA-2122 | 选择调用HarfBuzz库(仅在Windows上)以获得更好的字距调整。 | 新功能 |
WORDSJAVA-2126 | 更新和改进API示例。 | 新功能 |
WORDSJAVA-2137 | 在公共Aspose下载站点上分离Aspose.Words jdk16.jar。 | 新功能 |
WORDSJAVA-2149 | 在Java 12上检查Aspose.Words for Java。 | 新功能 |
WORDSJAVA-2154 | 新的干净的第三方直接从内部FOSS数据库许可PDF文件。 | 新功能 |
WORDSNET-18808 | 分析在docker(Linux)中使用图像转换文档所需的内容 | 新功能 |
WORDSNET-2261 | 渲染/转换为PDF时忽略字距调整选项 | 新功能 |
WORDSJAVA-2093 | 在Java 1.6运行时加载Aspose.Words时会引发异常 | Bug修复 |
WORDSJAVA-2138 | 将RTF保存为PDF时抛出java.lang.OutOfMemoryError | Bug修复 |
· · · · · ·
更多更新细则请参考:【Aspose.Words for Java v19.8更新说明】
添加了新的公开枚举:
////// Allows to specify whether to work with the original or revised version of a document. ///public enum RevisionsView
在Document类中添加了新的公共选项:
////// Gets or sets a value indicating whether to work with the original or revised version of a document. ///////// The default value is . ///public RevisionsView RevisionsView
如何访问文档的修订版本:
Document doc = new Document(@"test.docx"); doc.UpdateListLabels(); // Switch to the revised version of the document. doc.RevisionsView = RevisionsView.Final; foreach (Revision revision in doc.Revisions) { if (revision.ParentNode.NodeType == NodeType.Paragraph) { Paragraph paragraph = (Paragraph)revision.ParentNode; if (paragraph.IsListItem) { // Print revised version of LabelString and ListLevel. Console.WriteLine(paragraph.ListLabel.LabelString); Console.WriteLine(paragraph.ListFormat.ListLevel); } } }
ChartDataLabelCollection类中添加了以下新公共属性:
////// Allows to specify whether category name is to be displayed for the data labels of the entire series. /// Default value is false. ///////// Value defined for this property can be overridden for an individual data label with using the ///property. ///public bool ShowCategoryName { get; set; } ////// Allows to specify whether bubble size is to be displayed for the data labels of the entire series. /// Applies only to Bubble charts. /// Default value is false. ///////// Value defined for this property can be overridden for an individual data label with using the ///property. ///public bool ShowBubbleSize { get; set; } ////// Allows to specify whether legend key is to be displayed for the data labels of the entire series. /// Default value is false. ///////// Value defined for this property can be overridden for an individual data label with using the ///property. ///public bool ShowLegendKey { get; set; } ////// Allows to specify whether percentage value is to be displayed for the data labels of the entire series. /// Default value is false. ///////// Value defined for this property can be overridden for an individual data label with using the ///property. ///public bool ShowPercentage { get; set; } ////// Returns or sets a Boolean to indicate the series name display behavior for the data labels of the entire series. /// True to show the series name. False to hide. By default false. ///////// Value defined for this property can be overridden for an individual data label with using the ///property. ///public bool ShowSeriesName { get; set; } ////// Allows to specify whether values are to be displayed in the data labels of the entire series. /// Default value is false. ///////// Value defined for this property can be overridden for an individual data label with using the ///property. ///public bool ShowValue { get; set; } ////// Allows to specify whether data label leader lines need be shown for the data labels of the entire series. /// Default value is false. /////////Applies to Pie charts only. /// Leader lines create a visual connection between a data label and its corresponding data point.///Value defined for this property can be overridden for an individual data label with using the ///property.///public bool ShowLeaderLines { get; set; } ////// Allows to specify whether values from data labels range to be displayed in the data labels of the entire series. /// Default value is false. ///////// Value defined for this property can be overridden for an individual data label with using the ///property. ///public bool ShowDataLabelsRange { get; set; } ////// Gets or sets string separator used for the data labels of the entire series. /// The default is a comma, except for pie charts showing only category name and percentage, when a line break /// shall be used instead. ///////// Value defined for this property can be overridden for an individual data label with using the ///property. ///public string Separator { get; set; } ////// Gets aninstance allowing to set number format for the data labels of the /// entire series. ///public ChartNumberFormat NumberFormat { get; set; }
使用案例:
Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); Shape shape = builder.InsertChart(ChartType.Pie, 432, 252); Chart chart = shape.Chart; chart.Series.Clear(); ChartSeries series = chart.Series.Add("Series 1", new string[] { "Category1", "Category2", "Category3" }, new double[] { 2.7, 3.2, 0.8 }); ChartDataLabelCollection labels = series.DataLabels; labels.ShowPercentage = true; labels.ShowValue = true; labels.ShowLeaderLines = false; labels.Separator = " - "; doc.Save(dir + "Demo.docx");
*Aspose.Words现已加入“8月省钱式嗨购”,满额即送office 365正版授权,想要购买Aspose.Words正版授权的朋友可了解详情哦~
ASPOSE技术交流QQ群(642018183)已开通,各类资源及时分享,欢迎交流讨论!
扫描关注“慧聚IT”微信公众号,及时获取更多产品最新动态及最新资讯
本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@cahobeh.cn
知名C/C++开发工具CLion全新发布v2024.3,新版本新语言引擎有显著改进等,欢迎下载新版体验!
强大的VS插件CodeRush已正式发布v24.2.3,新版本现在可以运行xUnit.Net v3测试等,欢迎下载最新版体验!
Spire.PDF 10.12.4 最新版本支持在进行多页打印时设置自动旋转方向。同时,一些已知问题也在本次更新中被成功修复,例如打印 PDF 文档时内容丢失的问题,欢迎下载体验~
日程安排控件dhtmlxScheduler v7.2全新发布,新版本增强并增加了编辑、修改等多个操作体验,欢迎下载最新版试用~
无需Microsoft Word也可在任何平台上满足Word文档的一切操作需求。
Aspose.Words for Java可用于基于Java SE或EE的桌面,Web或任何种类应用程序的Native Java API。
服务电话
重庆/ 023-68661681
华东/ 13452821722
华南/ 18100878085
华北/ 17347785263
客户支持
技术支持咨询服务
服务热线:400-700-1020
邮箱:sales@cahobeh.cn
关注我们
地址 : 重庆市九龙坡区火炬大道69号6幢