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.
3270 3271 3272 3273 3274 3275 3276 3277 |
# File 'lib/pdfcrowd.rb', line 3270 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 |