Module: Documentalist::WkHtmlToPdf

Includes:
Dependencies
Defined in:
lib/backends/wkhtmltopdf.rb

Class Method Summary collapse

Methods included from Dependencies

included

Class Method Details

.convert(file, options) ⇒ Object



7
8
9
10
11
# File 'lib/backends/wkhtmltopdf.rb', line 7

def self.convert(file, options)
  command = "wkhtmltopdf #{options[:backend_options] and options[:backend_options].join(" ")} #{file} #{options[:to]} > #{Documentalist.config[:log_file]} 2>&1"
  Documentalist.logger.debug("Going to run WkHtmlToPdf backend with command : #{command}")
  system(command)
end