Method: Pdfcrowd::PdfToTextClient#convertFile
- Defined in:
- lib/pdfcrowd.rb
#convertFile(file) ⇒ Object
4739 4740 4741 4742 4743 4744 4745 4746 |
# File 'lib/pdfcrowd.rb', line 4739 def convertFile(file) if (!(File.file?(file) && !File.zero?(file))) raise Error.new(Pdfcrowd.(file, "convertFile", "pdf-to-text", "The file must exist and not be empty.", "convert_file"), 470); end @files['file'] = file @helper.post(@fields, @files, @raw_data) end |