Browse our Products

Aspose.HTML for .NET 26.8 Release Notes

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

Release Notes

This release fixes issues with rendering and layout, including looping when paginating and problems with rendering tables. Support for javascript libraries for drawing graphs has also been improved (Highcharts/Highstock and Chart.js ).

Package references
Aspose.HTML for .NET 26.8.0 NuGet
Aspose.HTML for Python via .NET 26.8.0 PyPI

Improvements and Changes

KeySummaryCategory
HTMLNET-3325HTML to PNG - Rows of HTML Table are missing in the outputBug
HTMLNET-7180PageSetup.FirstPage.Margins is ignored when AtPagePriority is set to CssPriorityBug
HTMLNET-7181HTML to PDF: Table with two tbody elements causes runaway memoryBug
HTMLNET-6361Incorrect Output Converting HTML to PNG.Bug
HTMLNET-7198Empty page at the beginning of the converted document.Bug
HTMLNET-7190HTML-to-PDF content splits onto a second pageBug

Public API and Backward Incompatible Changes

Added APIs

namespace Aspose.Html.Dom
{
    /// <summary>
    /// The Element interface represents an element in an HTML or XML document.
    /// </summary>
    public class Element : Node
    {
        /// <summary>
        /// Returns the closest ancestor element (or the element itself) that matches the specified CSS selector.
        /// </summary>
        /// <param name="selector">The selector.</param>
        /// <returns>The closest matching element; otherwise, <c>null</c>.</returns>
        public Element Closest(string selectors)
        {
        }

        /// <summary>
        /// Determines whether the element matches the specified CSS selector.
        /// </summary>
        /// <param name="selector">The selector.</param>
        /// <returns><c>true</c> if the element matches the selector; otherwise, <c>false</c>.</returns>
        public bool Matches(string selectors)
        {
        }
    }
}

namespace Aspose.Html
{
    /// <summary>
    /// The HTMLElement interface represents any HTML element.
    /// </summary>
    public class HTMLElement : Element
    {
        /// <summary>
        /// Gets the layout height of the element in pixels.
        /// </summary>
        /// <value>
        /// The height of the element in pixels. If the height cannot be determined,
        /// returns <c>0</c>.
        /// </value>
        public int OffsetHeight { get; }

        /// <summary>
        /// Gets the layout width of the element in pixels.
        /// </summary>
        /// <value>
        /// The width of the element in pixels. If the width cannot be determined,
        /// returns <c>0</c>.
        /// </value>
        public int OffsetWidth { get; }
    }
}