Not applying the CSS while generating PDF using iTextsharp.dll

前端 未结 3 1487
余生分开走
余生分开走 2020-12-09 06:54

I am generating PDF using iTextSharp.dll, but the problem is that I am not able to apply that CSS. I have one div:

 
3条回答
  •  攒了一身酷
    2020-12-09 07:12

    The correct way to reference the backgroud color is through the HtmlTags class

    styles.LoadTagStyle(HtmlTags.HEADERCELL, HtmlTags.BACKGROUNDCOLOR, "Blue");
    

提交回复
热议问题