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

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Thu Apr 07 2011 - 12:19:40 PDT

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. Im
>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/001080510.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 Im
>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
!DSPAM:87,4d9e0e5863731171520219!
_______________________________________________
(*) 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 12:19:57 2011

This archive was generated by hypermail 2.1.8 : Thu Apr 07 2011 - 12:19:59 PDT