images added to pdf in servlet show up all black or grey in pdf
- From: "Dennis Brennan" <dennisbrennan (at) gmail.com>
- Date: Fri, 16 Jun 2006 22:52:34 -0700
Hi,
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
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions