Permalink
Browse files

Inline formatting should be enabled

  • Loading branch information...
1 parent 6bde743 commit 95ba9c1fab90e9546382c81bb5b1613b8b53cd6c @rizwanreza committed Mar 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/pdf_renderer.rb
View
@@ -4,9 +4,9 @@
Mime::Type.register "application/pdf", :pdf
ActionController::Renderers.add :pdf do |filename, options|
pdf = Prawn::Document.new
- pdf.text render_to_string(options)
+ pdf.text render_to_string(options), :inline_format => true
send_data(pdf.render, :filename => "#{filename}.pdf",
- :type => "application/pdf",
+ :type => "application/pdf",
:disposition => "attachment")
end

0 comments on commit 95ba9c1

Please sign in to comment.