Class | Origami::ContentStream |
In: |
sources/parser/stream.rb
|
Parent: | Stream |
# File sources/parser/stream.rb, line 521 521: def initialize(rawdata = "", dictionary = {}) 522: 523: @contents = [] 524: 525: super(rawdata, dictionary) 526: end
Append text to the current content stream.
# File sources/parser/stream.rb, line 531 531: def <<(text) 532: 533: if @contents.empty? 534: @contents << PS::Text.new(text) 535: else 536: @contents.last.buffer << text 537: end 538: 539: end