PDF could not be generated!” with wkhtmltopdf in rails -



PDF could not be generated!” with wkhtmltopdf in rails -

i using wkhtmltopdf(0.10.0 rc2) , wicked_pdf(0.9.4) generating pdf report.

i getting below error

failed execute: "/usr/bin/wkhtmltopdf" -q --footer-left "[page]" --footer-right "powered amp" --footer-font-size 7 --margin-top 5 --margin-bottom 10 --margin-left 10 --margin-right 10 --page-size "a4" "file:////tmp/["wicked_pdf", ".html"]29083-0" "/tmp/["wicked_pdf_generated_file", ".pdf"]29083-0" error: pdf not generated!

my controller:

render :pdf => "#{@note_name}",:layout => '/layouts/pdf_template.html.erb', :template=>'/leasing_activity/lease_act_pdf.html.erb'

gemfile:

gem "wicked_pdf","0.9.4" gem "wkhtmltopdf-binary"

initializers/wicked_pdf.rb:

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

ruby-on-rails wkhtmltopdf wicked-pdf

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -