https://blog-qa.aspose.com/html/save-webpage-url-pdf-java/
Save Webpage as PDF in Java