Parent

Prawn::Reference

Public Instance Methods

encrypted_object(key) click to toggle source

Returns the object definition for the object this references, keyed from key.

# File lib/prawn/security.rb, line 239
def encrypted_object(key)
  @on_encode.call(self) if @on_encode
  output = "#{@identifier} #{gen} obj\n" <<
           Prawn::EncryptedPdfObject(data, key, @identifier, gen) << "\n"
  if @stream
    output << "stream\n" <<
      Document::Security.encrypt_string(@stream, key, @identifier, gen) <<
      "\nendstream\n"
  end
  output << "endobj\n"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.