Method: Pdfcrowd::HtmlToImageClient#setCustomJavascript

Defined in:
lib/pdfcrowd.rb

#setCustomJavascript(javascript) ⇒ Object



2418
2419
2420
2421
2422
2423
2424
2425
# File 'lib/pdfcrowd.rb', line 2418

def setCustomJavascript(javascript)
    if (!(!javascript.nil? && !javascript.empty?))
        raise Error.new(Pdfcrowd.create_invalid_value_message(javascript, "setCustomJavascript", "html-to-image", "The string must not be empty.", "set_custom_javascript"), 470);
    end
    
    @fields['custom_javascript'] = javascript
    self
end