文档控件Aspose.Words for .NET 23.3 发行说明

Aspose.Words 是一种高级Word文档处理API,用于执行各种文档管理和操作任务。API支持生成,修改,转换,呈现和打印文档,而无需在跨平台应用程序中直接使用Microsoft Word。此外,

Aspose API支持流行文件格式处理,并允许将各类文档导出或转换为固定布局文件格式和最常用的图像/多媒体格式。

Aspose.words 最新下载(qun:761297826)icon-default.png?t=N176https://www.evget.com/product/4116/download

主要特点

这个每月定期发布的版本中有 78 项改进和修复。最值得注意的是:

  • 用于处理填充颜色的扩展公共属性集。
  • 使用适用于 .NET Standard 的 SkiaSharp 本机着色器实现径向渐变渲染。
  • 添加了对条形图渲染的 InvertIfNegative 属性的支持。
  • 实现了 MOBI 和 AZW3 格式的保存进度通知。
  • 添加了指定是否在文档导入时自动调整句子和单词间距的功能。

涵盖此版本中所有更改的完整问题列表

钥匙概括类别
WORDSNET-24975添加确定是否为内联节点和段落分隔符覆盖字体颜色的功能新功能
WORDSNET-24867LINQ 报告引擎 - 柱形图不支持负值的不同颜色新功能
WORDSNET-24960允许 API 中的 ImportFormatOptions.AdjustSentenceAndWordSpacing 选项新功能
WORDSNET-24673提供公共 API 来操作图表网格线新功能
WORDSNET-24442添加 Fill.ThemeColor 选项新功能
WORDSNET-24453实施插件许可证支持新功能
WORDSNET-24922使用适用于 .NET Standard 的 SkiaSharp 本机着色器实现径向渐变渲染新功能
WORDSNET-24900保存到 MOBI 时启用 SaveOptions.ProgressCallback新功能
WORDSNET-24899保存到 AZW3 时启用 SaveOptions.ProgressCallback新功能
WORDSNET-24853使用 XPS 径向渐变画笔将径向渐变渲染到 XPS 中新功能
WORDSNET-18312为生成的 AZW3 文档添加导航新功能
WORDSNET-4769考虑在导出为 HTML 格式时保留 TOC 格式新功能
WORDSNET-19867在 Word 到 HTML 到 Word 的往返过程中保留目录页码新功能
WORDSNET-24865不支持的 BMP - 加载 HTML 后不显示图像强化
WORDSNET-24934图元文件上的文本呈现不正确漏洞
WORDSNET-24927XHTML 到 PDF 的转换问题漏洞
WORDSNET-24858渲染后符号重叠漏洞
WORDSNET-24871附加数据点呈现在折线图中漏洞
WORDSNET-24881更新 STYLEREF 字段时不处理捷克语本地化标题样式名称漏洞
WORDSNET-24550使用修订呈现文本后字体大小不正确漏洞
WORDSNET-24884转换为 HTML 后文本方向变为垂直漏洞
WORDSNET-24891图元文件在 .NET Standard 中呈现不正确漏洞
WORDSNET-24836无法打开 PDF 文件漏洞
WORDSNET-24845图像在 Aspose.Words 的 .NET Standard 版本中呈现不正确漏洞
WORDSNET-24857渲染后符号之间的间距不正确漏洞
WORDSNET-24674InsertField 方法在使用 IF 字段时抛出 NullReferenceException漏洞
WORDSNET-24680加载加密 DOCX 文档时抛出 FileCorruptedException漏洞
WORDSNET-24394渲染希伯来文文档时产生多余的空白页漏洞
WORDSNET-24947当段落在 SDT 内时删除段落失败漏洞
WORDSNET-24561将 OfficeMath 转换为字符串后性能显着下降漏洞
WORDSNET-24969HTML 到 MD:反斜杠附加在结果文件中的图像名称中漏洞
WORDSNET-24767包含合并单元格的表格被错误识别漏洞
WORDSNET-16879GroupShape 无法以固定文件格式正确呈现漏洞
WORDSNET-24815加载 RTF 文档时抛出 FileCorruptedException漏洞
WORDSNET-24832不渲染“薄”元素的效果漏洞
WORDSNET-24988比较显示错误的文档修订漏洞
WORDSNET-24957页脚显示比较文档后的删除修订漏洞
WORDSNET-25009加载 DOC 文档时抛出 FileCorruptedException漏洞
WORDSNET-24754文档比较删除突出显示的文本漏洞
WORDSNET-25036比较文档时抛出 NullReferenceException漏洞
WORDSNET-25047调用 UpdatePageLayout 时抛出 ArgumentNullException漏洞
WORDSNET-25065加载 DOCX 文档时抛出 FileCorruptedException漏洞
WORDSNET-23195保存到 Iso29500_2008_Strict DOCX 后文档中缺少水印图像漏洞
WORDSNET-24910Aspose.Words 不包含带编号的空标题段落到目录中漏洞
WORDSNET-24264不渲染应用于网格线的效果漏洞
WORDSNET-24921内容被下推并与脚注重叠漏洞
WORDSNET-24928导入 PDF 文档后颜色反转漏洞
WORDSNET-24936Doted 背景呈现在图元文件中漏洞
WORDSNET-24615加载 MHTML 时出现 FileCorruptedException漏洞
WORDSNET-24939转换 DOCX 时出现 NullReferenceException漏洞
WORDSNET-23801未呈现趋势线标签漏洞
WORDSNET-24061PDF转换中图片背后的文字漏洞
WORDSNET-24075列表项选项卡渲染得比需要的大漏洞
WORDSNET-23832渲染后列表制表位不正确漏洞
WORDSNET-24633部分 TC 字段在转换为 RTF 后变得可见漏洞
WORDSNET-24883允许从公共 API 创建 DML 形状漏洞
WORDSNET-24952打开/保存文档后更改形状位置和大小漏洞
WORDSNET-24954HTML 到 MD:目录不会导致内容漏洞
WORDSNET-24658PdfCompositeEncodingConvertor 抛出 ArgumentOutOfRangeException漏洞
WORDSNET-24659在字体回退的情况下,SVG 中的阿拉伯文本呈现不准确漏洞
WORDSNET-25011加载文档时出现问题漏洞
WORDSNET-25013HTM 加载问题漏洞
WORDSNET-25027ReportingEngine,在读取文档中的异步方法时抛出异常漏洞
WORDSNET-24971标题中的书签不会保存为 PDF漏洞
WORDSNET-24970XML 到 PDF 格式不正确漏洞
WORDSNET-24489从 CHM 转换为 DOCX 后清空输出文档漏洞
WORDSNET-24758Linux下DOCX保存为图片格式抛出异常漏洞
WORDSNET-25034保存文档时抛出 OutOfMemoryException漏洞
WORDSNET-21353将 Word 转换为 HTML 到 Word 文档时出现表前样式问题漏洞
WORDSNET-20994HTML 到 PDF 的转换生成不正确的输出漏洞
WORDSNET-24753通过 DocumentBuilder 插入 HTML 后 UpdatePageLayout 出现 InvalidOperationException漏洞
WORDSNET-19868在 Word 到 HTML 到 Word 的往返过程中,表格宽度增加超过页面宽度漏洞
WORDSNET-20907对 HtmlOptions.ExportListLabels 选项使用 ExportListLabels.AsInlineText 值会引发 System.InvalidOperationException漏洞
WORDSNET-11930将包含位于绝对位置的元素的 html 隐藏到 PDF 中的问题漏洞
WORDSNET-24485数学公式中的 delta 字符替换为 V 字符漏洞
WORDSNET-25050渲染文档时抛出 NullReferenceException漏洞
WORDSNET-11936HTML 中绝对位置的图像元素在 Word 中不显示漏洞
WORDSNET-24563Aspose.Word .NET Core 性能问题漏洞

