See http://www.lowagie.com/iText/tutorial/ch06.html#resolution. iText doesn't do any downsampling, you'll have to use another library, such as JAI, to downsample the image before using it in iText.
Best Regards, Paulo Soares > -----Original Message----- > From: Shahzad Latif [SMTP:[EMAIL PROTECTED]] > Sent: Monday, July 15, 2002 14:30 > To: [EMAIL PROTECTED] > Subject: [iText-questions] image resolution > > Hi: > > I am experiancing trouble with image resolution and resulting PDF. To my > understanding, the default resolution is 72 DPI. My images are actually > 300 > DPI and I want them to be of 150 DPI in the PDF (scale percent say 48). > Here > is how I am doing: > > logoImg.scalePercent(48); > cb.addImage(logoImg, logoImg.scaledWidth()*logoImgLiteralScale, 0, 0, > logoImg.scaledHeight()*logoImgLiteralScale, > document.left()+leftrightIndent, > currentY - logoImg.scaledHeight()*logoImgLiteralScale); > > Where logoImgLiteralScale is the ratio of the size to which I want the > image > to stretch. Whatever scale percent that I use, the end result is always > 300 > DPI and also the PDF itself is always of the same size. I want to control > the resultion myself (72,150,300,400,600 DPI's). > > Any advice will be highly appreciated. > > Regards, > > Shahzad > > > > > > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
