简体   繁体   中英

Drawing a double line border to the cell in itext Table

I am using itext for creating the content in PDF.

I want to draw a double line border to the bottom of the cell in PdfPTable.

I tried using two cells, for one cell giving the border to TOP and for the other giving the border to BOTTOM.

But of no use.

Can anybody help me in this issue asap ...

You should turn the border off like this: setBorder(Rectangle.NO_BORDER); and then use cell events or a table event to add your custom borders. See for instance the DottedLineCell example. You'll need to adapt the code that draws the dotted lines by code that draws double lines.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM