Module: FN::PDF::Node::BeginPageExt

Includes:
Node::Base
Defined in:
lib/fn/pdf/node/begin_page_ext.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
# File 'lib/fn/pdf/node/begin_page_ext.rb', line 14

def visit(struct, debug = false)
  struct.begin_page_ext(self[:width].to_i, self[:height].to_i, "")
  struct[CURRENT_PAGE_WIDTH]  = self[:width].to_i
  struct[CURRENT_PAGE_HEIGHT] = self[:height].to_i
  visit_children(struct, debug)
  struct.suspend_page("")
end