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 7. Constructing columns

This chapter covers

  • Advanced page layout with ColumnText

  • Text mode vs. composite mode

  • Automated columns with MultiColumnText

In the examples so far, you’ve created a Document object defining a certain page size and well-defined margins. The layout of the building blocks you added to this document was adapted to fit inside this rectangle (PageSize minus margins). With class ColumnText, you have an object at your disposal that is similar. You can create a column object, add different types of building blocks, and then decide how the content has to be laid out: You can define a Y position; you can define the left and right borders of the column as straight or irregular lines; and you can also control the flow of the content. ...

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