公共 API 和向后不兼容的更改

本节列出了 Aspose.Words 23.3 中引入的公共 API 更改。它不仅包括新的和过时的公共方法,还包括对 Aspose.Words 幕后行为的任何变化的描述,这些变化可能会影响现有代码。引入的任何可被视为回归并修改现有行为的行为都特别重要,并记录在此处。

添加了用于处理填充颜色的新公共属性

相关问题:WORDSNET-24442

新的公共属性 ForeThemeColor 和 BackThemeColor 已添加到类 Fill。

/// <summary>
/// Gets or sets a ThemeColor object that represents the foreground color for the fill.
/// </summary>
public ThemeColor ForeThemeColor { get; set; }

/// <summary>
/// Gets or sets a ThemeColor object that represents the background color for the fill.
/// </summary>
public ThemeColor BackThemeColor { get; set; }

新的公共属性 ForeTintAndShade 和 BackTintAndShade 已添加到类 Fill。

/// <summary>
/// Gets or sets a double value that lightens or darkens the foreground color.
/// </summary>
/// <remarks>
/// <para> The allowed values are within the range from -1 (the darkest) to 1 (the lightest) for this property.
/// Zero (0) is neutral. Attempting to set this property to a value less than -1 or more than 1
/// results in <see cref="ArgumentOutOfRangeException"/>.</para>
/// </remarks>
public double ForeTintAndShade { get; set; }

