When generating pdf from html, getting erros as : PdfException: Tag structure flushing failed: it might be corrupted.
public byte[] GenerateHTML(string html)