O'Reilly logo

iText in Action: Creating and Manipulating PDF by Bruno Lowagie

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required