Using Aspose.HTML for Java in Docker and Headless Mode
Overview
This document describes how the Aspose.HTML for Java library operates in environments without a graphical interface (headless mode), such as servers, Docker containers, or CI/CD pipelines. It also provides a reference for using the library within Docker images.
Using the Library in Headless Mode
Aspose.HTML for Java does not require a graphical environment for rendering or conversion tasks. It supports headless mode natively and avoids using GUI components from AWT or Swing. This makes it suitable for use in server-side applications, cloud services, and environments such as Docker, Jenkins, and other automation tools.
Benefits
- Ideal for automated document generation (HTML to PNG, PDF, etc.)
- Fully compatible with cloud infrastructure and Docker containers
- No dependency on a display server (X11, Wayland, etc.)
Example in Docker
You can find a working Docker example for using Aspose.HTML for Java on our GitHub:
Also refer to the official documentation: