---
Product: Aspose.PDF
Platform: java
Page Type: docs
Canonical URL: https://docs.aspose.org/pdf/java/developer-guide/html
---

# HTML Conversion

HTML to PDF and PDF to HTML conversion in Aspose.PDF FOSS for Java.

## HtmlToPdfConverter

`HtmlToPdfConverter` converts HTML content into a PDF document. `CssContext` provides
CSS context for rendering inline and linked stylesheets during the conversion.

## PdfToHtmlConverter

`PdfToHtmlConverter` generates HTML output from a PDF document. The output can be
configured for single-file or multi-file HTML output modes.

## CssContext

`CssContext` manages CSS state during HTML-to-PDF conversion, tracking inherited
style properties and resolving cascaded values for each HTML element encountered
in the input.

## See Also

- [Aspose.PDF for Java — Enterprise Documentation](https://docs.aspose.com/pdf/java/)