8000 Configuration · mileszs/wicked_pdf Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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'
}
Clone this wiki locally
0