[xep-support] Re: external-graphic: max-height

From: Bastian Kroll <bk@classwizard.com>
Date: Thu Apr 07 2011 - 15:56:20 PDT

Hello Ken & Kevin,
you are very fast. But content-width="scale-down-to-fit" and content-height="scale-down-to-fit" give me the same result: The image is scaled, but the following text is going on at 40mm.
And: Yes, I´m using the latest version 4.19
Any other suggestions how I can solve this?

bastian

Am 07.04.2011 um 21:24 schrieb Kevin Brown:

> Ken beat my fingers to this answer.
>
> Note that scale-down-to-fit is available in the latest RenderX release.
> Ensure you are using 4.19 version for this feature.
>
>
> Kevin Brown
> skype:kbrown01
> kevin@renderx.com
> sales@renderx.com
> http://www.renderx.com
>
>
>
>
> -----Original Message-----
> From: xep-support-bounces@renderx.com
> [mailto:xep-support-bounces@renderx.com] On Behalf Of G. Ken Holman
> Sent: Thursday, April 07, 2011 12:20 PM
> To: RenderX Community Support List
> Subject: [xep-support] Re: external-graphic: max-height
>
> Have you tried "scale-down-to-fit" instead of
> "scale-to-fit" for the two properties?
>
> Scaling down to fit will not change the image if the image already fits:
>
> 7.15.4 "content-height"
> scale-down-to-fit
> "If the intrinsic content-height is less than or equal to the
> height of the viewport the content-height should be the
> intrinsic content-height. Otherwise the largest scaling-factor
> permitted will be applied to the content so that the scaled
> content-height is less than or equal to the height of the viewport. "
>
> I hope this helps.
>
> . . . . . . . . Ken
>
> At 2011-04-07 20:59 +0200, Bastian Kroll wrote:
>> Hello Everybody,
>> I have a problem with an external-graphic. I´m
>> getting every time the max-height, even if the image is smaller.
>> The following is given:
>> 1. max-width of the image (40mm)
>> 2. max-height of the image (40mm)
>> 3. the image can have different, not know sizes
>>
>> I used this FO
>> <fo:block><fo:external-graphic max-width="40mm"
>> src="url(file:////ClassWizard/Daten/Crossmedia/data/msa/ads/10/001080510/00
> 1080510.z)"
>> content-width="scale-to-fit"
>> content-height="scale-to-fit" /></fo:block><fo:inline
> ......>....</fo:inline>
>>
>> If the image is smaller than 40mm in height I´m
>> getting a white area after the image. It seems,
>> that the external-graphic is reserving the area
>> 40x40 and the inline-text is not beginning exact behind the image.
>>
>> Is there a solution to get the text right behind
>> the image if it is smaller in height? I tried
>> hours and hours to find a solution. I tried to
>> set up the max-height at the fo:block, too. Without any effects.
>>
>> Maybe someone can give me a hint.
>>
>> thanks in advance
>> bastian
>
>
> --
> Contact us for world-wide XML consulting & instructor-led training
> Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/
> G. Ken Holman mailto:gkholman@CraneSoftwrights.com
> Legal business disclaimers: http://www.CraneSoftwrights.com/legal
>
>
>
>
>
> _______________________________________________
> (*) To unsubscribe, please visit
> http://lists.renderx.com/mailman/options/xep-support
> (*) By using the Service, you expressly agree to these Terms of Service
> http://w
> ww.renderx.com/terms-of-service.html
>
> _______________________________________________
> (*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
> (*) By using the Service, you expressly agree to these Terms of Service http://w
> ww.renderx.com/terms-of-service.html

!DSPAM:87,4d9e411a63736118817974!

_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html
Received on Thu Apr 7 15:56:52 2011

This archive was generated by hypermail 2.1.8 : Thu Apr 07 2011 - 15:56:54 PDT