/// <summary>
/// Gets or sets a double value that lightens or darkens the background color.
/// </summary>
/// <remarks>
/// <para> The allowed values are within the range from -1 (the darkest) to 1 (the lightest) for this property.
/// Zero (0) is neutral. Attempting to set this property to a value less than -1 or more than 1
/// results in <see cref="ArgumentOutOfRangeException"/>.</para>
/// </remarks>
public double BackTintAndShade { get; set; }

用例:

解释如何使用主题颜色以及色调和阴影。

Document doc = new Document("in.docx");

Fill shapeFill = (doc.GetChild(NodeType.Shape, 0, true) as Shape).Fill;
// Gets and sets the value of theme colors.
if (shapeFill.ForeThemeColor == ThemeColor.Accent1)
shapeFill.ForeThemeColor = ThemeColor.Dark1;

if (shapeFill.BackThemeColor == ThemeColor.Accent2)
shapeFill.BackThemeColor = ThemeColor.Dark2;

Fill textFill1 = doc.FirstSection.Body.FirstParagraph.Runs[0].Font.Fill;
// Gets and sets the tint value.
if (textFill1.ForeTintAndShade == 0)
textFill1.ForeTintAndShade = 0.5;

Fill textFill2 = doc.FirstSection.Body.FirstParagraph.Runs[1].Font.Fill;
// Gets and sets the shade value.
if (textFill2.ForeTintAndShade == 0)
textFill2.ForeTintAndShade = -0.2;

doc.Save("out.docx");

添加公共属性 HasMajorGridlines 和 HasMinorGridlines 到 ChartAxis 类

相关问题:WORDSNET-24673

以下公共属性已添加到 Aspose.Words.Drawing.Charts.ChartAxis 类:

/// <summary>
/// Gets or sets a flag indicating whether the axis has major gridlines.
/// </summary>
public bool HasMajorGridlines { get; set; }

/// <summary>
/// Gets or sets a flag indicating whether the axis has minor gridlines.
/// </summary>
public bool HasMinorGridlines { get; set; }

用例:

解释如何显示图表网格线。

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

// Insert a chart.
Shape shape = builder.InsertChart(ChartType.Column, 432, 252);

ChartAxis xAxis = shape.Chart.AxisX;
ChartAxis yAxis = shape.Chart.AxisY;

// Show gridlines.
xAxis.HasMajorGridlines = true;
xAxis.HasMinorGridlines = true;
yAxis.HasMajorGridlines = true;
yAxis.HasMinorGridlines = true;

doc.Save("Gridlines.docx");

添加了公共属性 ImportFormatOptions.AdjustSentenceAndWordSpacing

相关问题:WORDSNET-24960

以下公共属性已添加到 Aspose.Words.ImportFormatOptions 类:

/// <summary>
/// Gets or sets a boolean value that specifies whether to adjust sentence and word spacing automatically.
/// The default value is <c>false</c>.
/// </summary>
public bool AdjustSentenceAndWordSpacing { get; set; }

用例:

解释如何使用 AdjustSentenceAndWordSpacing 选项。

Document srcDoc = new Document();
Document dstDoc = new Document();

DocumentBuilder builder = new DocumentBuilder(srcDoc);
builder.Write("Dolor sit amet.");

builder = new DocumentBuilder(dstDoc);
builder.Write("Lorem ipsum.");

ImportFormatOptions options = new ImportFormatOptions() { AdjustSentenceAndWordSpacing = true };
builder.InsertDocument(srcDoc, ImportFormatMode.UseDestinationStyles, options);

Console.WriteLine(dstDoc.FirstSection.Body.FirstParagraph.GetText());

/* This code produces the following output (please note the additional ' ' space character just before pasted content):
Lorem ipsum. Dolor sit amet.
*/

添加了公共属性 TextBox.NoTextRotation

相关问题:WORDSNET-24883

以下公共属性已添加到 Aspose.Words.Drawing.TextBox 类:

/// <summary>
/// Gets or sets a boolean value indicating either text of the TextBox should not rotate when the shape is rotated.
/// </summary>
/// <remarks>
/// <p>The default value is <c>false</c></p>
/// </remarks>
public bool NoTextRotation
 

用例:

说明如何使用 NoTextRotation 选项。

DocumentBuilder builder = new DocumentBuilder();
Shape shape = builder.InsertShape(ShapeType.Ellipse, 20, 20);
shape.TextBox.NoTextRotation = true;

启用 MOBI 和 AZW3 格式的保存进度通知

相关问题:WORDSNET-24900 现在,在保存到 Mobi 或 AZW3 时也会调用 SaveOptions.ProgressCallback。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值