Browse our Products

Aspose.HTML for .NET 23.3 Release Notes

As per regular monthly update process of all APIs being offered by Aspose, we are honored to announce the March release of Aspose.HTML for .NET.

In this release, we have improved memory management and expanded the public Api to work with the CancellationToken(Only for .Net Framework >4.0).

Improvements and Changes

KeySummaryCategory
HTMLNET-4136Renderer.Renderer method overload.Bug
HTMLNET-4182System.OutOfMemoryException when converting HTML to PNGBug

Public API and Backward Incompatible Changes

Added APIs

namespace Aspose.Html.Rendering
{
    /// <summary>
    /// Represents an abstract class for the all renderers.
    /// </summary>
    /// <typeparam name="TDocument">The type of the document.</typeparam>
    /// <seealso cref="System.IDisposable" />
    public abstract class Renderer<TDocument> : Renderer
    {
	    /// <summary>
        /// Defines a method for rendering multiple <see cref="TDocument"/>s into a specific <see cref="IDevice"/>, using a cancellation token to request cancellation of the operation.
        /// </summary>
        /// <param name="device">The output device.</param>
        /// <param name="cancellationToken">A <see cref="CancellationToken"/> to observe while waiting for the task to complete.</param>
        /// <param name="documents">The documents to render.</param>
        public abstract void Render(IDevice device, CancellationToken cancellationToken, params TDocument[] documents);
    }
}