Method: Pdfcrowd::HtmlToImageClient#convertFile
- Defined in:
- lib/pdfcrowd.rb
#convertFile(file) ⇒ Object
2146 2147 2148 2149 2150 2151 2152 2153 |
# File 'lib/pdfcrowd.rb', line 2146 def convertFile(file) if (!(File.file?(file) && !File.zero?(file))) raise Error.new(Pdfcrowd.(file, "convertFile", "html-to-image", "The file must exist and not be empty.", "convert_file"), 470); end @files['file'] = file @helper.post(@fields, @files, @raw_data) end |