In various cases, you may need to convert a collection of images to a PDF file. For example, you may want to insert all images from an album into a single PDF file. On the other hand, you may need to generate PDF from the images of a scanned document. In order to deal with such cases, this article covers how to generate a PDF from multiple images using Java.