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
prawn-core-0.5.1 examples/general/metadata-info.rb