Methods

Prawn::Document::Internals

Public Instance Methods

render_body(output) click to toggle source

Prawn/Security patches render_body so that it spits out encrypted content iff the document is encrypted.

# File lib/prawn/security.rb, line 258
def render_body(output)
  @store.each do |ref|
    ref.offset = output.size
    output << (@encrypted ? ref.encrypted_object(user_encryption_key) : 
                            ref.object)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.