Chapter 10. Constructing and painting paths

This chapter covers

  • PDF’s graphics state

  • iText’s direct content

  • PDF’s Coordinate System

This chapter will discuss the graphics state of a PDF page. This is a data structure that describes the appearance of a page using PDF operators and operands. This is the short explanation; the PDF Reference spends almost 300 pages on graphics and text, so you’ll understand this definition is incomplete.

I have selected the most important issues, and I’ll explain them from the point of view of the iText developer in the next three chapters. You’ll learn how to draw lines and shapes, and you’ll use this newly acquired knowledge in combination with class PdfPTable (see chapter 6) to draw custom cell borders and backgrounds. ...

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.