原创|产品更新|编辑:李显亮|2020-03-17 11:21:44.227|阅读 194 次
概述:Aspose.HTML for .NET更新至v20.3,在此版本中,我们改进了对损坏字体和无效URL的处理。我们还对渲染过程进行了一些改进,欢迎下载体验。
# 慧都年终大促·界面/图表报表/文档/IDE等千款热门软控件火热促销中 >>
Aspose.HTML for .NET是一种高级HTML操作API,用于在.NET应用程序中创建和操作HTML文档。开发人员可以插入,删除,替换HTML节点,提取CSS样式,通过NodeIterator,遍历规范提供的TreeWalker,XPath或CSS选择器查询来浏览HTML文档。
Aspose.HTML for .NET更新至v20.3,在此版本中,我们改进了对损坏字体和无效URL的处理。我们还对渲染过程进行了一些改进,包括:
key | 概述 | 类别 |
---|---|---|
HTMLNET-2436 | HTML无法正确转换为PDF | Bug修复 |
HTMLNET-2452 | HTML到图像-发生NullReferenceException | Bug修复 |
HTMLNET-2439 | 本地主机站点到映像转换期间的异常 | Bug修复 |
HTMLNET-2461 | HTML到图像转换挂起 | Bug修复 |
HTMLNET-2441 | Aspose.HTML 20.1无法解析URL | Bug修复 |
HTMLNET-2343 | 有关Aspose库如何缓存用户数据/文件以提高性能的文档 | Bug修复 |
为EPUB和MHTML转换器添加了新的签名。现在,可以使用URL或字符串路径指定输入文件 。
namespace Aspose.Html.Converters { public static class Converter { ////// Convert epub source to xps. Result is xps file. //////Conversion source path.///Conversion options.///Output file path.public static void ConvertEPUB(string sourcePath, XpsSaveOptions options, string outputPath); ////// Convert epub source to xps. Result is xps file. //////The source URL.///Conversion options.///Output file path.public static void ConvertEPUB(Url sourceUrl, XpsSaveOptions options, string outputPath); ////// Convert epub source to xps. Result is xps file. //////Conversion epub source file path.///The environment configuration.///Conversion options.///Output file path.public static void ConvertEPUB(string sourcePath, Configuration configuration, XpsSaveOptions options, string outputPath); ////// Convert epub source to xps. Result is xps file. //////The source URL.///The environment configuration.///Conversion options.///Output file path.public static void ConvertEPUB(Url sourceUrl, Configuration configuration, XpsSaveOptions options, string outputPath); ////// Convert epub source to xps. Result is xps file. //////Conversion epub source file path.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertEPUB(string sourcePath, XpsSaveOptions options, ICreateStreamProvider provider); ////// Convert epub source to xps. Result is xps file. //////The source URL.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertEPUB(Url sourceUrl, XpsSaveOptions options, ICreateStreamProvider provider); ////// Convert epub source to xps. Result is xps file. //////Conversion epub source file path.///The environment configuration.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertEPUB(string sourcePath, Configuration configuration, XpsSaveOptions options, ICreateStreamProvider provider); ////// Convert epub source to xps. Result is xps file. //////The source URL.///The environment configuration.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertEPUB(Url sourceUrl, Configuration configuration, XpsSaveOptions options, ICreateStreamProvider provider); ////// Convert epub source to pdf. Result is pdf file. //////Conversion epub source file path.///Conversion options.///Output file path.public static void ConvertEPUB(string sourcePath, PdfSaveOptions options, string outputPath); ////// Convert epub source to pdf. Result is pdf file. //////The source URL.///Conversion options.///Output file path.public static void ConvertEPUB(Url sourceUrl, PdfSaveOptions options, string outputPath); ////// Convert epub source to pdf. Result is pdf file. //////Conversion epub source file path.///The environment configuration.///Conversion options.///Output file path.public static void ConvertEPUB(string sourcePath, Configuration configuration, PdfSaveOptions options, string outputPath); ////// Convert epub source to pdf. Result is pdf file. //////The source URL.///The environment configuration.///Conversion options.///Output file path.public static void ConvertEPUB(Url sourceUrl, Configuration configuration, PdfSaveOptions options, string outputPath); ////// Convert epub source to pdf. Result is pdf file. //////Conversion epub source file path.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertEPUB(string sourcePath, PdfSaveOptions options, ICreateStreamProvider provider); ////// Convert epub source to pdf. Result is pdf file. //////The source URL.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertEPUB(Url sourceUrl, PdfSaveOptions options, ICreateStreamProvider provider); ////// Convert epub source to pdf. Result is pdf file. //////Conversion epub source file path.///The environment configuration.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertEPUB(string sourcePath, Configuration configuration, PdfSaveOptions options, ICreateStreamProvider provider); ////// Convert epub source to pdf. Result is pdf file. //////The source URL.///The environment configuration.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertEPUB(Url sourceUrl, Configuration configuration, PdfSaveOptions options, ICreateStreamProvider provider); ////// Convert epub source to image. Result is image file. //////Conversion epub source file path.///Conversion options.///Output file path.public static void ConvertEPUB(string sourcePath, ImageSaveOptions options, string outputPath); ////// Convert epub source to image. Result is image file. //////The source URL.///Conversion options.///Output file path.public static void ConvertEPUB(Url sourceUrl, ImageSaveOptions options, string outputPath); ////// Convert epub source to image. Result is image file. //////Conversion epub source file path.///The environment configuration.///Conversion options.///Output file path.public static void ConvertEPUB(string sourcePath, Configuration configuration, ImageSaveOptions options, string outputPath); ////// Convert epub source to image. Result is image file. //////The source URL.///The environment configuration.///Conversion options.///Output file path.public static void ConvertEPUB(Url sourceUrl, Configuration configuration, ImageSaveOptions options, string outputPath); ////// Convert epub source to image. Result is image file. //////Conversion epub source file path.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertEPUB(string sourcePath, ImageSaveOptions options, ICreateStreamProvider provider); ////// Convert epub source to image. Result is image file. //////The source URL.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertEPUB(Url sourceUrl, ImageSaveOptions options, ICreateStreamProvider provider); ////// Convert epub source to image. Result is image file. //////Conversion epub source file path.///The environment configuration.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertEPUB(string sourcePath, Configuration configuration, ImageSaveOptions options, ICreateStreamProvider provider); ////// Convert epub source to image. Result is image file. //////The source URL.///The environment configuration.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertEPUB(Url sourceUrl, Configuration configuration, ImageSaveOptions options, ICreateStreamProvider provider); ////// Convert mhtml source to xps. Result is xps file. //////Conversion mhtml source file path.///Conversion options.///Output file path.public static void ConvertMHTML(string sourcePath, XpsSaveOptions options, string outputPath); ////// Convert mhtml source to xps. Result is xps file. //////The source URL.///Conversion options.///Output file path.public static void ConvertMHTML(Url sourceUrl, XpsSaveOptions options, string outputPath); ////// Convert mhtml source to xps. Result is xps file. //////Conversion mhtml source file path.///The environment configuration.///Conversion options.///Output file path.public static void ConvertMHTML(string sourcePath, Configuration configuration, XpsSaveOptions options, string outputPath); ////// Convert mhtml source to xps. Result is xps file. //////The source URL.///The environment configuration.///Conversion options.///Output file path.public static void ConvertMHTML(Url sourceUrl, Configuration configuration, XpsSaveOptions options, string outputPath); ////// Convert mhtml source to xps. Result is xps file. //////Conversion mhtml source file path.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertMHTML(string sourcePath, XpsSaveOptions options, ICreateStreamProvider provider); ////// Convert mhtml source to xps. Result is xps file. //////The source URL.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertMHTML(Url sourceUrl, XpsSaveOptions options, ICreateStreamProvider provider); ////// Convert mhtml source to xps. Result is xps file. //////Conversion mhtml source file path.///The environment configuration.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertMHTML(string sourcePath, Configuration configuration, XpsSaveOptions options, ICreateStreamProvider provider); ////// Convert mhtml source to xps. Result is xps file. //////The source URL.///The environment configuration.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertMHTML(Url sourceUrl, Configuration configuration, XpsSaveOptions options, ICreateStreamProvider provider); ////// Convert mhtml source to pdf. Result is pdf file. //////Conversion mhtml source file path.///Conversion options.///Output file path.public static void ConvertMHTML(string sourcePath, PdfSaveOptions options, string outputPath); ////// Convert mhtml source to pdf. Result is pdf file. //////The source URL.///Conversion options.///Output file path.public static void ConvertMHTML(Url sourceUrl, PdfSaveOptions options, string outputPath); ////// Convert mhtml source to pdf. Result is pdf file. //////Conversion mhtml source file path.///The environment configuration.///Conversion options.///Output file path.public static void ConvertMHTML(string sourcePath, Configuration configuration, PdfSaveOptions options, string outputPath); ////// Convert mhtml source to pdf. Result is pdf file. //////The source URL.///The environment configuration.///Conversion options.///Output file path.public static void ConvertMHTML(Url sourceUrl, Configuration configuration, PdfSaveOptions options, string outputPath); ////// Convert mhtml source to pdf. Result is pdf file. //////Conversion mhtml source file path.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertMHTML(string sourcePath, PdfSaveOptions options, ICreateStreamProvider provider); ////// Convert mhtml source to pdf. Result is pdf file. //////The source URL.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertMHTML(Url sourceUrl, PdfSaveOptions options, ICreateStreamProvider provider); ////// Convert mhtml source to pdf. Result is pdf file. //////Conversion mhtml source file path.///The environment configuration.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertMHTML(string sourcePath, Configuration configuration, PdfSaveOptions options, ICreateStreamProvider provider); ////// Convert mhtml source to pdf. Result is pdf file. //////The source URL.///The environment configuration.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertMHTML(Url sourceUrl, Configuration configuration, PdfSaveOptions options, ICreateStreamProvider provider); ////// Convert mhtml source to image. Result is image file. //////Conversion mhtml source file path.///Conversion options.///Output file path.public static void ConvertMHTML(string sourcePath, ImageSaveOptions options, string outputPath); ////// Convert mhtml source to image. Result is image file. //////The source URL.///Conversion options.///Output file path.public static void ConvertMHTML(Url sourceUrl, ImageSaveOptions options, string outputPath); ////// Convert mhtml source to image. Result is image file. //////Conversion mhtml source file path.///The environment configuration.///Conversion options.///Output file path.public static void ConvertMHTML(string sourcePath, Configuration configuration, ImageSaveOptions options, string outputPath); ////// Convert mhtml source to image. Result is image file. //////The source URL.///The environment configuration.///Conversion options.///Output file path.public static void ConvertMHTML(Url sourceUrl, Configuration configuration, ImageSaveOptions options, string outputPath); ////// Convert mhtml source to image. Result is image file. //////Conversion mhtml source file path.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertMHTML(string sourcePath, ImageSaveOptions options, ICreateStreamProvider provider); ////// Convert mhtml source to image. Result is image file. //////The source URL.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertMHTML(Url sourceUrl, ImageSaveOptions options, ICreateStreamProvider provider); ////// Convert mhtml source to image. Result is image file. //////Conversion mhtml source file path.///The environment configuration.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertMHTML(string sourcePath, Configuration configuration, ImageSaveOptions options, ICreateStreamProvider provider); ////// Convert mhtml source to image. Result is image file. //////The source URL.///The environment configuration.///Conversion options.///Implementation of theinterface, which will be used to get an output stream.public static void ConvertMHTML(Url sourceUrl, Configuration configuration, ImageSaveOptions options, ICreateStreamProvider provider); } }还想要更多吗?您可以点击阅读【2019 · Aspose最新资源整合】,查找需要的教程资源。如果您有任何疑问或需求,请随时加入Aspose技术交流群(642018183),我们很高兴为您提供查询和咨询。
本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@cahobeh.cn