Method: Pdfcrowd::PdfToTextClient#convertFile
- Defined in:
- lib/pdfcrowd.rb
#convertFile(file) ⇒ Object
Convert a local file.
-
file- The path to a local file to convert. The file must exist and not be empty. -
Returns - Byte array containing the conversion output.
5996 5997 5998 5999 6000 6001 6002 6003 |
# File 'lib/pdfcrowd.rb', line 5996 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 |