dotnet add package Aspose.HTML --version 23.9.0
NuGet\Install-Package Aspose.HTML -Version 23.9.0
<PackageReference Include="Aspose.HTML" Version="23.9.0" />
paket add Aspose.HTML --version 23.9.0
#r "nuget: Aspose.HTML, 23.9.0"
// Install Aspose.HTML as a Cake Addin #addin nuget:?package=Aspose.HTML&version=23.9.0 // Install Aspose.HTML as a Cake Tool #tool nuget:?package=Aspose.HTML&version=23.9.0
HTML File Manipulation .NET API
This .NET HTML API assists developers to write, read, modify, navigate and convert (X)HTML documents from within .NET applications.
It 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.
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.
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
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+).
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.
HTML to GIT-based Markdown (
// 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");
|Product||Versions Compatible and additional computed target framework versions.|
|.NET||net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed.|
|.NET Core||netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed.|
|.NET Standard||netstandard2.0 is compatible. netstandard2.1 was computed.|
|.NET Framework||net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed.|
|MonoAndroid||monoandroid was computed.|
|MonoMac||monomac was computed.|
|MonoTouch||monotouch was computed.|
|Tizen||tizen40 was computed. tizen60 was computed.|
|Xamarin.iOS||xamarinios was computed.|
|Xamarin.Mac||xamarinmac was computed.|
|Xamarin.TVOS||xamarintvos was computed.|
|Xamarin.WatchOS||xamarinwatchos was computed.|
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Aspose.HTML:
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.
This package is not used by any popular GitHub repositories.