xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <jeremias.mae...@outline.ch>
Subject Re: Image Size and Rotation
Date Tue, 14 May 2002 14:18:38 GMT
At the moment it's probably best to embedd the image in SVG where you
can easily scale and rotate. I've done this with SVG a lot but not with
JPEG, but this should work, too. Here's an excerpt from one of my
stylesheets that does this kind of stuff.

<fo:instream-foreign-object>
	<svg xmlns="http://www.w3.org/2000/svg" width="40mm" height="270mm" viewBox="0 0 40 270">
		<g transform="translate(0 270) rotate(-90)" font-family="Frutiger">
			<svg width="270" height="40" viewBox="0 0 2700 400">
				<g transform="translate(1360 150) scale(2.5)">
					<xsl:copy-of select="document('mylogo.svg')"/>
				</g>
			</svg>
		</g>
	</svg>
</fo:instream-foreign-object>

Maybe this helps.

> is there anyone who can tell me how to resize and
> rotate an image (SVG and/or JPG).
> 
> For resize an image I know the trick through the
> content-width attribute in an table-cell element. 
> 
> However there I lose the posssibility to set a ratio.
> 
> More important is on how I can rotate an SVG image.
> 

Cheers,
Jeremias Märki

mailto:jeremias.maerki@outline.ch

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


Mime
View raw message