Hi all,
 
I am having problems in setting the image size in HTML reports using Itext.
Here is my code
 
  Image  imageLeft = Image.getInstance(reportDTO.getLeftImage());
  imageLeft.scaleToFit(100,30);
 
This works fine in both PDF and RTF but when it is rendered in HTML image is shown in the orginal size.

Should I use any other scaling methods instead.

Any help would be appreciated.
 
Image format can be Jpeg,PNG,BMP.
 
 
Thanks
Joe
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to