Class: DynamicPDFApi::Security
- Inherits:
-
Object
- Object
- DynamicPDFApi::Security
- Defined in:
- lib/ruby_client/Security.rb
Overview
Base class from which all security classes are derived.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#allow_accessibility ⇒ Object
Gets or sets if accessibility programs should be able to read the documents text and images for the user.
-
#allow_copy ⇒ Object
Gets or sets if text and images can be copied to the clipboard by the user.
-
#allow_document_assembly ⇒ Object
Gets or sets if the document can be assembled and manipulated by the user.
-
#allow_edit ⇒ Object
Gets or sets if the document can be edited by the user.
-
#allow_form_filling ⇒ Object
Gets or sets if form filling should be allowed by the user.
-
#allow_high_resolution_printing ⇒ Object
Gets or sets if the document can be printed at a high resolution by the user.
-
#allow_print ⇒ Object
Gets or sets if the document can be printed by the user.
-
#allow_update_annots_and_fields ⇒ Object
Gets or sets if annotations and form fields can be added, edited and modified by the user.
-
#owner_password ⇒ Object
Gets or sets the owner password.
-
#user_password ⇒ Object
Gets or sets the user password.
Instance Method Summary collapse
-
#initialize(user_pwd = nil, owner_pwd = nil) ⇒ Security
constructor
A new instance of Security.
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_accessibility ⇒ Object
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_copy ⇒ Object
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_assembly ⇒ Object
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_edit ⇒ Object
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_filling ⇒ Object
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_printing ⇒ Object
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_print ⇒ Object
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_fields ⇒ Object
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_password ⇒ Object
Gets or sets the owner password.
46 47 48 |
# File 'lib/ruby_client/Security.rb', line 46 def owner_password @owner_password end |
#user_password ⇒ Object
Gets or sets the user password.
51 52 53 |
# File 'lib/ruby_client/Security.rb', line 51 def user_password @user_password end |