Class: Prawn::Core::Page

Inherits:
Object
  • Object
show all
Defined in:
lib/prawn/page.rb

Instance Method Summary collapse

Instance Method Details

#appearance_stream(appearance) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/prawn/page.rb', line 3

def appearance_stream(appearance)
  @stamp_stream     = ""
  @stamp_dictionary = appearance.dictionary

  appearance.block.call()
  
  document.instance_eval do
    font.add_to_current_page(0)
    add_content "/#{font.identifier_for(0)} #{font_size} Tf"
  end

  appearance.stream = @stamp_stream

  @stamp_stream      = nil
  @stamp_dictionary  = nil
end