Using Aspose.HTML for Java in Docker and Headless Mode

Aspose.HTML for Java does not require an X11 or Wayland display server for document processing and conversion. Use a compatible Java runtime and install the fonts required by the source documents when rendering to PDF, XPS, or images.

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

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: