title: Rotate text at any degree in JasperReports
body: <p>I am using <em>iReport</em> to generate <em>pdf</em>. I need to rotate text at any degree. As I read in documentation, <em>iReport</em> can rotate text at 90, 180, 270 and 360 degree. Also I want it on dynamic value.<br/>
  For This I try these procedure but not get expected result.</p>
  
  <p><a href="http://community.jaspersoft.com/questions/526526/how-rotate-text-field-45-degrees#99620" rel="nofollow">rotate Image using custom jar</a></p>
  
  <p>Its a <em>Java</em> method working fine when I try save an image and see its preview. But When I make a jar file and include this in <em>iReport</em>, I could not get any result.</p>
  
  <p>I try to use css styling two types.</p>
  
  <p>First I make a text field an markup it as html. Use inline css to rotate text. But its not working anymore.example is here.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;title&gt;
      &lt;band height="313" splitType="Stretch"&gt;
          &lt;image&gt;
              &lt;reportElement uuid="c4edca6a-50d8-481f-bea0-9513268d4a88" x="13" y="13" width="150"    height="41"/&gt;
              &lt;imageExpression&gt;&lt;![CDATA[$P{REPORT_SCRIPTLET}.rotateText( $V{SpecialDescription},new    java.awt.Font("Sans Serif",1,100), 100, 100, 45, java.awt.Color.white)]]&gt;&lt;/imageExpression&gt;
          &lt;/image&gt;
          &lt;textField isStretchWithOverflow="true"&gt;
              &lt;reportElement uuid="22594755-7eba-4313-a1fd-41ac20dc50b5" x="141" y="101" width="234" height="53"/&gt;&lt;textElement markup="html"/&gt;
              &lt;textFieldExpression&gt;&lt;![CDATA["&lt;html&gt;&lt;div  style=\"-moz- transform:rotate(20deg)translateX(230px)scale(1.5); -o-transform: rotate(20deg)  translateX(230px) scale(1.5);-webkit-transform:  rotate(20deg)translateX(230px)scale(1.5);transform: rotate(50deg) translateX(230px)  scale(1.5);\"&gt;Hello&lt;/div&gt;&lt;html&gt;"]]&gt;&lt;/textFieldExpression&gt;
          &lt;/textField&gt;
      &lt;/band&gt;
  &lt;/title&gt;
  </code></pre>
  
  <p>Also I try to add css using html component. For this I add <code>htmlComponent.jar</code> and write code for generate it, but it is also not working.</p>
  
  <p>One more thing, when I try add color an background color it give me expected color, but it did not rotate text. </p>
  
  <p>Is there any another way to rotate text?</p>