Aspose.Html 20.5.0

Aspose.HTML is a cross-platform class library that enables you to perform a wide range of HTML manipulation tasks directly within your .NET applications.
Aspose.HTML supports parsing of HTML5, CSS3, SVG and HTML Canvas to construct a Document Object Model (DOM) based on the official W3C specification.

Rich Set of Features
Aspose.HTML for .NET is both parser and page renderer. As parser, it provides access to the Document Object Model using all W3C-standard traversal methods:
* Element Traversal;
* Document Traversal;
* XPath queries;
* CSS Selector queries.
Using any of these methods allows programmatically access to all document elements, formatting, and styling; allows to create, modify, extract, copy, delete and replace document content.

Aspose.HTML has special customized services that allow track and/or change requests for additional pages resources (like styles, fonts etc).

This library is also great for rendering fixed-width layout documents. Aspose.HTML can proceeding large HTML-documents or HTML-documents with complex layout. The rendering engine supports @media-queries, so it's can be configured as Screen or Print device or set own behavior.
Aspose.HTML supports rendering to the most popular documents formats, such as PDF, XPS or raster graphics file formats (TIFF, PNG, JPEG, BMP). Along with DOM file formats, the API can also provide the rendering of EPUB and MHTML formats.
The advantages of Aspose.HTML as renderer are:
* a powerful SVG parser that enables to convert SVG-images with very high quality;
* support of HTML5 Canvas;
* full support of HTML Form Elements; It allows to easily convert HTML form to PDF Form.

Platform Independence

You can use Aspose.HTML for .NET to build any type of a 32-bit or 64-bit .NET application including ASP.NET, WCF, WinForms, .NET Core etc.

Performance and Scalability

Aspose.HTML is designed to perform great both on a server or client. Aspose.HTML is a single .NET assembly that can be deployed with any .NET application by simply copying it. You do not have to worry about any other services or modules.

Aspose. HTML is multithread safe as long as only one thread works on a document at a time. It is a typical scenario to have one thread working on one document. Different threads can safely work on different documents at the same time.

Free support for Aspose.HTML for .NET is provided on our support forum: https://forum.aspose.com/

There is a newer version of this package available.
See the version list below for details.
Install-Package Aspose.Html -Version 20.5.0
dotnet add package Aspose.Html --version 20.5.0
<PackageReference Include="Aspose.Html" Version="20.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aspose.Html --version 20.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

HTML File Manipulation .NET API

The .NET HTML API assists developers to write, read, modify, navigate and convert (X)HTML documents from within .NET applications.

Aspose.HTML for .NET API works as a headless browser that allows you to create or open existing HTML documents from various sources in order to perform manipulation operations such as remove and replace HTML nodes, save HTML documents, extract CSS from HTML, configure a document sandbox and more. You may navigate HTML documents by using various methods, such as, element traversal, document traversal, XPath queries, and CSS selector queries as well as manipulate HTML DOM via JavaScript, convert HTML file to images or fixed layout formats, and convert (X)HTML and EPUB files to other file formats.

The classes and properties of Aspose.HTML for .NET API have similar names as that of W3C HTML specification.

HTML Processing API Features

  • Convert HTML to many popular formats including PDF, XPS and images.
  • Load & convert SVG & EPUB to XPS, PDF and images.
  • Navigate through document either by NodeIterator or TreeWalker.
  • Control the timeout of rendering process.
  • MutationObserver to watch over DOM modifications.
  • Populate HTML document with external data (XML & JSON).
  • Support of single (PDF, XPS) or multiple (image formats) output file streams.
  • Extract CSS styling information.
  • Configuring Sandbox for the environment independent of the execution machine.

Enhancements in Version 20.5

  • Increased precision of element size calculation using BeginElement that will contain the correct rectangle.
  • Much faster table layout algorithm, float positioning algorithm and many other algorithms.
  • Updated processing of many CSS properties according to the latest documentation.
  • Improved processing of the replaced elements which are correctly positioned and rendered.

For the detailed notes, please visit Aspose.HTML for .NET 20.5 Release Notes.

Read & Write Web Formats

Web: HTML, XHTML, MHTML

Save HTML As

Fixed Layout: PDF, XPS
Images: TIFF, JPEG, PNG, BMP
Markdown: MD

Read Formats

EPUB, SVG

Platform Independence

Aspose.HTML for .NET is written completely in C# and can be used to build any type of a 32-bit or 64-bit .NET application including ASP.NET, WCF, WinForms & .NET Core. Development platforms include all flavors of Windows, Linux and Mac OS X x64 (10.12+).

Getting Started with Aspose.HTML for .NET

Are you ready to give Aspose.HTML for .NET a try? Simply execute Install-Package Aspose.Html from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.HTML for .NET and want to upgrade the version, please execute Update-Package Aspose.Html to get the latest version.

Convert HTML to GIT-based Markdown (MD) Format

You can execute below code snippet to see how Aspose.HTML API performs in your environment or check the GitHub Repository for other common usage scenarios.

