Aspose.HTML 21.4.0

Aspose.HTML for .NET is a cross-platform class library that works as a headless browser that you can seamlessly integrate within your own .NET, C#, VB.NET, and ASP.NET applications. Aspose.HTML for .NET helps you create, modify, extract, copy, delete and replace HTML document content, extract CSS from HTML, configure a document sandbox; load, read, and manage SVG files; render MHTML and EPUB documents to supported output file formats, and perform asynchronous operations.

This library supports parsing of HTML5, CSS3, SVG and HTML Canvas to construct a Document Object Model (DOM) based on the WHATWG DOM Standard. Insert, remove, and edit the nodes. You can 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.

Aspose.HTML for .NET offers comprehensive format conversion support using which your applications can convert from HTML, SVG, EPUB, MHTML, and Markdown to various supported formats. You can also populate an HTML template from XML or JSON data sources. Aspose.HTML can easily work with large and complex HTML-documents.

Install-Package Aspose.HTML -Version 21.4.0
dotnet add package Aspose.HTML --version 21.4.0
<PackageReference Include="Aspose.HTML" Version="21.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aspose.HTML --version 21.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Aspose.HTML, 21.4.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Aspose.HTML as a Cake Addin
#addin nuget:?package=Aspose.HTML&version=21.4.0

// Install Aspose.HTML as a Cake Tool
#tool nuget:?package=Aspose.HTML&version=21.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

HTML File Manipulation .NET API

Version 21.4 Nuget

Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License

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 the 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.

Read & Write Web Formats

Web: HTML, XHTML, MHTML
Other: SVG, MD (Markdown)

Save HTML As

Fixed Layout: PDF, XPS
Images: TIFF, JPEG, PNG, BMP, GIF

Read Formats

EPUB

Platform Independence

Aspose.HTML for .NET is written completely in C# and can be used to build any type of 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

// For complete examples and data files, please go to https://github.com/aspose-html/Aspose.HTML-for-.NET

// Prepare an HTML code and save it to the file.
var code = "<h1>Header 1</h1>" +
           "<h2>Header 2</h2>" +
           "<p>Hello World!!</p>";
System.IO.File.WriteAllText("document.html", code);

// Call ConvertHTML method to convert HTML to Markdown.
Aspose.Html.Converters.Converter.ConvertHTML("document.html", Aspose.Html.Saving.MarkdownSaveOptions.Git, "output.md");

Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License

HTML File Manipulation .NET API

Version 21.4 Nuget

Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License

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 the 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.

Read & Write Web Formats

Web: HTML, XHTML, MHTML
Other: SVG, MD (Markdown)

Save HTML As

Fixed Layout: PDF, XPS
Images: TIFF, JPEG, PNG, BMP, GIF

Read Formats

EPUB

Platform Independence

Aspose.HTML for .NET is written completely in C# and can be used to build any type of 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

// For complete examples and data files, please go to https://github.com/aspose-html/Aspose.HTML-for-.NET

// Prepare an HTML code and save it to the file.
var code = "<h1>Header 1</h1>" +
           "<h2>Header 2</h2>" +
           "<p>Hello World!!</p>";
System.IO.File.WriteAllText("document.html", code);

// Call ConvertHTML method to convert HTML to Markdown.
Aspose.Html.Converters.Converter.ConvertHTML("document.html", Aspose.Html.Saving.MarkdownSaveOptions.Git, "output.md");

Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License

Release Notes

https://docs.aspose.com/html/net/aspose-html-for-net-21-4-release-notes

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Aspose.HTML:

Package Downloads
Aspose.Total
Aspose.Total for .NET is the most complete package of all .NET file format APIs offered by Aspose. It empowers developers to create, edit, render, print and convert between a wide range of popular document formats within any .NET, C#, ASP.NET and VB.NET applications.
Conholdate.Total
Conholdate.Total for .NET is a complete package to work with a large number of file formats from Microsoft Word, Excel, PowerPoint, Outlook, Project, Visio, Adobe Acrobat, Illustrator, Photoshop, AutoCAD, OpenOffice and many more. Conholdate.Total for .NET allows you to use any API released under Aspose and GroupDocs for .NET in order to create, convert, read, edit, update and print popular document formats. Moreover, you may view, annotate, watermark, assemble, classify, search, redact, parse, merge and compare documents without needing to install the native applications. It helps you in file format manipulation and document automation via simple API. Conholdate.Total for .NET also includes specialized APIs to read and create barcodes, extract text from images using OCR as well as extract human marked data from questioners, surveys, quizzes, MCQ papers and feedback forms.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
21.4.0 1,419 5/1/2021
21.3.0 6,419 3/10/2021
21.2.0 5,846 2/4/2021
21.1.0 7,973 1/14/2021
20.12.0 5,271 12/4/2020
20.11.0 6,230 11/3/2020
20.9.0 5,171 9/30/2020
20.8.0 4,401 8/31/2020
20.7.0 3,875 7/28/2020
20.6.0 1,986 6/30/2020
20.5.0 9,069 5/20/2020
20.4.0 12,025 4/3/2020
20.3.0 54,357 3/12/2020
20.2.0 4,537 2/9/2020
20.1.0 2,887 1/14/2020
19.12.0 4,186 12/4/2019
19.11.0 2,167 11/11/2019
19.10.0 5,700 10/8/2019
19.9.0 5,621 9/6/2019
19.8.0 5,400 8/7/2019
19.7.0 3,549 7/8/2019
19.6.0 3,638 6/10/2019
19.5.0 3,886 5/9/2019
19.4.0 4,587 4/5/2019
19.3.0 14,937 3/5/2019
19.2.0 2,123 2/6/2019
19.1.0 1,428 1/9/2019
18.12.0 6,012 12/7/2018
18.11.0 3,683 11/6/2018
18.10.0 1,022 10/5/2018
18.9.0 5,984 9/5/2018
18.8.0 1,094 8/7/2018
18.7.0 1,005 7/5/2018
18.6.0 998 6/6/2018
18.5.0 2,686 5/2/2018
18.4.0 996 4/6/2018
18.3.0 9,966 3/6/2018
18.2.0 2,394 2/7/2018
18.1.0 4,898 1/11/2018
17.12.0 690 12/4/2017
17.11.0 610 11/9/2017
17.10.0 631 10/9/2017
17.9.0 727 9/8/2017
17.8.0 732 8/10/2017
17.7.0 3,788 7/14/2017