I have a servelt that adds a .gif when creating a pdf in a servlet. The code is like this...
ClassLoader cl = this.getClass().getClassLoader();
Image image = Image.getInstance(new URL("file://" + cl.getResource(imageName).getPath()));
image.setAlignment(Image.MIDDLE);
document.add(image);
I get no Excpetions and the the pdf opens fine in the browser, but the images are all black or grey. The same code with the same images works fine when I run it in a test outside of the servlet container.
Has anyone seen this behavior?
Thanks.
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
