How to set a custom color in itext?

后端 未结 3 1616
你的背包
你的背包 2021-02-20 15:26

Thanks for taking the time to answer my question.

I\'m generating a PDF document using iText in Java. I need to set the column headers of a table a different colour than

3条回答
  •  死守一世寂寞
    2021-02-20 16:03

    Cell hcell = new Cell();   
    Color color = WebColors.getRGBColor("red");
    hcell.setBackgroundColor(color);
    

提交回复
热议问题