xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergiu Dumitriu <ser...@xwiki.com>
Subject Re: <fo:external-graphic> with content-height="scale-to-fit" and content-width="scale-to-fit"
Date Thu, 22 Sep 2011 04:41:34 GMT
On 09/21/2011 10:45 PM, ThiagoHP wrote:
>
> Hi!
>
> FO and Apache FOP newbie here. :)
>
> I need to include images using<fo:external-graphic>  with no possibility of
> knowing their width and height previously (it's part of a larger processing
> pipeline). Some images can be large and I'd like to scale them down so they
> can fit completely inside a page. I tried<fo:external-graphic src="..."
> scaling="uniform" inline-progression-dimension.maximum="90%"
> content-height="scale-to-fit" content-width="scale-to-fit">, but an image,
> which is 2x higher than wide, has its lower part clipped.

inline-progression-dimension.maximum only specifies the maximum width, 
so the behavior is normal: you don't limit the height. Also add:

block-progression-dimension.maximum="90%"

> Am I using the right attributes and their values?
>
> Thanks in advance. :)
>
> Thiago
>


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message