Reputation: 1442
How to add Dashed-line Border to PdfPcell in PdfPTable using iText in android?
Upvotes: 1
Views: 2323
Reputation: 77528
Set the border of the cell to NO_BORDER
and define a PdfPCellEvent
instead. Draw the border in the event, using a line dash pattern.
For cell events, see http://itextpdf.com/themes/keyword.php?id=201
For dashed lines and drawing rectangles, see PathConstructionAndPainting and GraphicsStateOperators.
Upvotes: 2