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] DPI in FOP for images

On Tue, May 06, 2003 at 09:47:23PM -0700, Bob Stayton wrote:
> > 
> > In a nutshell:
> > 
> > I want a 300 x 300 pixel image to be rendered in the PDF output as
> > 2.08" wide instead of 4.16" wide.
> Well, the "correct" solution would be to put a contentwidth="2.08in"
> attribute in each imagedata element, and then set the
> 'ignore.image.scaling' parameter to 1 to turn it off for
> HTML output.  If you have been following docbook-apps, though,
> you will have noticed the discussion about the bug in the
> HTML stylesheets that prevents it from working.  There was
> a workaround for that in another message (disabling the
> process.image.attributes template).  The workaround would
> only be needed until the bug gets fixed.
> If you are asking if there is a way to globally scale the
> images for FO output without using the scaling attributes,
> I don't think so.

I forgot to mention that if you are using FOP, then
the contentwidth attribute may not work as expected.
You have to use the width attribute instead.  I'm
not sure if this has been fixed in recent versions
of FOP.


Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com

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