On Saturday 12 May 2007, Thomas Bickel wrote: > Mark Hall wrote: > > Which version of iText are you using and what program are you using to > > view the RTF file? > > iText 2.0.2, Word 2003, OO 2.2 Writer Ok. My tests are run with the current CVS version and Word XP / OO 2.2.
Unfortunately I cannot confirm your problems. I've tried with images larger
and smaller than the document width/height and larger images are scaled down,
but smaller images are not scaled.
I see two possible causes:
a) Some problem with the images you are using.
b) A viewer problem.
I'm a bit unsure of how a) could happen, but perhaps you could send me one of
your images for me to test.
I'm also not sure about b), as at least OO 2.2 works for me, perhaps you could
also send me an RTF you've generated, so that I could have a look at that.
> This does what I intended to do but was confusing at first because as you
> can see I do not pass the adjusted sizes to the scaleToFit() method so
> plainWidth/Height are still in "page units". So why is the scaled size
> still always correct? It turns out that the twips value you use to write
> the scaled sizes just cancels out the error introduced in the scaleToFit()
> method so the images show up scaled to full page width. i.e. the twips
> value is 33% to hight and should be 15 and not 20 IMHO. (found out through
> trial and error by manually editing a rtf).
I'm a bit unclear on what you mean here, but it seems to point towards a
viewer problem, as everything seems to work fine for me.
Greetings,
Mark
--
In the Spring, I have counted 136 different kinds of weather inside of
24 hours.
-- Mark Twain, on New England weather
My GPG public key is available at:
http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc
pgpPI4JoXNamS.pgp
Description: PGP signature
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ 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/
