Sha256: 6df7c4700633e97499bd92c5c036e789945dcfdb564d804dc3741b2b8ba5c062

Contents?: true

Size: 570 Bytes

Versions: 2

Compression:

Stored size: 570 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.expand_path(File.join(File.dirname(__FILE__),
                                   %w[.. example_helper]))

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

2 entries across 2 versions & 2 rubygems

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