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