Method: Pdfcrowd::PdfToImageClient#convertUrlToStream
- Defined in:
- lib/pdfcrowd.rb
#convertUrlToStream(url, out_stream) ⇒ Object
5088 5089 5090 5091 5092 5093 5094 5095 |
# File 'lib/pdfcrowd.rb', line 5088 def convertUrlToStream(url, out_stream) unless /(?i)^https?:\/\/.*$/.match(url) raise Error.new(Pdfcrowd.(url, "convertUrlToStream::url", "pdf-to-image", "Supported protocols are http:// and https://.", "convert_url_to_stream"), 470); end @fields['url'] = url @helper.post(@fields, @files, @raw_data, out_stream) end |