I am using the following code to put an image into the pdf document.
final int WIDTH = 965 final int HEIGHT = 360 def f = request.getFile(\'file\') InputStr