You can do a lot with images in IText, including scaling, rotating,
masking, absolute positioning, borders, alignment etc. I'll only go through the basics here.
Get the "IText in Action" book if you want the full story on images. Here is a list
of the topics covered in this text:
Creating an Image
The com.itextpdf.text.Image is used to add images to IText PDF documents.
You can load images either from file or from a URL, like this:
import com.itextpdf.text.Document;
import com.itextpdf.text.Image;
import com.itextpdf.text.pdf.PdfWriter;
import java.io.FileOutputStream;
public class ImageExample {
public static void main(String[] args) {
Document document = new Document();
try {
PdfWriter.getInstance(document,
new FileOutputStream("Image.pdf"));
document.