I'm attempting to use the solution outlined here for generating a pdf document from a view, but keep getting the "Illegal character in path" error when I get to this line:
var parsed = iTextSharp.text.html.simpleparser.HTMLWorker.ParseToList(htmlRdr, null);
The view I am returning contains multiple partial views and uses a master page, if it helps. Any thoughts on how to protect the html during parsing?