Chapter 6. Constructing tables
This chapter covers
Working with
PdfPTable
Working with
PdfPCell
What about class
Table
?
If asked what iText’s primary goal is, different people provide different answers depending on the way they use iText. I use iText mostly to produce reports. If you ask me for the most important components when generating such a report, I don’t have to think twice. My answer is: tables, tables, and tables. I repeat the word three times and not without reason; the table class comes in three different flavors: PdfPTable
, Table
, and SimpleTable
.
In this book, we’ll focus mainly on the most flexible and most important table class: PdfPTable
. We’ll spend two examples on class Table
, but only to list some of its advantages. We’ll use
Get iText in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.