Sha256: 4a1afca6e5d146e40ab2539e0fc748e15620d08e54a1e52d5ececb6535094883

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

# encoding: utf-8
#
# This example demonstrates how to add a "page k of n"
# template to your documents.
#
require File.expand_path(File.join(File.dirname(__FILE__),
                                   %w[.. example_helper]))

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

1 entries across 1 versions & 1 rubygems

Version Path
davebenvenuti-prawn-0.11.1.pre examples/general/page_numbering.rb