Hi,

i'm trying to generate a pdf using the iText (5.0.5) lib.
But i'm having trouble getting images imported.

Java Code:
 public static final String RESOURCE = "img/test.jpeg";
        java.awt.Image awtImage =Toolkit.getDefaultToolkit().createImage(RESOURCE);
        Image img = Image.getInstance(awtImage, null);
        document.add(img);
this is the code that's giving me problems.
it seems to be able to generate the awtImage, but converting it to an Image gives this error: java.awt.Image fetch aborted or errored