Using the sample codes from here I come up with these codes -
var my_html = this.GetmyReportHtml(); var my_css = this.GetmyReportHtmlCss(); Byte[] b
Found out the problem. In this line of codes -
using (var doc = new iTextSharp.text.Document(PageSize.LETTER))
PageSize.LETTER can not be passed in.