There is not DPI setting in a PDF. Every image can have a different DPI.
You MUST scale the image to the finished size you need it. We're not talking JAVA scaling, we're talking iText scaling. Create and iText image and scale it to the finished size you want. -Bill > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Iyad Jabri > Sent: Monday, September 24, 2007 10:58 AM > To: Post all your questions about iText here > Subject: Re: [iText-questions] adding hi-res images > > i'm dumping it as is. My impression is that iText would > adjust the size per the dpi. Also, if I scale it manually, > how is this going to affect the print quality? > > On 9/24/07, Bill Ensley <[EMAIL PROTECTED]> wrote: > > Are you placing the image at 7.5"x1.04" ? Or just dumping > it in as is? > > > > -Bill Ensley > > www.bearprinting.com > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] On > Behalf Of > > > Iyad Jabri > > > Sent: Monday, September 24, 2007 9:58 AM > > > To: [email protected] > > > Subject: [iText-questions] adding hi-res images > > > > > > I'm trying to add a 2250x311 JPG image with 300dpi > resolution to a > > > PDF document, expecting it to take up 7.5"x1.04" of the page, > > > however, it's taking several inches of space high and > bleeding out > > > of the page width wise, as if it's the normal 72dpi. I > debugged my > > > application and inspected the dpi attributes (dpiX and > dpiY) of the > > > com.lowagie.text.Image, and it's correctly set to 300dpi. > > > > > > Anybody knows what's going on and how I can get the right > resolution > > > used. > > > > > > Thanks, > > > Iyad > > > > > > -------------------------------------------------------------- > > > ----------- > > > This SF.net email is sponsored by: Microsoft Defy all challenges. > > > Microsoft(R) Visual Studio 2005. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > iText-questions mailing list > > > [email protected] > > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > Buy the iText book: http://itext.ugent.be/itext-in-action/ > > > > > > > > > ---------------------------------------------------------------------- > > --- This SF.net email is sponsored by: Microsoft Defy all > challenges. > > Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > iText-questions mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://itext.ugent.be/itext-in-action/ > > > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by: Microsoft Defy all > challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > Buy the iText book: http://itext.ugent.be/itext-in-action/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
