Skip to main content
Skip table of contents

Table and cell events to draw borders

These examples were written in answer to questions such as:

celltitle

We've encountered an issue exporting this macro. Please try exporting again later.

##GITHUB:https://github.com/itext/itext-publications-samples-dotnet/blob/develop/itext/itext.samples/itext/samples/sandbox/tables/CellTitle.cs##

customborder

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/develop/src/main/java/com/itextpdf/samples/sandbox/tables/CustomBorder.java##

##GITHUB:https://github.com/itext/itext-publications-samples-dotnet/blob/develop/itext/itext.samples/itext/samples/sandbox/tables/CustomBorder.cs##

dottedlinecell

We've encountered an issue exporting this macro. Please try exporting again later.

##GITHUB:https://github.com/itext/itext-publications-samples-dotnet/blob/develop/itext/itext.samples/itext/samples/sandbox/tables/DottedLineCell.cs##

dottedlinecell2

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/develop/src/main/java/com/itextpdf/samples/sandbox/tables/DottedLineCell2.java##

##GITHUB:https://github.com/itext/itext-publications-samples-dotnet/blob/develop/itext/itext.samples/itext/samples/sandbox/tables/DottedLineCell2.cs##

dottedlineheader

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/develop/src/main/java/com/itextpdf/samples/sandbox/tables/DottedLineHeader.java##

##GITHUB:https://github.com/itext/itext-publications-samples-dotnet/blob/develop/itext/itext.samples/itext/samples/sandbox/tables/DottedLineHeader.cs##

roundedcorners

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/develop/src/main/java/com/itextpdf/samples/sandbox/tables/RoundedCorners.java##

##GITHUB:https://github.com/itext/itext-publications-samples-dotnet/blob/develop/itext/itext.samples/itext/samples/sandbox/tables/RoundedCorners.cs##

tableborder

We've encountered an issue exporting this macro. Please try exporting again later.

##GITHUB:https://github.com/itext/itext-publications-samples-dotnet/blob/develop/itext/itext.samples/itext/samples/sandbox/tables/TableBorder.cs##

Results

cmp_cell_title.pdf

cmp_custom_border.pdf

cmp_custom_border2.pdf

cmp_custom_border3.pdf

cmp_dotted_line_cell.pdf

cmp_dotted_line_cell2.pdf

cmp_dotted_line_header.pdf

cmp_rounded_corners.pdf

cmp_tables_border.pdf

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.