OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] <graphic> scaling

If you are not using FOP, then you can use these two attributes on your
imagedata element to achieve what you want:


These attributes mean the viewport for displaying the graphic should be 100%
of the available width, and the graphic should be scaled to fit that

If you are using FOP, then I don't know of any combination of attributes
that will scale to fit. The current version of FOP does not support the
content-width property, which is where the scale-to-fit value would go.

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Sam Steingold" <sds@gnu.org>
To: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, November 18, 2004 7:20 AM
Subject: [docbook-apps] <graphic> scaling

> I have several diagrams (= png files) which I want to display in DocBook.
> I want them to have the width of the surrounding text ("100%").
> Is it possible to arrange for that?
> In XHTML rendered by Mozilla I can check an option "scale images to fit
> the screen", but what do I do with FO?
> I tried playing with scale="50" and scalefit="1" &c,
> but that does not buy anything
> (i.e., the graphic is smaller than it should be).
> Also, <graphic> is going to be removed in 5.0,
> so how is this going to be handled then?
> --
> Sam Steingold (http://www.podval.org/~sds) running w2k
> <http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
> <http://www.mideasttruth.com/> <http://www.honestreporting.com>
> If Perl is the solution, you're solving the wrong problem. - Erik Naggum

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]