This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: PNG scaling for XML->FO->PDF transformation
- From: Stephan Wiesner <stephan at stephan-wiesner dot de>
- Cc: docbook at lists dot oasis-open dot org
- Date: Sat, 11 Jan 2003 09:41:20 +0100
- Subject: Re: DOCBOOK: PNG scaling for XML->FO->PDF transformation
- References: <5.2.0.9.0.20030111092625.00a79e28@post.strato.de>
Good morning Thomas,
you can use width and depth
<figure id="Decission_payment_generation"><title>Overview Diagram
Serving Documents</title><mediaobject><imageobject>
<imagedata fileref="Decission_payment_generation.gif" format="GIF"
width="16cm" depth="22cm"/>
</imageobject></mediaobject></figure>
In most cases, this doesn't look too good in the HTML versions, though.
A future release of the style was promised to offer an option for this.
Stephan
Thomas Singer wrote:
Hello,
I'm new to docbook, so my question might be a simple one.
I write docbook XML and transform it into pdf using saxon and fop
(latest downloads). PNG files are embedded into <graphic
fileref="filename.png"/> elements. But for some unknown reason, they are
always scaled to the full width, except if multiple (e.g.) graphics are
on the same page. But even in the latter case, they aren't scaled by the
same factor. A small dialog will become just a little bit smaller than a
full screenshot.
I've tried to use both, the scale and the scaletofit parameter, but
nothing changed.
Could someone please help me, how to scale the files to be a little bit
smaller, so they will require less space (that was my goal ;-)). Thanks
in advance!
Cheers,
Tom