Sha256: d2cd0ee8173778b18c66cd87f72bb9abc3c3947f4aed646c55e4fdabd3e608d4

Contents?: true

Size: 378 Bytes

Versions: 20

Compression:

Stored size: 378 Bytes

Contents

# 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 "<page> in a total of <total>", [bounds.right - 50, 0]  
end

Version data entries

20 entries across 20 versions & 7 rubygems

Version Path
piglop-prawn-0.10.2.3 examples/general/page_numbering.rb
piglop-prawn-0.10.2.2 examples/general/page_numbering.rb
piglop-prawn-0.10.2.1 examples/general/page_numbering.rb
prawn-0.11.1.pre examples/general/page_numbering.rb
goodwill-prawn-edge-0.10.0 examples/general/page_numbering.rb
alphasights-prawn-0.10.4 examples/general/page_numbering.rb
alphasights-prawn-0.10.3 examples/general/page_numbering.rb
alphasights-prawn-0.10.2 examples/general/page_numbering.rb
alphasights-prawn-0.10.1 examples/general/page_numbering.rb
alphasights-prawn-0.10.0 examples/general/page_numbering.rb
prawn-core-0.8.4 examples/general/page_numbering.rb
prawn-graph-0.0.2 vendor/prawn-core/examples/general/page_numbering.rb
prawn-graph-0.0.1 vendor/prawn-core/examples/general/page_numbering.rb
prawn-core-0.7.2 examples/general/page_numbering.rb
prawn-core-0.7.1 examples/general/page_numbering.rb
prawn-layout-0.3.2 vendor/prawn-core/examples/general/page_numbering.rb
prawn-core-0.6.3 examples/general/page_numbering.rb
prawn-core-0.6.2 examples/general/page_numbering.rb
prawn-layout-0.3.1 vendor/prawn-core/examples/general/page_numbering.rb
prawn-core-0.6.1 examples/general/page_numbering.rb