On Apr 5, 2008, at 4:47 PM, TxRyan wrote: > Paulo Soares wrote: >> >> Scale the image (make it smaller) before inserting it in the PDF, >> this is >> the same as increasing the dpi. >> > > Yes, I experimented with that approach. But scaling results in > some pixel > degradation and while the size is correct, the quality is still > poor (worse > than the original image). I don't want my image manipulated, I > want it > placed in the PDF "as-is".
Then do that! Place it into the PDF "as is" - that's entirely under your control. What you need to consider is that the image data is placed into the PDF AS IF IT WERE 72 dpi. It's NOT REALLY 72 at that point, but the width/height for the pixel data is at 72dpi. NOW you need to consider what scaling factor you want the PDF renderer to use when it draws the image - that's defined EACH TIME you render the image - since you may use it more than once in the document. By setting the scale at render time, the PDF renderer can then use the best data for the best result. Leonard ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar