Next in thread → Next in month →

Re: [docbook-apps] images scaled down and centred in pdf-representation

From
Rtefan Yander
Date
2006-06-30T09:02:22+00:00
ID
Thread
Re: [docbook-apps] images scaled down and centred in pdf-representation
Hi everybody,

I finally figured it out:

- scale images down to page-width: use attribute width="100%" and 
scalefit="1" in the <imagedata>-element
- center images in pdf: use attribute align="center" in <imagedata>-element

Best Regards

Stefan

Stefan Zander schrieb:
> Hi,
>
> I am currently working on a document which contains a lot of images 
> (figures) with variable/different sizes. A pdf-representation of the 
> document including all images scaled and centred accordingly should 
> then be generated automatically.
> The problem is that the images have different sizes where some images 
> are smaller than the page width (A4) and others are bigger. My 
> question is:
>
> - Is there a possibility to tell the fo-processor to scale an image 
> down to the width of the page, if it is bigger; if am image is smaller 
> than the page-width, leave it as it is.
> - How can I specify to centre the images?
>
> I am working with docbook 4.4; docbook-xsl 1.70.1; fop 0.92beta; Java 
> 1.5.
>
> Thanks for any help.
>
> Stefan
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>

-- 
Stefan Zander, Dipl. Inf. (FH)      MULTA MEDIO Informationssysteme AG
                                                Mergentheimer Str. 76a
                                                        97082 Würzburg
mailto:                  Tel: +49 (0)931 79717-31
http://www.multamedio.de                      Fax: +49 (0)931 79717-30
Next in thread → Next in month →