You should do some more research about the difference between image formats and find a java toolkit for working with images (which is what 1t3xt info has been suggesting in his own demented way). iText is not going to change the image or reduce the number of bytes. You need to use some other image toolkit to resize the image, maybe reduce the quality a little, to get it to the size and quality that's acceptable, before adding it to the document.
----- Original Message ----- From: "Ryan Wexler" <r...@iridiumsuite.com> To: "Post all your questions about iText here" <itext-questions@lists.sourceforge.net> Sent: Thursday, January 22, 2009 6:34 PM Subject: Re: [iText-questions] when i add an image to a pdf the edges arecut off > Well is there a tutorial or docs on changing compression levels using > itext when saving a document because I don't see much in the docs? > > I am trying keep the files reasonably small and the documents I am > compressing are generally but not always text documents captured > through a scanner. What compression technique do you recommend? > > > On Thu, Jan 22, 2009 at 12:44 PM, 1T3XT info <i...@1t3xt.info> wrote: > > Ryan Wexler wrote: > >> It appears as if the dpi and the pixels are the same, yet the size is > >> drastically different. > > > >> So why does the second one yield an image that is 10 times as big? > > > > Most of the other subscribers remain silent because they assume this is > > a rhetorical question. At least I do. If it isn't, please google for the > > words: "jpg lossy compression". > > -- > > This answer is provided by 1T3XT BVBA > > http://www.1t3xt.com/ - http://www.1t3xt.info > > > > -------------------------------------------------------------------------- ---- > > This SF.net email is sponsored by: > > SourcForge Community > > SourceForge wants to tell your story. > > http://p.sf.net/sfu/sf-spreadtheword > > _______________________________________________ > > iText-questions mailing list > > iText-questions@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > Buy the iText book: http://www.1t3xt.com/docs/book.php > > > > -------------------------------------------------------------------------- ---- > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php