> If you want a generic solutions then the option is to convert
> each pdf page to an image (with gs) and then make the white transparent.
I have many images in my pdf files; them derived from following code:
byte[]bytepixels=new byte[pixels.length*3];
for (int n=0;n<pixels.length;n++)
{
bytepixels[3*n]=(byte)(pixels[n]>>16);//red
bytepixels[3*n+1]=(byte)(pixels[n]>>8);//green
bytepixels[3*n+2]=(byte)(pixels[n]);//blue
}
i=com.lowagie.text.Image.getInstance(d.width,d.height,3,8,bytepixels);
Can I make the white transparent using a data buffer, and non a gif file? I
use com\lowagie\text from itext-1.3.jar.
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions