Method: Pdfcrowd::HtmlToPdfClient#setPageBackgroundColor
- Defined in:
- lib/pdfcrowd.rb
#setPageBackgroundColor(color) ⇒ Object
1282 1283 1284 1285 1286 1287 1288 1289 |
# File 'lib/pdfcrowd.rb', line 1282 def setPageBackgroundColor(color) unless /^[0-9a-fA-F]{6,8}$/.match(color) raise Error.new(Pdfcrowd.(color, "setPageBackgroundColor", "html-to-pdf", "The value must be in RRGGBB or RRGGBBAA hexadecimal format.", "set_page_background_color"), 470); end @fields['page_background_color'] = color self end |