vendor/plugins/prawn/lib/prawn/document/internals.rb
# Creates a new Prawn::Reference and adds it to the Document's object
# list.  The +data+ argument is anything that Prawn::PdfObject() can convert.    
# 
# If a block is given, it will be invoked just before the object is written
# out to the PDF document stream. This allows you to do deferred processing
# on some references (such as fonts, which you might know all the details
# about until the last page of the document is finished).
Creates a new Prawn::Reference and adds it to the Document's object
list.  The +data+ argument is anything that Prawn::PdfObject() can convert.

If a block is given, it will be invoked just before the object is written
out to the PDF document stream. This allows you to do deferred processing
on some references (such as fonts, which you might know all the details
about until the last page of the document is finished).
Creates a new Prawn :: Reference and adds it to the Document ' s object list . The + data + argument is anything that Prawn :: PdfObject () can convert . If a block is given it will be invoked just before the object is written out to the PDF document stream . This allows you to do deferred processing on some references ( such as fonts which you might know all the details about until the last page of the document is finished ) .
def finish_page_content     
        @header.draw if @header      
        @footer.draw if @footer
        add_content "Q"
        @page_content.compress_stream if compression_enabled?
        @page_content.data[:Length] = @page_content.stream.size
      end
def finish_page_content @header . draw if @header @footer . draw if @footer add_content "Q" @page_content . compress_stream if compression_enabled? @page_content . data [ :Length ] = @page_content . stream . size end
Creates a new Prawn::Reference and adds it to the Document's object
list.
Creates a new Prawn :: Reference and adds it to the Document ' s object list .