Hi, i would like to know if Aspose offers a solution on converting a web page to a tiff file, in other words, a collection of screenshots of the web page.
I want to provide just the url of the web page.
I have found this code sample:
// Create and initialize URL
URL oracleURL = new URL("https://docs.oracle.com/javase/tutorial/networking/urls/readingURL.html");
// Get web page as input stream
InputStream is = oracleURL.openStream();
// Initialize HTML load options
HtmlLoadOptions htmloptions = new HtmlLoadOptions();
// Load stream into Document object
Document pdfDocument = new Document(is, htmloptions);
// Save output as PDF format
pdfDocument.save("HTML-to-PDF.pdf");
However this converts the web page to a pdf with a bad format, images are missing and the text overlaps. What would you suggest?
PS
I tried to use
Image imageFile = Image.load(is);
just like the code sample above but i get an exception with the message
class com.aspose.imaging.coreexceptions.ImageLoadException: Cannot open an image. The image file format may be not supported at the moment.