提供3000多款全球软件/控件产品
针对软件研发的各个阶段提供专业培训与技术咨询
根据客户需求提供定制化的软件开发服务
全球知名设计软件,显著提升设计质量
打造以经营为中心,实现生产过程透明化管理
帮助企业合理产能分配,提高资源利用率
快速打造数字化生产线,实现全流程追溯
生产过程精准追溯,满足企业合规要求
以六西格玛为理论基础,实现产品质量全数字化管理
通过大屏电子看板,实现车间透明化管理
对设备进行全生命周期管理,提高设备综合利用率
实现设备数据的实时采集与监控
利用数字化技术提升油气勘探的效率和成功率
钻井计划优化、实时监控和风险评估
提供业务洞察与决策支持实现数据驱动决策
原创|产品更新|编辑:李显亮|2020-07-06 11:34:12.450|阅读 232 次
概述:Aspose.Words for .Net更新至新版本v20.7,添加了新节点以处理多节结构化文档标签,改进了SmartArt冷渲染的性能,RevisionOptions类扩展了新的属性,欢迎下载体验。
# 慧都年终大促·界面/图表报表/文档/IDE等千款热门软控件火热促销中 >>
七月已至,.NET版Aspose.Words也为大家带来了7月的新版本!Aspose.Words for .Net是一种高级Word文档处理API,用于执行各种文档管理和操作任务。API支持生成,修改,转换,呈现和打印文档,而无需在跨平台应用程序中直接使用Microsoft Word。
主要特点如下:
>>你可以点击这里下载Aspose.Words for .NET v20.7测试体验
key | 概述 | 类别 |
---|---|---|
WORDSNET-9500 | 国际字符(泰米尔语)不能正确地从MHTML转换为PDF | 新功能 |
WORDSNET-7150 | SDT控件在打开/保存过程中丢失 | 新功能 |
WORDSNET-9501 | 国际字符(泰卢固语)未正确从MHTML转换为PDF | 新功能 |
WORDSNET-5713 | 包含分节符的StructuredDocumentTag在加载时丢失 | 新功能 |
WORDSNET-20589 | PDF到DOCX-脚注 | 新功能 |
WORDSNET-20480 | 提供属性以在邮件合并期间启用“严格MS Word行为合规性” | 新功能 |
WORDSNET-9908 | 通过分节符保留RichText内容控件 | 新功能 |
WORDSNET-6773 | 设置AllowBreakAcrossPages = False时截断大于页面大小的行内容 | 增强功能 |
WORDSNET-20415 | 通过轨道更改将DOCX转换为PDF时保持修订条 | 增强功能 |
WORDSNET-18609 | 一行移至PDF的上一页 | 增强功能 |
/// <summary>
/// Gets or sets a value indicating whether the <see cref="PageSetup.SectionStart"/> of the first document section and its copies for subsequent data source rows
/// are retained during mail merge or updated according to MS Word behaviour.
/// </summary>
/// <remarks>
/// The default value is <b>true</b>.
/// </remarks>
public
bool
RetainFirstSectionStart {
get
;
set
; }
用例:
Document document = new Document(path); document.MailMerge.RetainFirstSectionStart = false; document.MailMerge.Execute(dataSource);
/// <summary>
/// Allows to specify the measurement unit for revision comments.
/// Default value for this property is <see cref="MeasurementUnits.Centimeters"/>
/// </summary>
public
MeasurementUnits MeasurementUnit
另外,添加了新的公共枚举:
/// <summary>
/// Specifies a the unit of measurement.
/// </summary>
public
enum
MeasurementUnits
{
/// <summary>
/// Inches.
/// </summary>
Inches = 0,
/// <summary>
/// Centimeters.
/// </summary>
Centimeters = 1,
/// <summary>
/// Millimeters.
/// </summary>
Millimeters = 2,
/// <summary>
/// Points.
/// </summary>
Points = 3,
/// <summary>
/// Picas (commonly used in traditional typewriter font spacing).
/// </summary>
Picas = 4
}
用例:
Document doc = new Document(myDir +"Input.docx"); doc.LayoutOptions.RevisionOptions.MeasurementUnit = MeasurementUnits.Inches; doc.LayoutOptions.RevisionOptions.ShowInBalloons = ShowInBalloons.FormatAndDelete; doc.LayoutOptions.ShowComments = true; doc.Save(myDir +"Output.pdf");
/// <summary>
/// Gets or sets rendering position of revision bars.
/// Default value is <see cref="HorizontalAlignment.Outside"/>.
/// </summary>
/// <remarks>Values of <see cref="HorizontalAlignment.Center"/> and <see cref="HorizontalAlignment.Inside"/>
/// are not allowed and will cause <see cref="ArgumentOutOfRangeException"/>.</remarks>
用例:
Document doc = new Document(myDir +"Input.docx"); //Renders revision bars on the right side of a page. doc.LayoutOptions.RevisionOptions.RevisionBarsPosition = HorizontalAlignment.Right; doc.Save(myDir +"Output.pdf");
public
class
StructuredDocumentTagRangeStart : Node
{
/// <summary>
/// Gets the type of this node.
/// </summary>
public
NodeType NodeType {
get
; }
/// <summary>
/// Gets the level at which this <b>SDT range start</b> occurs in the document tree.
/// </summary>
public
MarkupLevel Level {
get
; }
/// <summary>
/// Gets type of this <b>Structured document tag</b>.
/// </summary>
public
SdtType SdtType {
get
; }
/// <summary>
/// <para>Specifies a unique read-only persistent numerical Id for this <b>SDT</b>.</para>
/// </summary>
public
int
Id {
get
; }
/// <summary>
/// When set to true, this property will prohibit a user from deleting this <b>SDT</b>.
/// </summary>
public
bool
LockContentControl {
get
; }
/// <summary>
/// When set to true, this property will prohibit a user from editing the contents of this <b>SDT</b>.
/// </summary>
public
bool
LockContents {
get
; }
/// <summary>
/// Specifies whether the content of this <b>SDT</b> shall be interpreted to contain placeholder text
/// (as opposed to regular text contents within the SDT).
/// </summary>
public
bool
IsShowingPlaceholderText {
get
; }
/// <summary>
/// Specifies a tag associated with the current SDT node.
/// </summary>
public
string
Tag {
get
; }
/// <summary>
/// Specifies the friendly name associated with this <b>SDT</b>.
/// </summary>
public
string
Title {
get
; }
/// <summary>
/// Specifies end of range if the StructuredDocumentTag is a ranged structured document tag.
/// </summary>
public
StructuredDocumentTagRangeEnd RangeEnd {
get
; }
}
public
class
StructuredDocumentTagRangeEnd : Node
{
/// <summary>
/// Gets the type of this node.
/// </summary>
public
NodeType NodeType {
get
; }
/// <summary>
/// Specifies a unique read-only persistent numerical Id for this structured document tag node.
/// Corresponding range start node has the same Id.
/// </summary>
public
int
Id {
get
; }
}
用例:
Document doc = new Document("document containing multi-section SDT"); Listtags = doc.GetChildNodes(NodeType.StructuredDocumentTagRangeStart, true).ToList(); foreach(StructuredDocumentTagRangeStart tag in tags) Console.WriteLine(tag.Title);
本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至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全新发布,新版本增强并增加了编辑、修改等多个操作体验,欢迎下载最新版试用~
服务电话
重庆/ 023-68661681
华东/ 13452821722
华南/ 18100878085
华北/ 17347785263
客户支持
技术支持咨询服务
服务热线:400-700-1020
邮箱:sales@cahobeh.cn
关注我们
地址 : 重庆市九龙坡区火炬大道69号6幢