[xep-support] RE: Image border in scale-to-fit mode

From: Jan To¹ovskı <j.tosovsky@gmc.net>
Date: Wed Mar 11 2009 - 23:47:33 PST

Hello Everyone,

no ideas? If the image is narrower than width of available area, border is spread to the whole area. In XSLT template there is not possible to predict if the image will have to be scaled down or not and according to this information to handle images differently. I think that technically there is no problem to get necessary border size, but XEP renders it according to the specification, what is problem in this case. Should I change XSL-FO code for this somehow?


> there is used a quite handy method for all the images in my document to
> be scaled down to fit the available area. There is no need to specify
> the exact size. Now I've found one weird drawback. If the image should
> have a border, it is applied to the whole content area, not only to the
> image itself.
> <fo:block border="solid 0.5pt silver">
> <fo:external-graphic src="url(image.gif)" width="100%" height="auto"
> content-width="scale-to-fit" content-height="100%"/>
> </fo:block>
> Is there any solution how to avoid this behaviour?

(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Thu Mar 12 00:21:48 2009

This archive was generated by hypermail 2.1.8 : Thu Mar 12 2009 - 00:21:54 PST