Giljo Scaria wrote:
> 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.

I think this is a problem in HtmlWriter (it probably
uses the wrong method to get the image width and heigth).
I can't look at the code now (I'm not at home or at work),
but if you succeed in fixing the problem in HtmlWriter,
I can integrate your solution in the next release.
br,
Bruno

-------------------------------------------------------------------------
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