# encoding: utf-8 # # This example demonstrates how to add a "page k of n" # template to your documents. # require "#{File.dirname(__FILE__)}/../example_helper.rb" Prawn::Document.generate("page_with_numbering.pdf") do text "Hai" start_new_page text "bai" start_new_page text "-- Hai again" number_pages " in a total of ", [bounds.right - 50, 0] end