forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victor Mote" <...@outfitr.com>
Subject RE: imaging issues /FOPException
Date Fri, 08 Aug 2003 16:34:23 GMT
J.Pietschmann wrote:

> > <fo:external-graphic max-width="100%" content-height="scale-to-fit"
> > content-width="scale-to-fit" src="blablabla.jpeg"/>
>
> Didn't you get an error message for max-width? There is no such
> FO property. Also, content-height and content-width are not yet
> implemented and silently ignored. You should either use
>    <fo:external-graphic width="100%" src="blablabla.jpeg"/>
> which will scale the image to fill the available width, while
> preserving the aspect ratio, or just
>    <fo:external-graphic src="blablabla.jpeg"/>
> which will render the image at 72dpi, optionally scaling it
> down if this would overflow the available width.
>
> However, the recommended way is to use a real width with
> measurements, because this way you control the resolution at which
> the bitmap is rendered instead of using the hardcoded 72dpi (any
> resolution encoded in the image is ignored).
>
> There ought to be some documentation about this on the FOP web
> site.

Since "ought to" can be interpreted either as "there isn't but ought to be"
or as "there is and you ought to be able to find it", I will clarify that it
is the latter:
http://xml.apache.org/fop/graphics.html#resolution

Victor Mote


Mime
View raw message