Method: Pdfcrowd::HtmlToPdfClient#convertUrl
- Defined in:
- lib/pdfcrowd.rb
#convertUrl(url) ⇒ Object
790 791 792 793 794 795 796 797 |
# File 'lib/pdfcrowd.rb', line 790 def convertUrl(url) unless /(?i)^https?:\/\/.*$/.match(url) raise Error.new(Pdfcrowd.(url, "convertUrl", "html-to-pdf", "Supported protocols are http:// and https://.", "convert_url"), 470); end @fields['url'] = url @helper.post(@fields, @files, @raw_data) end |