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

Free Support Forum - aspose.com

HTML to PDF block external online content

I would like to use Aspose.HTML for converting html (loaded from e-mail message) to PDF without loading external content from http,https sources. Is there a way how to do it?



Thank you for contacting support.

Would you please share a sample HTML file with us, so that we may investigate which tags can possibly include external content like are there external images only or if any other tag can include external content, and then proceed accordingly to help you out.

I can’t provide sample file. I have only file which contains external images but I supose there can be other tags with src atribute that can link to external conten. I think you can find this in html documentation. If it is any help Aspose.Words have handler on external content:
Dim options As New Aspose.Words.LoadOptions()
options.LoadFormat = Aspose.Words.LoadFormat.Mhtml
options.ResourceLoadingCallback = New HandleURIResourceLoading

so if you had similar function it would be awesome.



Thank you for elaborating it.

We have logged a ticket with ID HTMLNET-1532 in our issue management system for further investigations. We will let you know as soon as some significant updates will be available in this regard.