xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <markus.sticker.e...@zf.com>
Subject Scaling images
Date Mon, 24 Feb 2014 13:09:49 GMT
Hello FOP,

I've got an issue about scalling images.
The target is to scale images so they fit to the space on the page.
Scaling the width works fine.
I set this ("breit.png" is a picture with extreme width):
<fo:external-graphic src="url(file:///c:/temp/SernaPlugin/Source/draft/draft/breit.png)"
content-width="scale-to-fit"  width="100%" height="100%" inline-progression-dimension.maximum="100%"
inline-progression-dimension.minimum="1%"  scaling="uniform" />

So I tried this ("hoch.png" is a picture with extreme height) :
<fo:external-graphic src="url(file:///c:/temp/SernaPlugin/Source/draft/draft/hoch.png)"
content-height="scale-to-fit" width="100%" height="100%" inline-progression-dimension.maximum="100%"
inline-progression-dimension.minimum="1%"  scaling="uniform"/>
--> That failed --> The image was not scaled.

So what's wrong ?

Thanks and
Kind regards
Markus Sticker
Forschung und Entwicklung ZF Konzern/Research and Development ZF Group
Infrastruktur/Infrastructure (DTEP4)
ZF Friedrichshafen AG
88038 Friedrichshafen, Deutschland/Germany
Telefon/Phone  +49 7541 77-7644, Telefax/Fax  +49 7541 77-907644
Markus.Sticker.Epos@zf.com<mailto:Markus.Sticker.Epos@zf.com>

Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. Giorgio Behr
Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr. Konstantin Sauer,
J├╝rgen Holeksa, Michael Hankel, Wilhelm Rehm, Rolf Lutz
Sitz/Headquarters: Friedrichshafen
Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the municipal court of
Ulm HRB 630206


Mime
View raw message