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

Free Support Forum - aspose.com

Issue with image

When using the HTML to pdf. i cant create a pdf from an html stream, but the embedded images that were in the html, does not copy to the pdf. Can you tell me what is wrong?
var destinationLocation = “”;
var fileAsBytes = File.ReadAllBytes(filePathWithFileName);
var memoryStream = new MemoryStream(fileAsBytes);
var document = new HTMLDocument(memoryStream , Uri.UriSchemeHttp);

        var options = new Aspose.Html.Saving.PdfSaveOptions();
        Converter.ConvertHTML(document, options, destinationLocation);


Can you please share the sample source HTML with us? We will test the scenario in our environment and address it accordingly.

ImagesOne.pdf (172.5 KB)
ImagesOne.7z (113.5 KB)


We are testing the scenario in our environment and will get back to you shortly.


We were able to reproduce the similar issue in our environment while testing the case with Aspose.HTML for .NET 21.9. Hence, an issue as HTMLNET-3385 has been logged in our issue tracking system. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.