Method: Pdfcrowd::PdfToTextClient#convertUrlToStream
- Defined in:
- lib/pdfcrowd.rb
#convertUrlToStream(url, out_stream) ⇒ Object
Convert a PDF and write the result to an output stream.
-
url- The address of the PDF to convert. The supported protocols are http:// and https://. -
out_stream- The output stream that will contain the conversion output.
5876 5877 5878 5879 5880 5881 5882 5883 |
# File 'lib/pdfcrowd.rb', line 5876 def convertUrlToStream(url, out_stream) unless /(?i)^https?:\/\/.*$/.match(url) raise Error.new(Pdfcrowd.(url, "convertUrlToStream::url", "pdf-to-text", "The supported protocols are http:// and https://.", "convert_url_to_stream"), 470); end @fields['url'] = url @helper.post(@fields, @files, @raw_data, out_stream) end |