Hi,
I hope Chris have understood my problem correctly. I am generating the
graphs dynamically by calling a servlet which will generate the graph for
me.
<fo:block>
<fo:external-graphic content-type="image/gif" src=
"url('http://localhost:8080/hr/exec/comp/personal/protect/ {$imageUrl1}')"
scaling="uniform"/>
</fo:block>
I have methods to get the height and width of the image that is generated.
But since from the xsl, i am calling a different http request, i don't have
the access to my methods. Depending on the data, the width and height of
the image is different. I am not storing the image as a physical file. It
is dynamically generated by a servlet and flushed to the outputstream. Is
there any way to get the image's height and witdth?. I want to place the
exact height and width. If I don't specify them then FOP outputs the image
at 72dpi and the quality of my image is very bad. I need to align two
graphs adjacent to each other. Hence their width is a must.
Your suggestions are greatly appreciated.
Thanks and regards
Muthu
I believe if you specify only the width, it will scale the height proportionately (I don't think you need to specify 'scaling="uniform"'):
<fo:block>
<fo:external-graphic content-type="image/gif" width="12cm" src=
"url('http://localhost:8080/hr/exec/comp/personal/protect/ {$imageUrl1}')"/><fo:external-graphic content-type="image/gif" width="12cm" src=
"url('http://localhost:8080/hr/exec/comp/personal/protect/ {$imageUrl2}')"/>
</fo:block>
or specify content-width:
<fo:block>
<fo:external-graphic content-type="image/gif" content-width="12cm" src=
"url('http://localhost:8080/hr/exec/comp/personal/protect/ {$imageUrl1}')"/><fo:external-graphic content-type="image/gif" content-width="12cm" src=
"url('http://localhost:8080/hr/exec/comp/personal/protect/ {$imageUrl2}')"/>
</fo:block>
(try them both--one may work better than the other).
Hope this helps!
Web Maestro Clay
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
