--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Encrypts the document. This will set the user and owner passwords that will be used to access the document and set the permissions the user has with the document. The passwords are limited to 32 characters.
- !ruby/struct:SM::Flow::P 
  body: "The permissions provided are an array of symbols, allowing identified users to perform particular actions:"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:print</tt>:"
    body: Print.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:modify</tt>:"
    body: Modify text or objects.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:copy</tt>:"
    body: Copy text or objects.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:add</tt>:"
    body: Add text or objects.
  type: :NOTE
full_name: PDF::Writer#encrypt
is_singleton: false
name: encrypt
params: (user_pass = nil, owner_pass = nil, permissions = [])
visibility: public
