ruby on rails - wkhtmltopdf with wicked_pdf issue? -


i using wkhtmltopdf(0.10.0 rc2) , wicked_pdf(0.9.9) generating pdf report. while running got following error.

runtimeerror (error: failed execute: ["/usr/bin/wkhtmltopdf", "-q", "--page-size", "a4", "--margin-top", "5", "--margin-bottom", "10", "--margin-left", "5", "--margin-right", "5", "file:////tmp/[\"wicked_pdf\", \".html\"]21873-0", "/tmp/[\"wicked_pdf_generated_file\", \".pdf\"]21873-0"] error: pdf not generated!  command error: error: failed loading page file:////tmp/["wicked_pdf", ".html"]21873-0 (sometimes work ignore error --load-error-handling ignore) ) 

my controller are:

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

any appreciated.

fyi:when :show_as_html=>true not throwing error.its rendering html in browser.

i getting same error , fixed following directions here

https://github.com/mileszs/wicked_pdf/issues/157

namely switched temporary fix of gem changing gemfile entry to:

gem 'wicked_pdf', github: 'mileszs/wicked_pdf' 

but note in case issue file locations on windows having file:// instead of file:/// -- may not you. on other hand, same error message maybe worth shot.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -