Sha256: be7a0ec836f65d8bb07fcfd4ea8a7fc6943bc9ba99a68dd6a7b0c1970c3659ec

Contents?: true

Size: 509 Bytes

Versions: 10

Compression:

Stored size: 509 Bytes

Contents

# encoding: utf-8
#
# This sample demonstrates the use of the :template option when generating
# a new Document. The template PDF file is imported into a new document.

require "#{File.dirname(__FILE__)}/../example_helper.rb"

filename = "#{Prawn::BASEDIR}/reference_pdfs/curves.pdf"

Prawn::Document.generate("template.pdf", :template => filename) do
  text "Previous pages and content imported", :size => 18, :align => :center
  text "This page and content is brand new", :size => 18, :align => :center
end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
piglop-prawn-0.10.2.3 examples/general/templates.rb
piglop-prawn-0.10.2.2 examples/general/templates.rb
piglop-prawn-0.10.2.1 examples/general/templates.rb
prawn-0.11.1.pre examples/general/templates.rb
goodwill-prawn-edge-0.10.0 examples/general/templates.rb
alphasights-prawn-0.10.4 examples/general/templates.rb
alphasights-prawn-0.10.3 examples/general/templates.rb
alphasights-prawn-0.10.2 examples/general/templates.rb
alphasights-prawn-0.10.1 examples/general/templates.rb
alphasights-prawn-0.10.0 examples/general/templates.rb