<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1515" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Never mind, it's fairly easy when you rotate AND 
translate...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>----- Original Message ----- </DIV>
<DIV style="FONT: 10pt arial">
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A 
title=stijn@fotek.com href="mailto:stijn@fotek.com">Stijn Elst</A> </DIV>
<DIV><B>To:</B> <A title=xep-support@renderx.com 
href="mailto:xep-support@renderx.com">xep-support@renderx.com</A> </DIV>
<DIV><B>Sent:</B> Monday, April 03, 2006 1:00 PM</DIV>
<DIV><B>Subject:</B> [xep-support] viewBox with rotated SVG</DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'm trying to rotate an image (eg. 5°) using SVG. 
Here's my (simplified) code (width &amp; height in mm):</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&lt;xsl:template 
match="PICTURE"&gt;<BR>&nbsp;&nbsp;&lt;fo:block-container 
absolute-position="absolute"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;xsl:attribute 
name="top"&gt;&lt;xsl:value-of select="@TOP" 
/&gt;&lt;/xsl:attribute&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;xsl:attribute 
name="left"&gt;&lt;xsl:value-of select="@LEFT" 
/&gt;&lt;/xsl:attribute&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;xsl:attribute 
name="width"&gt;&lt;xsl:value-of select="@WIDTH" 
/&gt;&lt;/xsl:attribute&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;xsl:attribute 
name="height"&gt;&lt;xsl:value-of select="@HEIGHT" 
/&gt;&lt;/xsl:attribute&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;fo:block&gt;<BR>&lt;fo:instream-foreign-object&gt;<BR>&nbsp;&lt;xsl:attribute 
name="content-width"&gt;&lt;xsl:value-of select="@WIDTH" 
/&gt;&lt;/xsl:attribute&gt;<BR>&nbsp;&lt;xsl:attribute 
name="content-height"&gt;&lt;xsl:value-of select="@HEIGHT" 
/&gt;&lt;/xsl:attribute&gt;<BR>&nbsp;&lt;svg:svg preserveAspectRatio="none 
meet"&gt;<BR>&nbsp;&nbsp;&lt;xsl:attribute name="width"&gt;&lt;xsl:value-of 
select="@WIDTH" /&gt;&lt;/xsl:attribute&gt;<BR>&nbsp;&nbsp;&lt;xsl:attribute 
name="height"&gt;&lt;xsl:value-of select="@HEIGHT" 
/&gt;&lt;/xsl:attribute&gt;<BR>&nbsp;&nbsp;&lt;svg:image xlink:href="<A 
href="mailto:{@FILE">{@FILE</A>}" 
transform="rotate(5)"/&gt;<BR>&nbsp;&lt;/svg:svg&gt;<BR>&lt;/fo:instream-foreign-object&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;/fo:block&gt;<BR>&nbsp;&nbsp;&lt;/fo:block-container&gt;<BR>&nbsp;&lt;/xsl:template&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The resulting pdf contains indeed the rotated 
image, but it appears to be magnified.&nbsp;Also,&nbsp;the viewBox attr needs to 
be set. Is there an easy way to dynamically set the viewBox based on the 
rotation angle in the XSL?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Stijn Elst.</DIV></FONT></BODY></HTML>