This sample shows how to create tables in PDF documents using Docotic.Pdf.Layout add-on.
You can use the LayoutContainer.Table method to add a table. Set table columns using the Table.Columns method.
Use Table.Cell methods to add cells to the table body. Cells can cover multiple columns or rows, use the TableCell.ColumnSpan and TableCell.RowSpan methods to set up spans.
Use the Table.Header method to define table header. Similarly, you can use the Table.Footer method to define table footer. When table content does not fit on a single PDF page, the library repeats the table header and footer on all pages.
This sample code uses free Docotic.Pdf.Layout add-on for Docotic.Pdf library.