class PDF::Core::Stream

@private

Public Instance Methods

encrypted_object(key, id, gen) click to toggle source
# File lib/prawn/security.rb, line 268
def encrypted_object(key, id, gen)
  if filtered_stream
    "stream\n#{
      Prawn::Document::Security.encrypt_string(
        filtered_stream, key, id, gen
      )
    }\nendstream\n"
  else
    ''
  end
end