Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.HTML for Java is a headless document-processing library for creating, loading, editing, navigating, saving, and converting HTML-related documents. It supports HTML, XHTML, SVG, EPUB, MHTML, and Markdown source formats and provides APIs based on familiar web platform concepts such as DOM, CSS, JavaScript, SVG, and Canvas.
The library processes documents without opening an interactive browser window. It is intended for document manipulation, data extraction, saving, rendering, and conversion rather than browser UI automation.
Aspose.HTML for Java provides a DOM-based API centered on the HTMLDocument class for working with document structure, content, attributes, and styles.
You can inspect a loaded document and select the nodes or values needed by an application.
See HTML Navigation for Java examples using DOM traversal, XPath, and CSS selectors.
The Converter class provides conversion methods for HTML-related sources. Supported output workflows include:
Conversion support depends on the source format and the selected save options. See Supported File Formats for the input and output matrix and Converting Between Formats for format-specific Java workflows.
| Feature area | Aspose.HTML for Java capabilities |
|---|---|
| DOM | Parse HTML and XHTML, inspect document structure, and create, edit, replace, or remove nodes. |
| CSS | Read and modify styles, apply user stylesheets, and use CSS during document rendering. |
| JavaScript | Process scripts associated with a document, configure execution timeouts, or restrict scripts through sandbox settings. |
| SVG | Load, inspect, edit, save, and render SVG documents. |
| HTML Canvas | Process canvas content created by document scripts and render it as part of an HTML document. |
| Resource handling | Load linked resources and control how CSS, images, scripts, and linked documents are handled when saving content. |
Aspose.HTML for Java organizes related functionality into packages for HTML documents and DOM operations, CSS, SVG, rendering, saving, conversion, networking, and runtime services. The following diagram provides a high-level view of the API structure and helps identify the package associated with a particular document-processing task.
Use the diagram as an overview when exploring the library. For the current list of packages, classes, methods, and properties, see the Aspose.HTML for Java API Reference.
Aspose.HTML for Java can be used in Java applications on supported Windows, Linux, and macOS environments. You can manage the dependency with Maven or Gradle or add the library JAR manually. A JDK is required to compile and build an application, while the runtime must be compatible with the selected library release.
See System Requirements for Java and operating system compatibility and Installation for dependency configuration.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.