iTextSharp Can not Convert All HTML to PDF

后端 未结 1 930
春和景丽
春和景丽 2020-12-22 12:16

Using the sample codes from here I come up with these codes -

var my_html = this.GetmyReportHtml();
    var my_css = this.GetmyReportHtmlCss();

    Byte[] b         


        
相关标签:
1条回答
  • 2020-12-22 12:43

    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.

    0 讨论(0)
提交回复
热议问题