Method: Pdfcrowd::ImageToImageClient#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.
3361 3362 3363 3364 3365 3366 3367 3368 |
# File 'lib/pdfcrowd.rb', line 3361 def convertFile(file) if (!(File.file?(file) && !File.zero?(file))) raise Error.new(Pdfcrowd.(file, "convertFile", "image-to-image", "The file must exist and not be empty.", "convert_file"), 470); end @files['file'] = file @helper.post(@fields, @files, @raw_data) end |