Displaying 2 results from an estimated 2 matches for "to_pdf".
Did you mean:
to_p
2011 Feb 25
1
PDFKit javascript issues
...at.pdf {
html = render_to_string(:action => "show.html.erb",
:layout => "report.html.erb")
kit = PDFKit.new(html)
kit.stylesheets <<
"#{Rails.root}/public/stylesheets/application.css"
send_data kit.to_pdf, :filename => "file.pdf", :type =>
:pdf}
This definitely solves my layout problem but it appears that none of the
javascripts are being run and the graphs are no longer appearing. I had
a look at the PDFKit mddleware source but I couldn''t spot any major
differences in the...
2010 Aug 03
2
PDFKit Fork() Function Unimplemented Error - HELP!
...AFE /!\ Tue Aug 03 08:28:19 -0700 2010
Status: 500 Internal Server Error
fork() function is unimplemented on this machine
C:/Ruby186/lib/ruby/gems/1.8/gems/pdfkit-0.4.3/lib/pdfkit/pdfkit.rb:60:in
`open''
C:/Ruby186/lib/ruby/gems/1.8/gems/pdfkit-0.4.3/lib/pdfkit/pdfkit.rb:60:in
`to_pdf''
C:/Ruby186/lib/ruby/gems/1.8/gems/pdfkit-0.4.3/lib/pdfkit/middleware.rb:23:in
`call''
C:/Ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/string_coercion.rb:25:in
`call''
C:/Ruby186/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/head.rb:9:in
`c...