Aspose.HTML for .NET更新至v20.3,在此版本中,我们改进了对损坏字体和无效URL的处理。我们还对渲染过程进行了一些改进,欢迎下载体验。
Aspose.HTML for .NET是一种高级HTML操作API,用于在.NET应用程序中创建和操作HTML文档。开发人员可以插入,删除,替换HTML节点,提取CSS样式,通过NodeIterator,遍历规范提供的TreeWalker,XPath或CSS选择器查询来浏览HTML文档。
Aspose.HTML for .NET更新至v20.3,在此版本中,我们改进了对损坏字体和无效URL的处理。我们还对渲染过程进行了一些改进,包括:
- 负表边距的处理
- 改进的JavaScript解析算法
- 改进的PDF文档加密
- 表格大小计算算法的准确性提高
>>免费下载最新版Aspose.HTML for .NET
具体更新内容
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修复 |
Aspose.Html v20.3中的API更改
为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技术交流群(),我们很高兴为您提供查询和咨询。
标签:
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!