Module: Documentalist::WkHtmlToPdf
- Includes:
- Dependencies
- Defined in:
- lib/backends/wkhtmltopdf.rb
Class Method Summary collapse
Methods included from Dependencies
Class Method Details
.convert(file, options) ⇒ Object
7 8 9 10 11 |
# File 'lib/backends/wkhtmltopdf.rb', line 7 def self.convert(file, ) command = "wkhtmltopdf #{[:backend_options] and [:backend_options].join(" ")} #{file} #{[:to]} > #{Documentalist.config[:log_file]} 2>&1" Documentalist.logger.debug("Going to run WkHtmlToPdf backend with command : #{command}") system(command) end |