Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to visible Cell Border for only right and bottom in Itext Pdf cell

Tags:

itext

when I am trying cell.setBorder(Rectangle.BOTTOM);

cell.setBorder(Rectangle.RIGHT);

It is overlapping bottom border and setting only right border of selected cell

same thing happened in reverse manner with

cell.setBorder(Rectangle.BOTTOM);

cell.setBorder(Rectangle.RIGHT);

Does it possible to set bottom and right border of cell together for selected cell ?

like image 509
user1409935 Avatar asked Aug 16 '12 05:08

user1409935


1 Answers

In iTextSharp I have used:

cell.Border = Rectangle.BOTTOM_BORDER | Rectangle.RIGHT_BORDER;

You could try:

cell.setBorder(Rectangle.BOTTOM | Rectangle.RIGHT);
like image 150
StevenGodin Avatar answered Sep 28 '22 22:09

StevenGodin