Features List – Aspose.HTML for Java
The following table summarizes the features available in Aspose.HTML for Java API.
Aspose.HTML for Java Features
Aspose.HTML is a programming API that allows developers to create HTML documents, open existing, manipulate, navigate through, and convert HTML, XHTML, SVG, EPUB, MHTML, and MD documents to the various supported output formats. Aspose.HTML implements W3C HTML specification, so its classes and properties have similar names that come from the specifications.
This API mimics the behavior of a headless browser and offers following features.
- Creating or opening an existing HTML document from different sources (Aspose.HTML.Examples.QuickStart.DocumentOpenTests in the examples project).
- HTML Manipulation: creating, editing, removing and replacing HTML nodes via API.
- Saving HTML document.
- Extracting CSS styles for particular HTML node.
- Configuring a document sandbox that affects the processing of HTML documents i.e. CSS styles in some cases are dependent on screen size and we allow to configure environment independently of an execution machine.
- Navigation through HTML document in different ways:
- by using Element Traversal
- by using Document Traversal
- by using XPath queries
- by using CSS Selector queries
- Scripting that allows to manipulate HTML DOM via JavaScript.
- Converting HTML document into various supported formats: PDF, XPS, DOCX, JPG, PNG, BMP, TIFF, GIF, MD, and MHTML.
- Converting XHTML and similar formats, such as EPUB and MHTML to PDF, XPS, DOCX, JPG, PNG, BMP, TIFF, and GIF formats.
Note:
- String representation of CSS Color value is dependent of the context that can be either in a ‘specified’ or ‘computed’ state.
- In the ‘computed’ state CSS Color is represented as rgb/rgba function.
- In the ‘specified’ state CSS Color is represented as original string specified by the author.
The URL object is based on Java Framework implementation according to w3c URL specification. The difference between Framework and w3c is an order of constructor parameters
General Features
- Written completely in Java and works with JRE.
- JDK environment required.
- API reference in HTML Help format.
- Supported JDK 1.6 or higher versions.
Supported HTML versions
Aspose.HTML for Java supports HTML and XHTML.
Namespaces structure in API
Text
- Extract text from pages.
- Search text from pages.
- Add text in HTML file.
Document
- Create, edit, remove and replace HTML nodes
- Extracting CSS styles for particular HTML node
- Convert HTML documents into various supported image formats: JPEG, PNG, BMP, TIFF, GIF
- Convert HTML documents to PDF format
- Convert HTML documents to XPS format
- Convert HTML documents to DOCX format
- Convert HTML documents to Markdown format
- Convert HTML documents to MHTML format