Method: Prawn::Document#render
- Defined in:
- lib/prawn/document.rb
#render ⇒ Object
Renders the PDF document to string
353 354 355 356 357 358 359 360 361 362 363 364 |
# File 'lib/prawn/document.rb', line 353 def render output = StringIO.new finalize_all_page_contents render_header(output) render_body(output) render_xref(output) render_trailer(output) str = output.string str.force_encoding("ASCII-8BIT") if str.respond_to?(:force_encoding) str end |