1 Reply Latest reply on May 4, 2010 8:16 AM by Joshua D

    How to pass hex code as cell backgroundColor during pdf generation

    Joshua D Novice

      How to pass hex code as cell backgroundColor during pdf generation? The docs don't seem to mention anything. Does this mean we will have to convert the hex code to say r,g,b values?


      18.1.7.1. Color Values
      
      Several ways of specifying colors are provided. A limited number of colors are supported by name. They are: white, gray, lightgray, darkgray, black, red, pink, yellow, green, magenta, cyan and blue. Colors can be specified as an integer value, as definied by java.awt.Color. Finally a color value may be specified as rgb(r,g,b) or rgb(r,g,b,a) with the red, green, blue alpha values specified as an integer between 0 and 255 or as a floating point percentages followed by a '%' sign.