[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] DocBook <imagedata/> and scalefit attribute for transforms
On Jun 13, 2005, at 10:17 AM, Paul A. Hoadley wrote: > I think what you want to do is described in Bob Stayton's book here: > > http://www.sagehill.net/docbookxsl/ImageSizing.html > > In particular: > > > >> To keep a graphic for printed output at its natural size unless it >> is too large to fit the available width, in which case shrink it to >> fit, use scalefit="1", width="100%", and contentdepth="100%" >> attributes. >> Thanks, this did work using the updated fo/graphics.xsl. Eg. <para> <figure> <title>Static Web</title> <mediaobject> <imageobject role="html"> <imagedata fileref="diagrams/static.png"/> </imageobject> <imageobject role="fo"> <imagedata scalefit="1" width="100%" contentdepth="100%" format="PDF" fileref="diagrams/static.pdf"/> </imageobject> </mediaobject> </figure> </para> >> DocBook XSL Stylesheets 1.68.1 >> >> > > You will need to replace fo/graphics.xsl with the current version from > CVS---this functionality only works post-1.68.1. > The off thing is that the updated fo/graphics.xsl appears to require that img.src.path be defined. I simply set this to "'./'", but I wonder if this isn't a bug in the CVS stylesheet. -David
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]