HTML to PDF block external online content


#1

Hi,
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?

Thanks.
Felix


#2

@pilscom

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.


#3

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.

Thanks


#4

@pilscom

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.