Chapter 16. PDF streams

This chapter covers

  • Image and font streams
  • Adding and extracting file attachments
  • Creating portable collections
  • Integrating rich media

We’ve arrived at the final chapter of part 4. In this part, we’re turning PDF files inside out. In chapter 13, we explored the file structure and discussed the different objects. We focused on the content stream of pages in chapters 14 and 15.

In this chapter, we’ll continue working with streams: we’ll look at image and font streams, and you’ll find out how to add streams containing other files as attachments, and how to organize these files in a portable collection. We’ll finish this chapter with some really cool examples of adding multimedia annotations to a document and integrating ...

Get iText in Action, Second Edition 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.