Html to Pdf conversion without resolving external content

We use HtmlToPdf library to convert html documents provided by clients to PDF. Such html documents can contain elements that load additional content (e.g. an img that has a src attribute, an iframe etc.). We want to disable loading of ALL content external to the html document so that only the data contained in the html document is converted (e.g. an img would require the image data to be inline and not from an external source).

Our problem is that HtmlToPdf loads this external content. Is there a way of preventing this?


Please see this post.