docbook-apps

Re: [docbook-apps] FOP Problem with scalefit

  • 1.  Re: [docbook-apps] FOP Problem with scalefit

    Posted 02-08-2010 17:55
    Hi,
    Your test files indicate something odd is going on. The source file shows:

    <imagedata width="100%" scalefit="1" fileref="images/vereinfachter_prozess.png"/>

    But your FO output shows:
    <fo:external-graphic src="images/vereinfachter_prozess.png" width="auto"
    height="auto" content-width="auto" content-height="auto"/>


    when it should be:
    <fo:external-graphic src="images/vereinfachter_prozess.png" width="100%"
    height="auto" content-width="scale-to-fit" content-height="auto"/>


    I get the latter result when I test with your file and any version of DocBook XSL and
    any combination of fop parameters that I try. This indicates to me that the problem
    is not with FOP, but with your stylesheet. I don't know anything about dobudish, but
    I can't see how you could get your results with the DocBook XSL stylesheets.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net