实现Markdown的“内嵌图片”功能!Aspose Word文档开发API 8月更新!
八月已至,.NET版Aspose.Words也为大家带来了8月的新版本!Aspose.Words for .Net是一种高级Word文档处理API,用于执行各种文档管理和操作任务。API支持生成,修改,转换,呈现和打印文档,而无需在跨平台应用程序中直接使用Microsoft Word。
主要特点如下:
- 实现了Markdown的“内嵌图片”功能。
- 为字体名称处理添加了新的字体替换规则。
- 添加了标志,指示在加载PDF文档时是否必须跳过图像。
- 实现了对在导入HTML时使用数据URL嵌入的SVG图像的支持。
>>你可以点击这里下载Aspose.Words for .NET v20.8测试体验
Key | 概述 | 类别 |
---|---|---|
WORDSNET-19654 | 添加对使用数据URL嵌入的SVG图像的支持 | 新功能 |
WORDSNET-18471 | HtmlFixedSaveOptions和SvgSaveOptions的ResolveFontNames选项 | 新功能 |
WORDSNET-20467 | 实施Markdown的“内嵌图片”功能 | 新功能 |
完整更新细则请参考:【Aspose.Words for .NET v20.8更新说明】
新功能解析
①WORDSNET-20199——为字体名称处理添加了新的字体替换规则
如“ 字体可用性和替换”部分所述,它将在步骤4之前检查项目“ a”之前。如果将执行此替换规则,则警告文本为“找不到字体''。改为使用''字体。原因:字体名称替换。”。将发行。
/// <summary>
/// Font substitution rule for processing font name.
/// </summary>
/// <remarks>
/// According to this rule Aspose.Words tries to process the font name to get the substitution. Particularly
/// Aspose.Words tries to removes suffixes with '-' and ',' separators like it does the MS Word.
/// </remarks>
publicclassFontNameSubstitutionRule : FontSubstitutionRule
{
}
publicclassFontSubstitutionSettings
{
/// <summary>
/// Settings related to font name substitution rule.
/// </summary>
publicFontNameSubstitutionRule FontNameSubstitution {get; }
}
②WORDSNET-20779——添加了标志,指示在加载PDF文档时是否必须跳过图像。
/// <summary>
/// Gets or sets the flag indicating whether images must be skipped while loading PDF document. Default is False.
/// </summary>
publicboolSkipPdfImages
{
get{returnmSkipPdfImages; }
set{ mSkipPdfImages = value; }
}
用例:说明如何使用SkipPdfImages标志。
PdfLoadOptions options = new PdfLoadOptions(); options.SkipPdfImages = true; Document doc = new Document("in.pdf", options);
如果您有任何疑问或需求,请随时加入Aspose技术交流群(642018183),我们很高兴为您提供查询和咨询。