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

Free Support Forum - aspose.com

Html to Pdf and iFrames

We are using Aspose.PDF 21.1.0.
I wonder if there is a way to not allow rendering of external resources when converting html to pdf?
We have tested with a html-file that includes an iFrame with a source to an external site. We noticed that some of the html from that page was rendered during the conversion. This may be a potential vulnerability for us.
(Also external images etc. is interesting to “not allow”.)


Would you please share your sample HTML file for our reference along with sample code snippet that you are using to convert it? We will test the scenario in our environment and address it accordingly.

AsposeTestApplicationHtmlToPdf.zip (119.8 KB)

See attached repo. Sample file inside “TestFiles” folder.
Our license file is not attached so you have to use your own.


We need to investigate further and analyze whether your particular requirements are feasible to achieve. For the purpose, an investigation ticket as PDFNET-50930 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.

We are sorry for the inconvenience.