Convert from HTML
Contents
[
Hide
]
Convert from HTML in Java
The GroupDocs.Conversion (which is a part of Conholdate.Total for Java) allows you to easily convert your HTML document into various other file formats.
Here for an instance, the example below shows that how an HTML to PDF conversion code snippet can be written in Java language:
// Load the source HTML file
Converter converter = new Converter("sample.html");
// Set the convert options for PDF format
PdfConvertOptions options = new PdfConvertOptions();
// Convert to PDF format
converter.convert("converted.pdf", options);