The Heist
The Heist

Reputation: 1442

Add dashed-line border for PdfPcell in PdfPtable using itext?

How to add Dashed-line Border to PdfPcell in PdfPTable using iText in android?

Upvotes: 1

Views: 2323

Answers (1)

Bruno Lowagie
Bruno Lowagie

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

Related Questions