Method: Pdfcrowd::HtmlToImageClient#setBackgroundColor
- Defined in:
- lib/pdfcrowd.rb
#setBackgroundColor(color) ⇒ Object
2285 2286 2287 2288 2289 2290 2291 2292 |
# File 'lib/pdfcrowd.rb', line 2285 def setBackgroundColor(color) unless /^[0-9a-fA-F]{6,8}$/.match(color) raise Error.new(Pdfcrowd.(color, "setBackgroundColor", "html-to-image", "The value must be in RRGGBB or RRGGBBAA hexadecimal format.", "set_background_color"), 470); end @fields['background_color'] = color self end |