groupdocs_viewer_cloud 21.3 → 21.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,17 +34,37 @@ module GroupDocsViewerCloud
34
34
  # Enables tracked changes (revisions) rendering
35
35
  attr_accessor :render_tracked_changes
36
36
 
37
+ # Left page margin (for HTML rendering only)
38
+ attr_accessor :left_margin
39
+
40
+ # Right page margin (for HTML rendering only)
41
+ attr_accessor :right_margin
42
+
43
+ # Top page margin (for HTML rendering only)
44
+ attr_accessor :top_margin
45
+
46
+ # Bottom page margin (for HTML rendering only)
47
+ attr_accessor :bottom_margin
48
+
37
49
  # Attribute mapping from ruby-style variable name to JSON key.
38
50
  def self.attribute_map
39
51
  {
40
- :'render_tracked_changes' => :'RenderTrackedChanges'
52
+ :'render_tracked_changes' => :'RenderTrackedChanges',
53
+ :'left_margin' => :'LeftMargin',
54
+ :'right_margin' => :'RightMargin',
55
+ :'top_margin' => :'TopMargin',
56
+ :'bottom_margin' => :'BottomMargin'
41
57
  }
42
58
  end
43
59
 
44
60
  # Attribute type mapping.
45
61
  def self.swagger_types
46
62
  {
47
- :'render_tracked_changes' => :'BOOLEAN'
63
+ :'render_tracked_changes' => :'BOOLEAN',
64
+ :'left_margin' => :'Float',
65
+ :'right_margin' => :'Float',
66
+ :'top_margin' => :'Float',
67
+ :'bottom_margin' => :'Float'
48
68
  }
49
69
  end
50
70
 
@@ -60,6 +80,22 @@ module GroupDocsViewerCloud
60
80
  self.render_tracked_changes = attributes[:'RenderTrackedChanges']
61
81
  end
62
82
 
83
+ if attributes.key?(:'LeftMargin')
84
+ self.left_margin = attributes[:'LeftMargin']
85
+ end
86
+
87
+ if attributes.key?(:'RightMargin')
88
+ self.right_margin = attributes[:'RightMargin']
89
+ end
90
+
91
+ if attributes.key?(:'TopMargin')
92
+ self.top_margin = attributes[:'TopMargin']
93
+ end
94
+
95
+ if attributes.key?(:'BottomMargin')
96
+ self.bottom_margin = attributes[:'BottomMargin']
97
+ end
98
+
63
99
  end
64
100
 
65
101
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -70,6 +106,22 @@ module GroupDocsViewerCloud
70
106
  invalid_properties.push("invalid value for 'render_tracked_changes', render_tracked_changes cannot be nil.")
71
107
  end
72
108
 
109
+ if @left_margin.nil?
110
+ invalid_properties.push("invalid value for 'left_margin', left_margin cannot be nil.")
111
+ end
112
+
113
+ if @right_margin.nil?
114
+ invalid_properties.push("invalid value for 'right_margin', right_margin cannot be nil.")
115
+ end
116
+
117
+ if @top_margin.nil?
118
+ invalid_properties.push("invalid value for 'top_margin', top_margin cannot be nil.")
119
+ end
120
+
121
+ if @bottom_margin.nil?
122
+ invalid_properties.push("invalid value for 'bottom_margin', bottom_margin cannot be nil.")
123
+ end
124
+
73
125
  return invalid_properties
74
126
  end
75
127
 
@@ -77,6 +129,10 @@ module GroupDocsViewerCloud
77
129
  # @return true if the model is valid
78
130
  def valid?
79
131
  return false if @render_tracked_changes.nil?
132
+ return false if @left_margin.nil?
133
+ return false if @right_margin.nil?
134
+ return false if @top_margin.nil?
135
+ return false if @bottom_margin.nil?
80
136
  return true
81
137
  end
82
138
 
@@ -85,7 +141,11 @@ module GroupDocsViewerCloud
85
141
  def ==(other)
86
142
  return true if self.equal?(other)
87
143
  self.class == other.class &&
88
- render_tracked_changes == other.render_tracked_changes
144
+ render_tracked_changes == other.render_tracked_changes &&
145
+ left_margin == other.left_margin &&
146
+ right_margin == other.right_margin &&
147
+ top_margin == other.top_margin &&
148
+ bottom_margin == other.bottom_margin
89
149
  end
90
150
 
91
151
  # @see the `==` method
@@ -97,7 +157,7 @@ module GroupDocsViewerCloud
97
157
  # Calculates hash code according to all attributes.
98
158
  # @return [Fixnum] Hash code
99
159
  def hash
100
- [render_tracked_changes].hash
160
+ [render_tracked_changes, left_margin, right_margin, top_margin, bottom_margin].hash
101
161
  end
102
162
 
103
163
  # Downcases first letter.
@@ -25,5 +25,5 @@
25
25
  # --------------------------------------------------------------------------------------------------------------------
26
26
  #
27
27
  module GroupDocsViewerCloud
28
- VERSION = "21.3".freeze
28
+ VERSION = "21.8".freeze
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupdocs_viewer_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: '21.3'
4
+ version: '21.8'
5
5
  platform: ruby
6
6
  authors:
7
7
  - GroupDocs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-18 00:00:00.000000000 Z
11
+ date: 2021-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.14.0
27
- - !ruby/object:Gem::Dependency
28
- name: mimemagic
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 0.3.2
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 0.3.2
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: addressable
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -120,6 +106,7 @@ files:
120
106
  - lib/groupdocs_viewer_cloud/models/layer.rb
121
107
  - lib/groupdocs_viewer_cloud/models/layout.rb
122
108
  - lib/groupdocs_viewer_cloud/models/line.rb
109
+ - lib/groupdocs_viewer_cloud/models/mail_storage_options.rb
123
110
  - lib/groupdocs_viewer_cloud/models/object_exist.rb
124
111
  - lib/groupdocs_viewer_cloud/models/outlook_options.rb
125
112
  - lib/groupdocs_viewer_cloud/models/outlook_view_info.rb
@@ -137,9 +124,11 @@ files:
137
124
  - lib/groupdocs_viewer_cloud/models/storage_exist.rb
138
125
  - lib/groupdocs_viewer_cloud/models/storage_file.rb
139
126
  - lib/groupdocs_viewer_cloud/models/text_element.rb
127
+ - lib/groupdocs_viewer_cloud/models/text_options.rb
140
128
  - lib/groupdocs_viewer_cloud/models/tile.rb
141
129
  - lib/groupdocs_viewer_cloud/models/view_options.rb
142
130
  - lib/groupdocs_viewer_cloud/models/view_result.rb
131
+ - lib/groupdocs_viewer_cloud/models/visio_rendering_options.rb
143
132
  - lib/groupdocs_viewer_cloud/models/watermark.rb
144
133
  - lib/groupdocs_viewer_cloud/models/word.rb
145
134
  - lib/groupdocs_viewer_cloud/models/word_processing_options.rb