隐藏table的单元格边框
PdfPCell的方法disableBorderSide(1);
参数为int型。
其中具体参数:
/隐藏上边框 // cell.disableBorderSide(1); //隐藏下边框 // cell.disableBorderSide(2); //隐藏上、下边框 //cell.disableBorderSide(3); //隐藏左边框 //cell.disableBorderSide(4); //隐藏左、上边框 //cell.disableBorderSide(5); //隐藏左、下边框 //cell.disableBorderSide(6); //隐藏左、上、下边框 //cell.disableBorderSide(7); //隐藏右边框 //cell.disableBorderSide(8); //隐藏右、上边框 // cell.disableBorderSide(9); //隐藏右、下边框 //cell.disableBorderSide(10); //隐藏右、上、下边框 //cell.disableBorderSide(11); //隐藏左、右边框 //cell.disableBorderSide(12);//左右没了 //隐藏上、左、右边框 //cell.disableBorderSide(13);//只剩下 //隐藏下、左、右边框 //cell.disableBorderSide(14);//只剩上 //隐藏全部 //cell.disableBorderSide(15);//全没了
原文:https://www.cnblogs.com/zouhong/p/13184960.html