Skip to content
Francisco Quintero edited this page Oct 25, 2019 · 3 revisions

WickedPdf configuration for Ruby on Rails application wise put the following code in a initializer file config/initializers/wicked_pdf.rb and place the following code:

WickedPdf.config = {
   exe_path: '/usr/bin/wkhtmltopdf'
}

or pass these options for specific PDF rendering in a controller action:

format.pdf {
   render pdf: 'file_name.pdf',
          layout: 'pdf.html'
}