igor-alexandrov/wisepdf

layout option no more used

kevynlebouille opened this issue · 1 comments

Hi Igor,

Since your last upgrade (>= 1.2.0), the layout option seems to be inefficient.

My initializer

Wisepdf::Configuration.configure do |config|
  config.wkhtmltopdf = "#{Rails.root}/script/wkhtmltopdf"
  config.options = {
    :layout => "pdf.html",
    :show_as_html => Rails.env.development?,
  }
end

Thanks.
Fixed in 1.2.2.