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);
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.