Chapter 5. Inserting images

This chapter covers

  • Image types supported in iText

  • com.lowagie.text.Image vs. java.awt.Image

  • Image properties

In the previous chapter, we talked about this quick brown fox jumping over that lazy dog. To take a quote from David Lynch’s movie Wild at Heart, “Mentally you picture my dog, but I haven’t told you the type of dog which I have. Perhaps you even picture Toto, from the ‘Wizard of Oz.’” That’s definitely not the kind of dog I’m thinking of. Wouldn’t it be nice if you could add a picture of a specific fox and a specific dog in the document? If so, what types of images does iText support? Those and other questions will be answered in this chapter.

iText supports a range of standard image types and adds some extra types ...

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.