Sha256: 8348f899569b295ed3fb444dd1d3b44e82a2fe42e27a0450ddea8b629fe74583
Contents?: true
Size: 1.03 KB
Versions: 8
Compression:
Stored size: 1.03 KB
Contents
# encoding: utf-8 # # Examples for stamps and repeaters. # require File.expand_path(File.join(File.dirname(__FILE__), %w[.. example_helper])) Prawn::Example.generate("repeatable_content.pdf", :page_size => "FOLIO") do package "repeatable_content" do |p| p.example "repeater", :eval_source => false p.example "stamp" p.example "page_numbering", :eval_source => false p.intro do prose("Prawn offers two ways to handle repeatable content blocks. Repeater is useful for content that gets repeated at well defined intervals while Stamp is more appropriate if you need better control of when to repeat it. There is also one very specific helper for numbering pages. The examples show:") list( "How to repeat content on several pages with a single invocation", "How to create a new Stamp", 'How to "stamp" the content block on the page', "How to number the document pages with one simple call" ) end end end
Version data entries
8 entries across 8 versions & 2 rubygems