This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]