<div>Hi Alexei,</div>
<div>&nbsp;</div>
<div>Thanks for your email.</div>
<div>Unfortunately it&#39;s the height I don&#39;t know, because if the text in the box wraps, then it would increase the height. I tried cheating using reference-orientation but it did not work.<br><br></div>
<div class="gmail_quote">2008/12/10 Alexei Gagarinov <span dir="ltr">&lt;<a href="mailto:agagarinov@renderx.com">agagarinov@renderx.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Mark,<br><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">&lt;fo:block line-height=&quot;0pt&quot;&gt;<br>&nbsp;&lt;fo:external-graphic<br>&nbsp; &nbsp; &nbsp; &nbsp;content-width=&quot;scale-to-fit&quot; content-height=&quot;scale-to-fit&quot;<br>&nbsp; &nbsp; &nbsp; &nbsp;scaling=&quot;non-uniform&quot; scaling-method=&quot;resample-any-method&quot;&gt;<br>
</div>...<br></blockquote><br>You should set the viewport&#39;s area using @width and @height attributes on the fo:external-graphic element.<br><br>If @width and @height are omitted then they are treated as &#39;auto&#39; and it means that viewport&#39;s area equals to the intrinsic size of the graphic.<br>
<br>And what you do is scaling the intrinsic size of the image to the ... yeah, to the same value.<br><br>So, in order to scale the graphics width to a table cell, you need the following:<br>&lt;fo:external-graphic width=&quot;100%&quot; content-width=&quot;scale-to-fit&quot; src=&quot;...&quot;&gt;<br>
<br>But you cannot scale the image&#39;s height to an arbitrary block (a table cell in your example) using a percentage value because the height of this block depends of its content.<br>So you should know the height of the surrounding box ahead and specify this length as a value of @height on fo:external-graphic.<br>
<br>Regards,<br>&nbsp;Alexey Gagarinov<br>RenderX 
<div>
<div></div>
<div class="Wj3C7c"><br><br>-------------------<br>(*) To unsubscribe, send a message with words &#39;unsubscribe xep-support&#39;<br>in the body of the message to <a href="mailto:majordomo@renderx.com" target="_blank">majordomo@renderx.com</a> from the address<br>
you are subscribed from.<br>(*) By using the Service, you expressly agree to these Terms of Service <a href="http://www.renderx.com/terms-of-service.html" target="_blank">http://www.renderx.com/terms-of-service.html</a><br>
</div></div></blockquote></div><br>