Method: Origami::Stream#initialize
- Defined in:
- lib/origami/stream.rb
#initialize(data = ::String.new, dictionary = {}) ⇒ Stream
Creates a new PDF Stream.
- data
-
The Stream uncompressed data.
- dictionary
-
A hash representing the Stream attributes.
87 88 89 90 91 92 93 94 95 |
# File 'lib/origami/stream.rb', line 87 def initialize(data = ::String.new, dictionary = {}) super() set_indirect(true) @encoded_data = nil @dictionary, @data = Dictionary.new(dictionary), data @dictionary.parent = self end |