I m using the Itextsharp v5.4.2 with mvc4 web app, when trying to add the view returned on the page, with few javascripts loaded, it is failing to parse the html string in the html parser of the itextsharp.
Kindly help me to know like is there any alternate way can parse the webpage to be converted to pdf using itextsharp. Correct me if i m using the wrong approach.
<script type="type/javascript">
$(document).ready(function(){});
</script>
<html><table>adsfasdf..</table> some table elements.........</html>
C#code:
PdfWriter writer= PdfWriter.GetInstance(doc, new FileStream(pdfpath + "/abcdtest.pdf", FileMode.Create));
doc.Open();
var parsedHtmlElement = HTMLWorker.ParseToList(new StringReader(decodedHtmlElement), null);