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
Generated with the Darkfish Rdoc Generator 2.