We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Web page/URL to TIFF

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

However this converts the web page to a pdf with a bad format, images are missing and the text overlaps. What would you suggest?

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.

Hi, thank you for your interest in Aspose.Imaging.
Unfortunately, Aspose.Imaging does not support HTML since it is not an image format at all.
Please, take a look at https://docs.aspose.com/imaging/java/supported-file-formats/

Do you know if it is possible to convert the HTML to some other type that is supported (if any) and then try to convert that file to tiff?
For example html to pdf and then pdf to tiff?

Maybe Aspose.HTML could help you?