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

From: Rutten, Henk <hrutten@GrafiData.nl>
Date: Thu Mar 12 2009 - 00:29:00 PST

Hi Jan,

Have you tried to define the border in the <fo:external-graphic>?:
<fo:block>
<fo:external-graphic src="url(image.gif)" width="100%" height="auto" content-width="scale-to-fit" content-height="100%" border="solid 0.5pt silver"/>
</fo:block>

Kind regards,
Henk Rutten

-----Oorspronkelijk bericht-----
Van: owner-xep-support@renderx.com [mailto:owner-xep-support@renderx.com] Namens Jan To¹ovskı
Verzonden: donderdag 12 maart 2009 8:48
Aan: xep-support@renderx.com
Onderwerp: [xep-support] RE: Image border in scale-to-fit mode

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?

Jan

> 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

-------------------
(*) 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 01:19:21 2009

This archive was generated by hypermail 2.1.8 : Thu Mar 12 2009 - 01:19:22 PST