Method: Origami::Stream#initialize

Defined in:
lib/origami/stream.rb

#initialize(data = "", dictionary = {}) ⇒ Stream

Creates a new PDF Stream.

data

The Stream uncompressed data.

dictionary

A hash representing the Stream attributes.



89
90
91
92
93
94
95
96
97
# File 'lib/origami/stream.rb', line 89

def initialize(data = "", dictionary = {})
    super()

    set_indirect(true)

    @encoded_data = nil
    @dictionary, @data = Dictionary.new(dictionary), data
    @dictionary.parent = self
end