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

Free Support Forum - aspose.com

An image in the html does not appear in the pdf after conversion using java


we are using the aspose pdf for java to convert html to pdf in our product. One of our customers is complaining that an image does not appear in the output pdf. The source of the image is an https link to the image file < img src=“https://…/logo.png” /> I tried to save the image to a file and use a relative path to the file, and the image appears in the output pdf, no problems.

I am attaching the source html with the problem image to the topic. What can be wrong with the image when its source is the provided link? I had had several reports about missing other images when their sources are https links so I thought there may be issues with https links but I cannot reproduce the problem with those images after upgrading to the 21.8 aspose version.

The html displays the image correctly.

Input html: input.zip

The code used to convert html to pdf:

HtmlLoadOptions options = new HtmlLoadOptions();
IDocument document = new Document("input.html", options);

Thank you

Arjana Bivainiene


We were able to reproduce the issue in our environment while using 22.3 version of the API. Therefore, it has been logged as PDFJAVA-41566 in our issue tracking system for the sake of correction. We will further look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.

We are sorry for the inconvenience.