Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Inline formatting should be enabled

  • Loading branch information...
commit 95ba9c1fab90e9546382c81bb5b1613b8b53cd6c 1 parent 6bde743
Rizwan Reza authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/pdf_renderer.rb
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.