Java APIs to manipulate HTML files on the fly
Create, read, edit HTML documents including CSS styles and render to PDF & raster image formats.Download Free Trial
Aspose.Html for Java
Aspose.Html for Java is an advanced HTML manipulation API built to perform a wide range of HTML manipulation tasks directly within the Java applications.
Aspose.Html for Java allows to create, load, edit or convert (X)HTML documents on the fly, and without requiring additional software or tools. The API also provides a high fidelity rendering engine for fixed-layout formats such as PDF & XPS, and a number of raster image formats.
At A Glance
An overview of Aspose.Html for Java API.
- Customize PageSetup
- Encrypt PDF Documents
- Specify JPEG Compression
- Fixed Layout Formats
- Raster Image Formats
- Create HTML Pages
- Load Existing HTML
- Navigate Through HTML Nodes
- Extract CSS Styling Information
- Configure Document Sandbox
- Add/Update/Remove HTML Nodes
Aspose.Html for Java supports Java 1.6, 1.7 and 1.8.
- JSP/JSF Application
- Desktop Application
Supported File Formats
Aspose.Html for Java mainly supports HTML and XHTML formats. Along with native HTML file formats, the API can also load EPUB and MHTML files for various operations.
Advanced Java HTML Manipulation API Features
Create HTML pages from Scratch
Load existing HTML
Implement W3C HTML specifications
Lightweight & standalone component
Add, replace or remove HTML nodes
Extract CSS styling information
Load EPUB and MHTML file formats
Render HTML to raster image formats
Convert HTML to XPS and PDF
HTML to Fixed-Layout Format Conversion
Aspose.Html for Java provides the capabilities to create or load HTML files, and render the output in PDF and XPS.
The conversion process is highly customizable, allowing you to configure PageSetup aspects for the resultant fixed-layout formats, that is; you can specify the page numbers to be rendered, tweak the resultant page size or set the JPEG compression for the embedded images.
Rendering to Raster Image Formats
Aspose.Html for Java offers the high fidelity rendering engine at its core which can convert HTML pages to most commonly used raster image formats including TIFF, BMP, PNG & JPEG without requiring any additional software or tool.
Load & Manipulate ePub and MHTML Files
Aspose.Html for Java is capable of loading ePub and MHTML files to perform various operations including the conversion to fixed-layout and raster image formats.
Manipulate HTML Nodes
Aspose.Html for Java enables you to navigate through the HTML document either by elements, document, XPath or CSS selector queries, and insert, remove, replace HTML nodes on the go.
The HTML API enables you to configure a document sandbox that affects the processing of HTML documents, that is; the CSS styles in some cases are dependent on screen size.
Aspose.Html for Java allows to configure the environment independent of the execution machine.