lib/prawn/document/internals.rb
# Defines a block to be called just before a new page is started.
#
Defines a block to be called just before a new page is started.
Defines a block to be called just before a new page is started .
def on_page_create(&block)
         if block_given?
            state.on_page_create_callback = block
         else
            state.on_page_create_callback = nil
         end
      end
def on_page_create ( & block ) if block_given? state . on_page_create_callback = block else state . on_page_create_callback = nil end end
Defines a block to be called just before a new page is started.
Defines a block to be called just before a new page is started .
block
<not_specific>