Module: FN::PDF::Node::OpenPdiPage

Includes:
Node::Base
Defined in:
lib/fn/pdf/node/open_pdi_page.rb

Constant Summary

Constants included from Node::Base

Node::Base::CURRENT_PAGE_HEIGHT, Node::Base::CURRENT_PAGE_WIDTH

Instance Method Summary collapse

Methods included from Node::Base

#classify, #has_no_children, #mixin, #value, #visit_children, #with_attributes_like

Instance Method Details

#visit(struct, debug = false) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/fn/pdf/node/open_pdi_page.rb', line 14

def visit(struct, debug = false)
  if debug
    puts "struct[self[:pdi]]: #{struct[self[:pdi]]}"
    puts "self[:number].to_i: #{self[:number].to_i}"
    puts "I Think I'm On Page: #{struct.open_pdi_page(struct[self[:pdi]], self[:number].to_i, "")}"
  end
  pg = struct.open_pdi_page(struct[self[:pdi]], self[:number].to_i, "")
  struct.assigns self, pg
  visit_children(struct, debug)
  struct.close_pdi_page(pg)
end