Class: DynamicPDFApi::Security

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_client/Security.rb

Overview

Base class from which all security classes are derived.

Direct Known Subclasses

Aes128Security, Aes256Security, RC4128Security

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user_pwd = nil, owner_pwd = nil) ⇒ Security

Returns a new instance of Security.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/ruby_client/Security.rb', line 8

def initialize(user_pwd = nil, owner_pwd = nil)
  @_user_password = user_pwd
  @_owner_password = owner_pwd
  @_allow_copy = nil
  @_allow_edit = nil
  @_allow_print = nil
  @_allow_update_annots_and_fields = nil

  @_allow_accessibility = nil
  @_allow_form_filling = nil
  @_allow_high_resolution_printing = nil
  @_allow_document_assembly = nil
  @_type = nil
end

Instance Attribute Details

#allow_accessibilityObject

Gets or sets if accessibility programs should be able to read the documents text and images for the user.



56
57
58
# File 'lib/ruby_client/Security.rb', line 56

def allow_accessibility
  @allow_accessibility
end

#allow_copyObject

Gets or sets if text and images can be copied to the clipboard by the user.



26
27
28
# File 'lib/ruby_client/Security.rb', line 26

def allow_copy
  @allow_copy
end

#allow_document_assemblyObject

Gets or sets if the document can be assembled and manipulated by the user.



71
72
73
# File 'lib/ruby_client/Security.rb', line 71

def allow_document_assembly
  @allow_document_assembly
end

#allow_editObject

Gets or sets if the document can be edited by the user.



31
32
33
# File 'lib/ruby_client/Security.rb', line 31

def allow_edit
  @allow_edit
end

#allow_form_fillingObject

Gets or sets if form filling should be allowed by the user.



61
62
63
# File 'lib/ruby_client/Security.rb', line 61

def allow_form_filling
  @allow_form_filling
end

#allow_high_resolution_printingObject

Gets or sets if the document can be printed at a high resolution by the user.



66
67
68
# File 'lib/ruby_client/Security.rb', line 66

def allow_high_resolution_printing
  @allow_high_resolution_printing
end

#allow_printObject

Gets or sets if the document can be printed by the user.



36
37
38
# File 'lib/ruby_client/Security.rb', line 36

def allow_print
  @allow_print
end

#allow_update_annots_and_fieldsObject

Gets or sets if annotations and form fields can be added, edited and modified by the user.



41
42
43
# File 'lib/ruby_client/Security.rb', line 41

def allow_update_annots_and_fields
  @allow_update_annots_and_fields
end

#owner_passwordObject

Gets or sets the owner password.



46
47
48
# File 'lib/ruby_client/Security.rb', line 46

def owner_password
  @owner_password
end

#user_passwordObject

Gets or sets the user password.



51
52
53
# File 'lib/ruby_client/Security.rb', line 51

def user_password
  @user_password
end