Aspose.HTML for .NET 20.11 Release Notes

This page contains release notes information for Aspose.HTML for .NET 20.11.

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

In this release we have made various improvements related to parsing algorithms, here are some of them:

Improvements and Changes

KeySummaryCategory
HTMLNET-2827Out of memory during htm to png conversionBug
HTMLNET-2764HTML to PNG - formatting issueBug
HTMLNET-2806html to pdf - DrawImage procedure received png instead of gifBug
HTMLNET-2151OutOfMemory during conversionBug
HTMLNET-1852HTML -> PDF conversion produces OutOfMemoryExceptionBug
HTMLNET-2802Exception “Failed to Parse Base URL” when converting HTML using UNC Path over serverBug
HTMLNET-2736Why Svg to png gives border for rect element in svgBug
HTMLNET-2812Runnaway memory for specific images in converting HTMLBug

Public API and Backward Incompatible Changes

Changed APIs

The base class of MutationRecord was changed from object to DOMObject:

1namespace Aspose.Html.Dom.Mutations
2{
3    /// <summary>
4    /// A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver's MutationCallback.
5    /// </summary>
6    public class MutationRecord : DOMObject
7    {
8    }
9}

The type of MutationObserverInit was changed from struct to class, also now it implements IDictionary<string, object> interface.

1namespace Aspose.Html.Dom.Mutations
2{
3    /// <summary>
4    /// This class represents an options collection which is used to configure MutationObserver.
5    /// </summary>
6    public class MutationObserverInit : IDictionary<string, object>
7    {
8    }
9}

Added APIs

 1namespace Aspose.Html.Dom.Svg.Saving
 2{
 3    public class SVGSaveOptions : SaveOptions
 4    {
 5        /// <summary>
 6        /// Gets or sets whether text elements are replaced with paths.
 7        /// </summary>
 8        public bool VectorizeText { get; set; }
 9    }
10}
 1namespace Aspose.Html.Dom.Mutations
 2{
 3    public class MutationObserver : DOMObject
 4    {
 5        /// <summary>
 6        /// Instructs the user agent to observe the given target (a node) and report any mutations.
 7        /// </summary>
 8        /// <param name="target">The target to observe.</param>
 9        public void Observe(Node target)
10        {
11        }
12    }
13}

Removed APIs

 1namespace Aspose.Html
 2{
 3    public class License
 4    {
 5        /// <summary>
 6        /// License number was added as embedded resource.
 7        /// </summary>
 8        [Obsolete("Setting of this property is no longer needed in order to use embedded license.")]
 9        public bool Embedded { get; set; }
10    }
11}

Obsolete APIs

 1namespace Aspose.Html.Net
 2{
 3    public class UrlResolver
 4    {
 5        /// <summary>
 6        /// Resolves the absolute URI from the base and relative URIs.
 7        /// </summary>
 8        /// <param name="baseUri">The base URI.</param>
 9        /// <param name="relativeUri">The relative URI.</param>
10        /// <returns>The absolute URI</returns>
11        [Obsolete("This method is no longer called and it will be removed in version 21.1.0. All the calls were redirected to UrlResolver.Resolve(string, string) method.")]
12        public virtual Url Resolve(Url baseUri, string relativeUri)
13        {
14        }
15    }
16}
 1namespace Aspose.Html.Dom.Mutations
 2{
 3    public class MutationRecord : DOMObject
 4    {
 5        /// <summary>
 6        /// Return the nodes added.
 7        /// </summary>
 8        /// <value>
 9        /// The added nodes.
10        /// </value>
11        [Obsolete("Returning value type will be changed from IList<Node> to NodeList in version 21.1.0")]
12        public IList<Node> AddedNodes { get; }
13
14        /// <summary>
15        /// Return the nodes removed. 
16        /// </summary>
17        /// <value>
18        /// The removed nodes.
19        /// </value>
20        [Obsolete("Returning value type will be changed from IList<Node> to NodeList in version 21.1.0")]
21        public IList<Node> RemovedNodes { get; }
22    }
23}

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.