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