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