title: Semi-transparent (translucent) background color ignored in jasper reports pdf export
body: <p>Q: Why is the alpha information lost when saving to PDF?</p>
  
  <p>Jaspersoft studio doesn't allow me to specify colors with alpha. So I tried to be clever and specified keys on my shading elements and changed the color in the code like so:</p>
  
  <pre><code>JasperReport jasperReport = (JasperReport) JRLoader.loadObject(getClass().getResourceAsStream("/reports/Test.jasper"));
  ((JRStaticText) jasperReport.getGroups()[0].getGroupHeaderSection().getBands()[0].getElementByKey("bg")).setBackcolor(new Color(0, 0, 0, 30));
  ((JRRectangle) jasperReport.getGroups()[0].getGroupFooterSection().getBands()[0].getElementByKey("bg")).setBackcolor(new Color(0, 0, 0, 30));
  </code></pre>
  
  <p>Just to see if it makes a difference I used both JRStaticText and JRRectangle. The preview and the physical printout on paper look great. It also works when I print to PDFCreator. But when I save to PDF from the JRViewer/JasperViewer, the resulting PDF appears with opaque black.</p>
  
  <p>Preview/Paper print/PDFCreator:</p>
  
  <p><img src="https://i.stack.imgur.com/dp40U.png" alt="enter image description here"></p>
  
  <p>Jasper reports PDF save/export:</p>
  
  <p><img src="https://i.stack.imgur.com/PF0fu.png" alt="enter image description here"></p>