Method: Pdfcrowd::PdfToTextClient#convertUrl
- Defined in:
- lib/pdfcrowd.rb
#convertUrl(url) ⇒ Object
Convert a PDF.
-
url- The address of the PDF to convert. The supported protocols are http:// and https://. -
Returns - Byte array containing the conversion output.
5780 5781 5782 5783 5784 5785 5786 5787 |
# File 'lib/pdfcrowd.rb', line 5780 def convertUrl(url) unless /(?i)^https?:\/\/.*$/.match(url) raise Error.new(Pdfcrowd.(url, "convertUrl", "pdf-to-text", "The supported protocols are http:// and https://.", "convert_url"), 470); end @fields['url'] = url @helper.post(@fields, @files, @raw_data) end |