Sha256: 613f42a68b4f230ed3a4427bee3550721e494f5a1a42c0a83be7233d4026ecc1

Contents?: true

Size: 647 Bytes

Versions: 21

Compression:

Stored size: 647 Bytes

Contents

# encoding: utf-8
#
# Demonstrates how to set metadata properties via the info option
# It allows one to specify no standard properties
#
require "#{File.dirname(__FILE__)}/../example_helper.rb"

Prawn::Document.generate "metadata-info.pdf",
  :info => {
    :Title => "My title", :Author => "John Doe", :Subject => "My Subject",
    :Keywords => "test metadata ruby pdf dry", :Creator => "ACME Soft App", 
    :Producer => "Prawn", :CreationDate => Time.now, :Grok => "Test Property"
  } do       
  text "This is a test of setting metadata properties via the info option"
  text "It allows one to specify no standard properties like 'Grok'"
end

Version data entries

21 entries across 21 versions & 7 rubygems

Version Path
piglop-prawn-0.10.2.3 examples/general/metadata-info.rb
piglop-prawn-0.10.2.2 examples/general/metadata-info.rb
piglop-prawn-0.10.2.1 examples/general/metadata-info.rb
prawn-0.11.1.pre examples/general/metadata-info.rb
goodwill-prawn-edge-0.10.0 examples/general/metadata-info.rb
alphasights-prawn-0.10.4 examples/general/metadata-info.rb
alphasights-prawn-0.10.3 examples/general/metadata-info.rb
alphasights-prawn-0.10.2 examples/general/metadata-info.rb
alphasights-prawn-0.10.1 examples/general/metadata-info.rb
alphasights-prawn-0.10.0 examples/general/metadata-info.rb
prawn-core-0.8.4 examples/general/metadata-info.rb
prawn-graph-0.0.2 vendor/prawn-core/examples/general/metadata-info.rb
prawn-graph-0.0.1 vendor/prawn-core/examples/general/metadata-info.rb
prawn-core-0.7.2 examples/general/metadata-info.rb
prawn-core-0.7.1 examples/general/metadata-info.rb
prawn-layout-0.3.2 vendor/prawn-core/examples/general/metadata-info.rb
prawn-core-0.6.3 examples/general/metadata-info.rb
prawn-core-0.6.2 examples/general/metadata-info.rb
prawn-layout-0.3.1 vendor/prawn-core/examples/general/metadata-info.rb
prawn-core-0.6.1 examples/general/metadata-info.rb