Hello,
The easiest way is to add the width attribute to imagedata element. In
the width attribute you specify percentage width with respect to the
page margins - e. g. 100% or 70% etc. The scalefit attribute set to 1
ensures that images ale scaled to the defined width. More info here:
http://www.sagehill.net/docbookxsl/ImageSizing.html.
<figure>
<title>An Image</title>
<mediaobject>
<imageobject>
<imagedata fileref="Images_EN/IMAGE_001.png"
align="center"
width="100%"
scalefit="1"/>
</imageobject>
</mediaobject>
</figure>
Pavel
-----Original Message-----
From: Daniele Barzotti [mailto:[email protected]]
Sent: Tuesday, August 04, 2009 5:28 PM
To: [email protected]
Subject: [docbook-apps] PNG Images rendering on XML->FO->PDF
Hello,
I'm quite new to docbook so maybe this is my mistake.
I wrote a docbook 5 user manual using the latest docbook-xsl stylesheets
(1.75.2) and, transforming it into html (and chm) through xsltproc works
well.
But when I create the PDF using the transformation XML->FO->PDF using
the latest version of FOP I have problems on the PNG images.
These appears enlarged in the document (like if I look an image at
110-120% zoom) and some of them go out the margins.
I downloaded also the "Java Advanced Imaging 1.1.3" but the result is
the same.
The code for the images is:
<figure>
<title>An Image</title>
<mediaobject>
<imageobject>
<imagedata fileref="Images_EN/IMAGE_001.png"
align="center"
scalefit="1"/>
</imageobject>
</mediaobject>
</figure>
Could someone give me some suggestion?
Thanks in advance,
Daniele.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
__________ Informace od ESET NOD32 Antivirus, verze databaze 4304
(20090804) __________
Tuto zpravu proveril ESET NOD32 Antivirus.
http://www.eset.cz
__________ Informace od ESET NOD32 Antivirus, verze databaze 4304
(20090804) __________
Tuto zpravu proveril ESET NOD32 Antivirus.
http://www.eset.cz
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]