pdf 보고서 생성을 위해 wkhtmltopdf (0.10.0 rc2) 및 wicked_pdf (0.9.9)를 사용하고 있습니다. 실행하는 동안 나는 다음과 같은 오류가 발생했습니다.wkhtmltopdf?
RuntimeError (Error: Failed to 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 could not be generated!
Command Error: Error: Failed loading page file:////tmp/["wicked_pdf", ".html"]21873-0 (sometimes it will work just to ignore this error with --load-error-handling ignore)
)
내 컨트롤러는 다음과 같습니다
render :pdf => "#{@note_name}",:layout => '/layouts/pdf_template.html.erb', :template=>'pdf/financial/maintenance_exp/maintenance_exp_pdf.html.erb'
어떤 도움을 주시면 감사하겠습니다.
FYI : 내가 할 : show_as_html => true 브라우저에서 HTML을 렌더링 할 때 오류가 발생하지 않습니다.
[wkhtmltopdf] (http://wkhtmltopdf.org/)는 여전히 활발하게 유지되고 있습니다. 나는 당신이 "* 만료되었고 더 이상 지원되지 않는다"는 생각을 어디에서 가지고 있는지를 모른다. – ashkulz