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


No, I meant pixels, as I wrote.  It works this way for an image of any size; if my source image is 800px wide and 600px tall, then the FO

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

will render my image as 100px wide and 75px tall (preserving the proportions).

Colin

On 4/26/07, T.G. Mutato <throw6617@gmail.com > wrote:
> <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

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org




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