Sha256: 70c40b3bbc2c4ea11bab4b9ca3a9f7c2dcc7ea9151aec043861bf508749e4878

Contents?: true

Size: 878 Bytes

Versions: 3

Compression:

Stored size: 878 Bytes

Contents

# encoding: utf-8
#
# Examples for document encryption.
#
require File.expand_path(File.join(File.dirname(__FILE__),
                                   %w[.. example_helper]))

Prawn::ManualBuilder::Example.generate("security.pdf", :page_size => "FOLIO") do

  package "security" do |p|

    p.example "encryption",  :eval_source => false, :full_source => true
    p.example "permissions", :eval_source => false, :full_source => true

    p.intro do
      prose("Security lets you control who can read the document by defining a password.

      The examples include:")

      list( "How to encrypt the document without the need for a password",
            "How to configure the regular user permitions",
            "How to require a password for the regular user",
            "How to set a owner password that bypass the document permissions"
          )
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
prawn-1.3.0 manual/security/security.rb
prawn-1.2.1 manual/security/security.rb
prawn-1.1.0 manual/security/security.rb