Module: Prawn::Document::Internals
- Defined in:
- lib/prawn/security.rb
Instance Method Summary collapse
-
#render_body(output) ⇒ Object
Prawn/Security patches render_body so that it spits out encrypted content iff the document is encrypted.
Instance Method Details
#render_body(output) ⇒ Object
Prawn/Security patches render_body so that it spits out encrypted content iff the document is encrypted.
259 260 261 262 263 264 265 |
# File 'lib/prawn/security.rb', line 259 def render_body(output) @store.each do |ref| ref.offset = output.size output << (@encrypted ? ref.encrypted_object(user_encryption_key) : ref.object) end end |