For more details, please visit Convert HTML to PDF in Java on Linux
Last active
December 22, 2021 20:28
-
-
Save aspose-com-gists/a6df66d24893ee919fee1d9fd3fc8b06 to your computer and use it in GitHub Desktop.
Convert HTML to PDF on Linux Programmatically in Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialize an HTML document from the input file | |
HTMLDocument document = new HTMLDocument("document.html"); | |
// Initialize PdfSaveOptions class object | |
PdfSaveOptions options = new PdfSaveOptions(); | |
// Convert HTML to PDF | |
Converter.convertHTML(document, options, "output.pdf"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment