Aspose.HTML for .NET 20.2 Release Notes

As per the regular monthly update process of all APIs being offered by Aspose, we are honored to announce the February release of Aspose.HTML for .NET. In this release we have made some improvements to the quality of rendering, these improvements include:

  • Improvements in the splitting of float elements
  • Improvements in the font selection algorithm
  • Improvements in the size calculation of SVG images

Also, we have introduced new property, which allows you to specify the JavaScript processing timeout. It can be used to speed up the rendering process or to stop the execution of infinite JavaScripts.

Improvements and Changes

KeySummaryCategory
HTMLNET-2267HTM to Image: line break issueBug
HTMLNET-2404HTML to PDF - Some words are turned into white gridBug
HTMLNET-2319Null reference exception during html to image conversionBug

Public API and Backward Incompatible Changes

Added APIs

Added new service IRuntimeService, which provides JavaScriptTimeout property, that allows you to specify JavaScript processing timeout. It can be used to speed up the rendering process or to stop the execution of infinite JavaScripts.

 namespace Aspose.Html.Services

{

    /// <summary>

    /// This service is used to configure runtime related properties.

    /// </summary>

    public interface IRuntimeService : IService

    {

        /// <summary>

        /// Gets or sets <see cref="TimeSpan"/> which limits JavaScript execution time. If script is executed longer than provided <see cref="TimeSpan"/>, it will be cancelled. You can specify infinite timeout by setting <see cref="TimeSpan"/> equal to -1 millisecond. Default value is 1 minute.

        /// </summary>

        TimeSpan JavaScriptTimeout { get; set; }

    }

}