Method: Pdfcrowd::PdfToPdfClient#addPdfFile
- Defined in:
- lib/pdfcrowd.rb
#addPdfFile(file_path) ⇒ Object
3206 3207 3208 3209 3210 3211 3212 3213 3214 |
# File 'lib/pdfcrowd.rb', line 3206 def addPdfFile(file_path) if (!(File.file?(file_path) && !File.zero?(file_path))) raise Error.new(Pdfcrowd.(file_path, "addPdfFile", "pdf-to-pdf", "The file must exist and not be empty.", "add_pdf_file"), 470); end @files['f_%s' % @file_id] = file_path @file_id += 1 self end |