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

Free Support Forum - aspose.com

Image inside HTML with invalid Path causes the code to break


I have used "Text" object for HTML rendering. The HTML can contain tags with invalid path or non-existant image. This causes the code to break. Any Ideas how to resolve this?

With regards,

Rajat Nayyar

Hi Rajat,

In order to test the scenario, I have used the following simple HTML contents and I am unable to notice any issue. Can you please share the source HTML that you are using or update the following contents so that I can reproduce the problem over my end. We apologize for this inconvenience.




<img src=“d:<span class=“attr”>pdftest<span class=“attr”>logo.pngalt=“Angry face/>




Please find the code enclosed. Here Image tag refers to a Web URL which does not exist and causes it to break.

Dim objBookMarkLInk As New Text("check this outAngry face")
objBookMarkLInk.IsHtmlTagSupported = True
objBookMarkLInk.ID = "FirstPage"

with regards,

Rajat Nayyar

Hi Rajat,

have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as <span style=“font-family:“Arial”,“sans-serif””>PDFNEWNET-30559
. We
will investigate this issue in details and will keep you updated on the status
of a correction.<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif””><span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif””>

apologize for your inconvenience.