Aspose.HTML provides a rich set of features, related to many different areas:
- Create a new or open an existing (X)HTML or SVG document. With the help of Aspose.HTML you will be able to open document not only from the local file, but directly from the web!
- Save the document along with all the referenced resources, such as CSS and images. Aspose.HTML offers you the highly customizable saver, which is able to save not only the document itself, with all the referenced resources, but even other documents, referenced by it!
- Create, edit, remove and replace HTML nodes via the rich API based on the Document Object Model (DOM) defined in the official documentation .
- Wide possibilities of environment customization . You can specify user style sheet , font folder , external resource handler and much more.
Although Aspose.HTML is not a web scraper by itself, but it can be used to collect information from the opened document:
- Navigate through the HTML elements with the help of DOM API. Aspose.HTML implements Traversal interfaces which allows you to easily navigate through the DOM tree.
- Collect information from the HTML documents, using high performance XPath queries . Aspose.HTML supports XPath 1.0 interfaces, defined in the official documentation .
- Collect HTML elements, by executing CSS Selector queries . Aspose.HTML implements CSS Selectors API according to the lates documentation.
One of the main goals of Aspose.HTML - is to provide simple, highly customizable and precise converters.
Simplicity: Aspose.HTML API provides you the ability to convert HTML, XHTML, SVG, EPUB and MHTML to many different formats with just one line of code. Here is an example of HTML to PDF conversion:
Aspose.Html.Converters.Converter.ConvertHTML(@"<span>Hello World!!</span>", ".", new Aspose.Html.Saving.PdfSaveOptions(), "output.pdf");
Сustomizability: With Aspose.HTML you will be able to fine-tune many aspects of the conversion process. Many other products will allow you to setup page size or image resolution, but with Aspose.HTML you will be able to customize processing of external resources , or specify custom style sheet for your document and much more.
Precision: All the components of Aspose.HTML assembly are designed according to the official HTML and SVG documentations. Which leads to high precision conversion results.
Aspose.HTML implements many converters, which can be split into three groups:
- Fixed layout converters. These converters are responsible for conversion of HTML, XHTML, SVG, EPUB and MHTML to PDF, XPS and raster image formats (PNG, JPG, BMP).
- Markdown converters. These converters are responsible for conversion of Markdown to HTML and HTML to Markdown .
- Template converter. Which is used to create HTML file from Template .
You can explore all the available converters on this page.
Real world HTML page - is a very complex set of formats, working together. That’s why development of high quality converter is such a complex task. Aspose.HTML includes implementations of all the HTML related formats:
- Parser works according to the latest HTML5 specification. Which means, that Aspose.HTML will always provide you the correct DOM tree.
- CSS3 is supported out-of-the-box. Aspose.HTML provides an advanced CSS manipulation API and allows to manipulate stylesheets either for the whole document or for the particular node .
- SVG parsing and rendering is based on the lates SVG 2.0 documentation . Which allows you to use such modern elements as filters!
- 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.
- Aspose.HTML for .NET runs on both Windows and Linux operating systems.
- Full support of all the .NET Framework versions starting from 2.0 and higher, including Client Profile versions.
- Aspose.HTML provides you the .NET Standard 2.0 assembly, which can be used with frameworks that implement it, such as .NET Core 2.0.
- Form Editor - is an utility class, which allows you to easily edit and submit HTML forms. You can find usage examples and detailed description on this page .
- Vendor Specific CSS - Aspose.HTML provides you its own CSS properties, which extend existing ones. As an example they can be used to add page numbers .