using (var document = new Aspose.Html.HTMLDocument("<p>my first paragraph</p>", dir))
{
    // save to Markdown using default GIT formatting model
    document.Save(dir + "Markdown.md", Saving.MarkdownSaveOptions.Git);
}

Product Page | Documentation | Demo | API Reference | Examples | Blog | Free Support | Temporary License

HTML File Manipulation .NET API

The .NET HTML API assists developers to write, read, modify, navigate and convert (X)HTML documents from within .NET applications.

Aspose.HTML for .NET API works as a headless browser that allows you to create or open existing HTML documents from various sources in order to perform manipulation operations such as remove and replace HTML nodes, save HTML documents, extract CSS from HTML, configure a document sandbox and more. You may navigate HTML documents by using various methods, such as, element traversal, document traversal, XPath queries, and CSS selector queries as well as manipulate HTML DOM via JavaScript, convert HTML file to images or fixed layout formats, and convert (X)HTML and EPUB files to other file formats.

The classes and properties of Aspose.HTML for .NET API have similar names as that of W3C HTML specification.

HTML Processing API Features

  • Convert HTML to many popular formats including PDF, XPS and images.
  • Load & convert SVG & EPUB to XPS, PDF and images.
  • Navigate through document either by NodeIterator or TreeWalker.
  • Control the timeout of rendering process.
  • MutationObserver to watch over DOM modifications.
  • Populate HTML document with external data (XML & JSON).
  • Support of single (PDF, XPS) or multiple (image formats) output file streams.
  • Extract CSS styling information.
  • Configuring Sandbox for the environment independent of the execution machine.

Enhancements in Version 20.5

  • Increased precision of element size calculation using BeginElement that will contain the correct rectangle.
  • Much faster table layout algorithm, float positioning algorithm and many other algorithms.
  • Updated processing of many CSS properties according to the latest documentation.
  • Improved processing of the replaced elements which are correctly positioned and rendered.

For the detailed notes, please visit Aspose.HTML for .NET 20.5 Release Notes.

Read & Write Web Formats

Web: HTML, XHTML, MHTML

Save HTML As

Fixed Layout: PDF, XPS
Images: TIFF, JPEG, PNG, BMP
Markdown: MD

Read Formats

EPUB, SVG

Platform Independence

Aspose.HTML for .NET is written completely in C# and can be used to build any type of a 32-bit or 64-bit .NET application including ASP.NET, WCF, WinForms & .NET Core. Development platforms include all flavors of Windows, Linux and Mac OS X x64 (10.12+).

Getting Started with Aspose.HTML for .NET

Are you ready to give Aspose.HTML for .NET a try? Simply execute Install-Package Aspose.Html from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.HTML for .NET and want to upgrade the version, please execute Update-Package Aspose.Html to get the latest version.

Convert HTML to GIT-based Markdown (MD) Format

You can execute below code snippet to see how Aspose.HTML API performs in your environment or check the GitHub Repository for other common usage scenarios.

using (var document = new Aspose.Html.HTMLDocument("<p>my first paragraph</p>", dir))
{
    // save to Markdown using default GIT formatting model
    document.Save(dir + "Markdown.md", Saving.MarkdownSaveOptions.Git);
}

Product Page | Documentation | Demo | API Reference | Examples | Blog | Free Support | Temporary License

Release Notes

https://docs.aspose.com/display/htmlnet/Aspose.HTML+for+.NET+20.5+Release+Notes

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
20.6.0 188 6/30/2020
20.5.0 1,866 5/20/2020
20.4.0 4,697 4/3/2020
20.3.0 14,498 3/12/2020
20.2.0 2,524 2/9/2020
20.1.0 1,642 1/14/2020
19.12.0 3,024 12/4/2019
19.11.0 1,504 11/11/2019
19.10.0 3,279 10/8/2019
19.9.0 3,629 9/6/2019
19.8.0 3,648 8/7/2019
19.7.0 1,086 7/8/2019
19.6.0 2,329 6/10/2019
19.5.0 2,787 5/9/2019
19.4.0 3,050 4/5/2019
19.3.0 12,643 3/5/2019
19.2.0 1,850 2/6/2019
19.1.0 1,079 1/9/2019
18.12.0 4,702 12/7/2018
18.11.0 1,675 11/6/2018
18.10.0 814 10/5/2018
18.9.0 3,206 9/5/2018
18.8.0 825 8/7/2018
18.7.0 803 7/5/2018
18.6.0 812 6/6/2018
18.5.0 1,818 5/2/2018
18.4.0 763 4/6/2018
18.3.0 7,873 3/6/2018
18.2.0 726 2/7/2018
18.1.0 597 1/11/2018
17.12.0 467 12/4/2017
17.11.0 390 11/9/2017
17.10.0 416 10/9/2017
17.9.0 496 9/8/2017
17.8.0 517 8/10/2017
17.7.0 2,580 7/14/2017