// Instantiate the image!
Image image = Image.get(getInputPath() + java.io.File.separator + "images" + java.io.File.separator + "gnu.jpg");
// Set the position of the image in the page!
composer.applyMatrix(200,0,0,200,(pageSize.getWidth()-200)/2,(pageSize.getHeight()-200)/2);
// Show the image!
image.toInlineObject(composer); // Transforms the image entity into an inline image within the page.
}
composer.flush();
}
}