> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of beppe costagliola > Sent: Wednesday, March 15, 2006 10:55 AM > To: [email protected] > Subject: [iText-questions] image.scalePercent > > I'm trying to scale a watermark. > > In the onOpenDocument I coded: > makitaImage = Image.getInstance("/pdf/" > +"Makita_red.jpg"); > makitaImage.scalePercent(75); > > In the onEndPage: > cb.addImage(makitaImage, .....); > > but the image does not resize. >
It will resize depending on what you put in those '.....'. If you want it to resize your way: makitaImage.setAbsolutePosition(0, 0); In the onEndPage: cb.addImage(makitaImage); Paulo ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
