This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Problem with scaling Images
- From: Bob Stayton <bobs at sco dot com>
- To: Brian Burridge <maillist at burridge dot net>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Tue, 25 Feb 2003 09:24:22 -0800
- Subject: Re: DOCBOOK-APPS: Problem with scaling Images
- References: <1046186487.4128.4.camel@mi6.local>
On Tue, Feb 25, 2003 at 10:21:33AM -0500, Brian Burridge wrote:
> I am including a bunch of PNG's in my DocBook, and converting the
> DocBook to PDF, using stylesheets and the Apache FOP.
>
> But I don't understand how the iamges are being scaled. For example, I
> have two images, with section names before them. I want the images on
> the same page with the sections. The first image, which is 1256x1672,
> fits on the page nicely with the section title. But then later on in the
> document, a second image which is 824x1160, doesn't fit on the page with
> the section title. The titles are one liners and there is no other text.
>
> Now why would the smaller image be page breaking before it, and the
> larger image not?
I have no idea. That does seem odd.
> I've tried using contentWidth="4in" and nothing happens, and scale="75"
> and nothing happens.
The current version of FOP doesn't respond to contentwidth,
and treats the 'width' property as the 'content-width'
property. Try setting width to some value (not %)
if you need to scale graphics for 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 at sco dot com