Convert HTML file to PDF file using ITextSharp
I'd like to accomplish the following: Given the path name of an html file, and the desired pathname of a pdf file, convert the HTML file to PDF using ITextSharp. I've seen plenty of code samples which do close to this but not exactly what I need. I believe my solution will need to use the iTextSharp.text.html.simpleparser.HTMLWorker.ParseToList() function but I'm having trouble getting this to work with an actual HTML file and outputting an actual PDF file. public void GeneratePDF(string htmlFileName, string outputPDFFileName) {...} is the function I'd really like to get working properly.