Basic table test

Table with style border-collapse:collapse

Simple Cell 1.1 Simple Cell 1.2 Simple Cell 1.3
Simple Cell 2.1 Simple Cell 2.2 Simple Cell 2.3

Default table no styles

Simple Cell 1.1 Simple Cell 1.2 Simple Cell 1.3
Simple Cell 2.1 Simple Cell 2.2 Simple Cell 2.3

Table with attribute border="60"

Simple Cell 1.1 Simple Cell 1.2 Simple Cell 1.3
Simple Cell 2.1 Simple Cell 2.2 Simple Cell 2.3

Table with attribute border="5" and style border-collapse:collapse

Simple Cell 1.1 Simple Cell 1.2
Simple Cell 2.1 Simple Cell 2.2 Simple Cell 2.3

Complex tables

Complex 1

Cell 1
Cell 2
  1. ListItem 1
  2. ListItem 2
WithOneLargeWord
Cell 3 containing just normal words to fill the contents of this cell. Cell 3 containing just normal words to fill the contents of this cell.
Cell 1
Cell 2
  1. ListItem 1
  2. ListItem 2
WithOneLargeWord
Cell 3 containing just normal words to fill the contents of this cell. Cell 3 containing just normal words to fill the contents of this cell.

Complex 2

Table with attribute cellspacing=10px and styles:

Note: repeat-header and repeat-footer are NOT real HTML attributes, but only work in combination with this XMLWorker. These two styles are used by iText to repeat headers and footers of large tables that are split over several pages.

Different row types:

A row with styles background-color:rgb(160,160,160)

Different cells with attributes:

Different cells with styles like:

Footer 1,1 Footer 1,2 Footer 1,3 Footer 1,4
Footer 2,1 Footer 2,2 Footer 2,3 Footer 2,4
Header 1,1 Header 1,2 Header 1,3 Header 1,4
Header 2,1 Header 2,2 Header 2,3 Header 2,4
Cell 1,1 more content Cell 1,2 more content

Cell 1,3

Cell 1,4-1,5
Cell 2,1-2,2 Cell 2,3 (- 3,3) with rowspan=2 Cell 2,4 more content and a LongWordWithALotOfLetters to try to let this table fall of the page.
Cell 3,1 Cell 3,2 more content and other stuff to cause the content to fall of the page. Cell 3,5-
4,5-
5,5
This is the caption of this table
Cell 4,1 - 4,2 Cell 4,3 (- 5,3) Cell 4,4
Cell 5,1 Cell 5,2 more content and other stuff to cause the content to fall of the page.
Cell 6,1
Cell 7,1 Cell 7,2 with content in it to split this table across several pages to show the repeat-header and repeat-footer css styles.