<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Mark,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I don't have any special insight on this, but I was
thinking before when I read your first posting that the engine would not be
able to know the height on just one pass precisely because of the variable
height of the text. It seems to me you have to get feedback from the engine
as an intermediary stage and provide the height on a second
pass.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jim Mott</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=markciliavincenti@gmail.com
href="mailto:markciliavincenti@gmail.com">Mark Cilia Vincenti</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=xep-support@renderx.com
href="mailto:xep-support@renderx.com">xep-support@renderx.com</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> December 10, 2008 3:33 AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [xep-support] Re: Image
scaling</DIV>
<DIV><BR></DIV>
<DIV>Hi Alexei,</DIV>
<DIV> </DIV>
<DIV>Thanks for your email.</DIV>
<DIV>Unfortunately it's the height I don'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><<A
href="mailto:agagarinov@renderx.com">agagarinov@renderx.com</A>></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><fo:block
line-height="0pt"><BR> <fo:external-graphic<BR>
content-width="scale-to-fit"
content-height="scale-to-fit"<BR>
scaling="non-uniform"
scaling-method="resample-any-method"><BR></DIV>...<BR></BLOCKQUOTE><BR>You
should set the viewport'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 'auto' and it means that viewport'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><fo:external-graphic width="100%"
content-width="scale-to-fit" src="..."><BR><BR>But you cannot scale the
image'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> Alexey Gagarinov<BR>RenderX
<DIV>
<DIV></DIV>
<DIV class=Wj3C7c><BR><BR>-------------------<BR>(*) To unsubscribe, send a
message with words 'unsubscribe xep-support'<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></BLOCKQUOTE></BODY></HTML>