Method: Pdfcrowd::HtmlToImageClient#setLoadIframes

Defined in:
lib/pdfcrowd.rb

#setLoadIframes(iframes) ⇒ Object



2331
2332
2333
2334
2335
2336
2337
2338
# File 'lib/pdfcrowd.rb', line 2331

def setLoadIframes(iframes)
    unless /(?i)^(all|same-origin|none)$/.match(iframes)
        raise Error.new(Pdfcrowd.create_invalid_value_message(iframes, "setLoadIframes", "html-to-image", "Allowed values are all, same-origin, none.", "set_load_iframes"), 470);
    end
    
    @fields['load_iframes'] = iframes
    self
end