Enquiry on the behaviour of Aspose.PDF for .net component v8.5

In Aspose.PDF for .net version 8.5, when I convert a html document with link to images hosted on the internet it seems to embed into the PDF, is this true that Aspose.PDF now will automatically embed images when converting html into PDF? Look forward to hearing from you soon.

Hi Alan,


Thanks for your interest in our products.

When converting HTML to PDF format, if the image is hosted over the internet/URL, the image is fetched during conversion process and embedded inside the PDF file. Please try using the following code snippet and in case you encounter any issue or you have any further query, please feel free to contact.

[C#]

// instantiate PDF object<o:p></o:p>

Pdf pdf = new Pdf();

// parse the HTML document

pdf.ParseToPdf("c:/pdftest/SampleFile.html");

// save the PDF document

pdf.Save(“c:/pdftest/EmbeedImages.pdf”);