<wasegraves <at> bellsouth.net> writes:

> 
> I'm somewhat mystified by your efforts to pre-process images that are already
in formats that can be
> handled entirely by iText methods. iText has all the methods you need to
determine the dimensions of any
> image (that it is designed to employ). You can then use those dimensions to
determine the scale factor
> needed to scale the images to the sizes you want.
> 
> Please read Chapter 5 and adapt the examples you find there to your own
situation. You might also try reading
> the fine documentation.
> 
> Cheers,
> Bill Segraves
> 

Yes I have the book, and I've read it at least once all the way through and
refer to it often. The reason for the pre-processing is that the image gets
loaded into the program once and then saved and used every time they use the
program. If I only scale an image thats say, 2 megs and 2000 pixels wide that
the user selects, but the widest the program can use is 500 pixels, then by
reducing the image is better than scaling as the image size will be smaller. So
a 30k png will be inserted into the pdf rather than a 200k 'scaled' pdf. Unless
I'm missing something here, scaling and image still uses the original image,
just like in an html document. 

If I'm wrong about this, please let me know and I'll just save whatever original
they give me and scale it.

Dominic


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
[email protected]
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

Reply via email to