Copyright
Brief Table of Contents
Table of Contents
Praise for the First Edition
Preface
Preface to the First Edition
Acknowledgments
About this Book
About the Title
About the Cover Illustration
1. Creating PDF documents from scratch
Chapter 1. Introducing PDF and iText
1.1. Things you can do with PDF
1.2. Working with the examples in this book
1.3. Creating a PDF document in five steps with iText
1.3.1. Creating a new Document object
1.3.2. Getting a PdfWriter instance
1.3.3. Opening the Document
1.3.4. Adding content
1.3.5. Closing the Document
1.4. Summary
Chapter 2. Using iText’s basic building blocks
2.1. Illustrating the examples with a real-world database
2.2. Adding Chunk, Phrase, Paragraph, and List objects
2.2.1. The Chunk object: a String, a Font, and some attributes
2.2.2. The Phrase object: a List of Chunks with leading
2.2.3. Paragraph object: a Phrase with extra properties and a newline
2.2.4. Distributing text over different lines
2.2.5. The List object: a sequence of Paragraphs called ListItem
2.2.6. The DrawInterface: vertical position marks, separators, and tabs
2.3. Adding Anchor, Image, Chapter, and Section objects
2.3.1. The Anchor object: internal and external links
2.3.2. Chapter and Section: get bookmarks for free
2.3.3. The Image object: adding raster format illustrations
2.3.4. Summary
Chapter 3. Adding content at absolute positions
3.1. Introducing the concept of direct content
3.1.1. Direct content layers
3.1.2. Graphics state and text state