OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Images in PDF appear too large


> <fo:external-graphic src="image.jpg" width="100px"
> content-width="scale-to-fit"/>

Was this for an image that is 100 pixels wide Colin? Or was the
example meant to say ..."width=100%"...?

Thanks,
tgm

On 4/26/07, Colin Shapiro <cmshapiro@gmail.com> wrote:
> I'm currently working with a custom stylesheet I wrote from scratch (not
> DocBook) to generate FO from an XML document, and I'm using FOP v0.93.  I've
> found that the image scaling does work.  If I use the following FO:
>
> <fo:external-graphic src="image.jpg" width="100px"
> content-width="scale-to-fit"/>
>
> then the image is scaled properly to the given width, and the proportions
> remain intact.
>
> I haven't looked at the FO produced by the DocBook stylesheets, so this
> doesn't necessarily answer the original poster's question, but FOP can do
> image scaling in this manner.
>
> Colin


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]