When this string
<DIV align=center> <SPAN>abc <SPAN > </SPAN>def </SPAN> </DIV>
is used to create an HtmlFragment it breaks the PDF generation process.
If the spaces after abc and def are removed, generation of t…...text = Regex.Replace(text, "(?s)<!--.*?-- " "); text = Regex.Replace(text...text = Regex.Replace(text, @"url['""].*?[" ""); text = Regex.Replace(text...