Skip to main content
Skip table of contents

Tables

The PdfPTable class is one of the most popular classes in the context of document creation. Let's take a look at some questions and answers regarding tables, rows and cells.

How can I convert a CSV file to a table with a repeating header row?

How do I change the border color of a PdfPCell?

How do setMinimumSize() and setFixedSize() interact?

How does a PdfPCell's height relate to the font size?

How to add "continue on next page" / "continued from next page" to a table?

How to add a table to the bottom of the last page?

How to add an image and text to the same cell?

How to add an inner table surrounded by text?

How to add inline spacing in a PdfPCell?

How to add two images in one cell?

How to change width of single column of table?

How to create a nested column?

How to create a table based on a two-dimensional array?

How to create a table in which the cells have different widths?

How to create a table with complex borders?

How to define spacing and leading in PdfPCell objects?

How to define the width of a cell?

How to display barcodes in a matrix-like structure?

How to draw a borderless table in iTextSharp?

How to get the rendered dimensions of text?

How to introduce a rowspan?

How to invoke a page break for nested tables?

How to maintain a paragraph's indentation inside a table cell?

How to make a footer stick to bottom of every pdf page?

How to nest tables without extending the inner table?

How to prevent splitting a table?

How to resize a PdfPTable to fit the page?

How to resize an Image to fit it into a PdfPCell?

How to set up a table display?

How to split a row over multiple pages?

How to tell iText how to clip text to fit in a cell?

How to use multiple fonts in a single cell?

How to write a table header if part of a table is forwarded to the next page?

Is it possible to set a different alignment for text on the same line in the same cell?

What is the PdfPTable.DefaultCell property used for?

What's an easy to print "first right, then down"?

Why doesn't getDefaultCell().setBorder(PdfPCell.NO_BORDER) have any effect?

JavaScript errors detected

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

If this problem persists, please contact our support.