[iText-questions] Re: Watermark existing document

2005-09-18 Thread Marco
> 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. I resolved with i=com.lowagie.text.Image.getInstance(d.width,d.height,3,8,bytepixels,new int[]{0xFF,0xFF,0xFF,0xFF,0xFF,0xFF}); But I don't understund why I must insert an

[iText-questions] Re: Watermark existing document

2005-09-18 Thread Marco
> 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>16);//red