This program shows how to create an image object without binding to a physical file. The program generates a PDF as an output file, featuring a graphic, but the graphic is drawn from a BufferedImage in memory, and not from another PDF file.
The BufferedImage class is a common way for Java systems to represent graphics images. This class specifies the dimensions of the image in pixels, where it is placed, the range of colors the pixels represent, and various constants, such as transparency, and the export format, like PNG or JPG.
This program demonstrates how to import images into a PDF file. The program will run without prompting you, and will create two PDF files, demonstrating how to import graphics from image files into a PDF file. One of the PDF output files is the result of graphics imported from a multi-page TIF file.