We are glad to announce a new release Aspose.HTML for .NET 18.5 which is available on NuGet Gallery for download and to be used in .NET applications. This release includes an amazing feature of support for .NET Standard 2.0 (.NET Core) Framework. Several other enhancements and bug fixes have also been included in this version of Aspose.HTML for .NET. An overview of these improvements and changes is given in the release notes of Aspose.HTML for .NET 18.5.

Rendering HTML Canvas in C#

W3C HTML Canvas is a part of Aspose.HTML for .NET API now, it supports rendering of HTML Canvas elements as a part of HTML document as well as direct access and manipulation of HTML Canvas 2D Context. You can manipulate as well as render an HTML Canvas to other file formats including, but not limited to, XPS and PDF. You can use the Rendering device as follows:

using (var document = new HTMLDocument(dataDir + "canvas.html"))
 // Create an instance of HTML renderer and XPS output device
 using (var renderer = new Rendering.HtmlRenderer())
 using (var device = new Aspose.Html.Rendering.Pdf.PdfDevice("canvas.pdf"))
 // Render the document to the specified device
 renderer.Render(device, document);

We have also improved the CSS engine that has contributed to improving the performance of parsing CSS documents up to 20 percent. ParameterIsNotValid exception, as well as few problems with the rendering of HTML to PNG format, have also been rectified in the latest version of Aspose.HTML for .NET API.

Miscellaneous Resources

Please visit the following links for information regarding Aspose.HTML for .NET 18.5 and Release Notes section.