groupdocs_annotation_cloud 21.2 → 21.6
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.
- checksums.yaml +4 -4
- data/lib/groupdocs_annotation_cloud/api_error.rb +17 -4
- data/lib/groupdocs_annotation_cloud/models/annotate_options.rb +14 -4
- data/lib/groupdocs_annotation_cloud/models/annotation_info.rb +16 -1
- data/lib/groupdocs_annotation_cloud/models/preview_options.rb +44 -4
- data/lib/groupdocs_annotation_cloud/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a9956e274f0fc599d8b2feb58426edbea1b7b6b
|
4
|
+
data.tar.gz: 3674ecb62ee775c97c5b19f6bffcc19e1545e577
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4773c1b711085fa304503e62c7dc427316d0857aaff6aa9ccfa30a769e6e885dbc89dae46ab23e46ee1550d338313e46875053ce7d5b704a8302657f67eb023
|
7
|
+
data.tar.gz: 146ca64356f5b2f2ce01fa659337abb8722270c677fdcb122936d3f748491fd4383db09df2be7be151133b94d9a7f6e54058e1e2fbc14ac28d65f60b1c29af47
|
@@ -39,10 +39,23 @@ module GroupDocsAnnotationCloud
|
|
39
39
|
|
40
40
|
if arg.key?(:response_body) then
|
41
41
|
data = JSON.parse(arg[:response_body], :symbolize_names => true)
|
42
|
-
if !data.nil?
|
43
|
-
|
44
|
-
|
45
|
-
|
42
|
+
if !data.nil? then
|
43
|
+
if !data[:error].nil? then
|
44
|
+
error = data[:error]
|
45
|
+
if error.kind_of?(String) then
|
46
|
+
@message = error
|
47
|
+
else
|
48
|
+
@message = error[:message]
|
49
|
+
end
|
50
|
+
else
|
51
|
+
message = data[:message]
|
52
|
+
if !message.nil? && message.kind_of?(String) then
|
53
|
+
@message = message
|
54
|
+
@code = data[:code]
|
55
|
+
else
|
56
|
+
@message = data
|
57
|
+
end
|
58
|
+
end
|
46
59
|
end
|
47
60
|
end
|
48
61
|
|
@@ -49,6 +49,9 @@ module GroupDocsAnnotationCloud
|
|
49
49
|
# Path to output document in the cloud storage. Required for Add method. Not required if Annotate (with file result) method used.
|
50
50
|
attr_accessor :output_path
|
51
51
|
|
52
|
+
# The path to directory containing custom fonts in storage
|
53
|
+
attr_accessor :fonts_path
|
54
|
+
|
52
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
56
|
def self.attribute_map
|
54
57
|
{
|
@@ -57,7 +60,8 @@ module GroupDocsAnnotationCloud
|
|
57
60
|
:'first_page' => :'FirstPage',
|
58
61
|
:'last_page' => :'LastPage',
|
59
62
|
:'only_annotated_pages' => :'OnlyAnnotatedPages',
|
60
|
-
:'output_path' => :'OutputPath'
|
63
|
+
:'output_path' => :'OutputPath',
|
64
|
+
:'fonts_path' => :'FontsPath'
|
61
65
|
}
|
62
66
|
end
|
63
67
|
|
@@ -69,7 +73,8 @@ module GroupDocsAnnotationCloud
|
|
69
73
|
:'first_page' => :'Integer',
|
70
74
|
:'last_page' => :'Integer',
|
71
75
|
:'only_annotated_pages' => :'BOOLEAN',
|
72
|
-
:'output_path' => :'String'
|
76
|
+
:'output_path' => :'String',
|
77
|
+
:'fonts_path' => :'String'
|
73
78
|
}
|
74
79
|
end
|
75
80
|
|
@@ -107,6 +112,10 @@ module GroupDocsAnnotationCloud
|
|
107
112
|
self.output_path = attributes[:'OutputPath']
|
108
113
|
end
|
109
114
|
|
115
|
+
if attributes.key?(:'FontsPath')
|
116
|
+
self.fonts_path = attributes[:'FontsPath']
|
117
|
+
end
|
118
|
+
|
110
119
|
end
|
111
120
|
|
112
121
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -147,7 +156,8 @@ module GroupDocsAnnotationCloud
|
|
147
156
|
first_page == other.first_page &&
|
148
157
|
last_page == other.last_page &&
|
149
158
|
only_annotated_pages == other.only_annotated_pages &&
|
150
|
-
output_path == other.output_path
|
159
|
+
output_path == other.output_path &&
|
160
|
+
fonts_path == other.fonts_path
|
151
161
|
end
|
152
162
|
|
153
163
|
# @see the `==` method
|
@@ -159,7 +169,7 @@ module GroupDocsAnnotationCloud
|
|
159
169
|
# Calculates hash code according to all attributes.
|
160
170
|
# @return [Fixnum] Hash code
|
161
171
|
def hash
|
162
|
-
[file_info, annotations, first_page, last_page, only_annotated_pages, output_path].hash
|
172
|
+
[file_info, annotations, first_page, last_page, only_annotated_pages, output_path, fonts_path].hash
|
163
173
|
end
|
164
174
|
|
165
175
|
# Downcases first letter.
|
@@ -106,6 +106,9 @@ module GroupDocsAnnotationCloud
|
|
106
106
|
# Gets or sets the watermark annotation's rotation angle
|
107
107
|
attr_accessor :angle
|
108
108
|
|
109
|
+
# Gets or sets z-index. Default value is 0 The z-index property specifies the stack order of an element.
|
110
|
+
attr_accessor :z_index
|
111
|
+
|
109
112
|
# Gets or sets annotation link url
|
110
113
|
attr_accessor :url
|
111
114
|
|
@@ -161,6 +164,7 @@ module GroupDocsAnnotationCloud
|
|
161
164
|
:'font_size' => :'FontSize',
|
162
165
|
:'opacity' => :'Opacity',
|
163
166
|
:'angle' => :'Angle',
|
167
|
+
:'z_index' => :'ZIndex',
|
164
168
|
:'url' => :'Url',
|
165
169
|
:'image_path' => :'ImagePath'
|
166
170
|
}
|
@@ -194,6 +198,7 @@ module GroupDocsAnnotationCloud
|
|
194
198
|
:'font_size' => :'Float',
|
195
199
|
:'opacity' => :'Float',
|
196
200
|
:'angle' => :'Float',
|
201
|
+
:'z_index' => :'Integer',
|
197
202
|
:'url' => :'String',
|
198
203
|
:'image_path' => :'String'
|
199
204
|
}
|
@@ -311,6 +316,10 @@ module GroupDocsAnnotationCloud
|
|
311
316
|
self.angle = attributes[:'Angle']
|
312
317
|
end
|
313
318
|
|
319
|
+
if attributes.key?(:'ZIndex')
|
320
|
+
self.z_index = attributes[:'ZIndex']
|
321
|
+
end
|
322
|
+
|
314
323
|
if attributes.key?(:'Url')
|
315
324
|
self.url = attributes[:'Url']
|
316
325
|
end
|
@@ -353,6 +362,10 @@ module GroupDocsAnnotationCloud
|
|
353
362
|
invalid_properties.push("invalid value for 'created_on', created_on cannot be nil.")
|
354
363
|
end
|
355
364
|
|
365
|
+
if @z_index.nil?
|
366
|
+
invalid_properties.push("invalid value for 'z_index', z_index cannot be nil.")
|
367
|
+
end
|
368
|
+
|
356
369
|
return invalid_properties
|
357
370
|
end
|
358
371
|
|
@@ -374,6 +387,7 @@ module GroupDocsAnnotationCloud
|
|
374
387
|
return false if @created_on.nil?
|
375
388
|
pen_style_validator = EnumAttributeValidator.new('String', ["Solid", "Dash", "DashDot", "Dot", "LongDash", "DashDotDot"])
|
376
389
|
return false unless pen_style_validator.valid?(@pen_style)
|
390
|
+
return false if @z_index.nil?
|
377
391
|
return true
|
378
392
|
end
|
379
393
|
|
@@ -467,6 +481,7 @@ module GroupDocsAnnotationCloud
|
|
467
481
|
font_size == other.font_size &&
|
468
482
|
opacity == other.opacity &&
|
469
483
|
angle == other.angle &&
|
484
|
+
z_index == other.z_index &&
|
470
485
|
url == other.url &&
|
471
486
|
image_path == other.image_path
|
472
487
|
end
|
@@ -480,7 +495,7 @@ module GroupDocsAnnotationCloud
|
|
480
495
|
# Calculates hash code according to all attributes.
|
481
496
|
# @return [Fixnum] Hash code
|
482
497
|
def hash
|
483
|
-
[id, text, text_to_replace, horizontal_alignment, vertical_alignment, creator_id, creator_name, creator_email, box, points, page_number, annotation_position, svg_path, type, replies, created_on, font_color, pen_color, pen_width, pen_style, background_color, font_family, font_size, opacity, angle, url, image_path].hash
|
498
|
+
[id, text, text_to_replace, horizontal_alignment, vertical_alignment, creator_id, creator_name, creator_email, box, points, page_number, annotation_position, svg_path, type, replies, created_on, font_color, pen_color, pen_width, pen_style, background_color, font_family, font_size, opacity, angle, z_index, url, image_path].hash
|
484
499
|
end
|
485
500
|
|
486
501
|
# Downcases first letter.
|
@@ -46,8 +46,17 @@ module GroupDocsAnnotationCloud
|
|
46
46
|
# Preview image height. Not required. Default width used if not specified or 0.
|
47
47
|
attr_accessor :height
|
48
48
|
|
49
|
+
# Gets or sets the resolution for generated images, in dots per inch. The default value is 96.
|
50
|
+
attr_accessor :resolution
|
51
|
+
|
49
52
|
# Render document comments. Default value is 'false'.
|
50
53
|
attr_accessor :render_comments
|
54
|
+
|
55
|
+
# The property that controls whether annotations will be generated on the preview. Default State - true.
|
56
|
+
attr_accessor :render_annotations
|
57
|
+
|
58
|
+
# The path to directory containing custom fonts in storage
|
59
|
+
attr_accessor :fonts_path
|
51
60
|
class EnumAttributeValidator
|
52
61
|
attr_reader :datatype
|
53
62
|
attr_reader :allowable_values
|
@@ -78,7 +87,10 @@ module GroupDocsAnnotationCloud
|
|
78
87
|
:'page_numbers' => :'PageNumbers',
|
79
88
|
:'width' => :'Width',
|
80
89
|
:'height' => :'Height',
|
81
|
-
:'
|
90
|
+
:'resolution' => :'Resolution',
|
91
|
+
:'render_comments' => :'RenderComments',
|
92
|
+
:'render_annotations' => :'RenderAnnotations',
|
93
|
+
:'fonts_path' => :'FontsPath'
|
82
94
|
}
|
83
95
|
end
|
84
96
|
|
@@ -90,7 +102,10 @@ module GroupDocsAnnotationCloud
|
|
90
102
|
:'page_numbers' => :'Array<Integer>',
|
91
103
|
:'width' => :'Integer',
|
92
104
|
:'height' => :'Integer',
|
93
|
-
:'
|
105
|
+
:'resolution' => :'Integer',
|
106
|
+
:'render_comments' => :'BOOLEAN',
|
107
|
+
:'render_annotations' => :'BOOLEAN',
|
108
|
+
:'fonts_path' => :'String'
|
94
109
|
}
|
95
110
|
end
|
96
111
|
|
@@ -124,10 +139,22 @@ module GroupDocsAnnotationCloud
|
|
124
139
|
self.height = attributes[:'Height']
|
125
140
|
end
|
126
141
|
|
142
|
+
if attributes.key?(:'Resolution')
|
143
|
+
self.resolution = attributes[:'Resolution']
|
144
|
+
end
|
145
|
+
|
127
146
|
if attributes.key?(:'RenderComments')
|
128
147
|
self.render_comments = attributes[:'RenderComments']
|
129
148
|
end
|
130
149
|
|
150
|
+
if attributes.key?(:'RenderAnnotations')
|
151
|
+
self.render_annotations = attributes[:'RenderAnnotations']
|
152
|
+
end
|
153
|
+
|
154
|
+
if attributes.key?(:'FontsPath')
|
155
|
+
self.fonts_path = attributes[:'FontsPath']
|
156
|
+
end
|
157
|
+
|
131
158
|
end
|
132
159
|
|
133
160
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -146,10 +173,18 @@ module GroupDocsAnnotationCloud
|
|
146
173
|
invalid_properties.push("invalid value for 'height', height cannot be nil.")
|
147
174
|
end
|
148
175
|
|
176
|
+
if @resolution.nil?
|
177
|
+
invalid_properties.push("invalid value for 'resolution', resolution cannot be nil.")
|
178
|
+
end
|
179
|
+
|
149
180
|
if @render_comments.nil?
|
150
181
|
invalid_properties.push("invalid value for 'render_comments', render_comments cannot be nil.")
|
151
182
|
end
|
152
183
|
|
184
|
+
if @render_annotations.nil?
|
185
|
+
invalid_properties.push("invalid value for 'render_annotations', render_annotations cannot be nil.")
|
186
|
+
end
|
187
|
+
|
153
188
|
return invalid_properties
|
154
189
|
end
|
155
190
|
|
@@ -161,7 +196,9 @@ module GroupDocsAnnotationCloud
|
|
161
196
|
return false unless format_validator.valid?(@format)
|
162
197
|
return false if @width.nil?
|
163
198
|
return false if @height.nil?
|
199
|
+
return false if @resolution.nil?
|
164
200
|
return false if @render_comments.nil?
|
201
|
+
return false if @render_annotations.nil?
|
165
202
|
return true
|
166
203
|
end
|
167
204
|
|
@@ -190,7 +227,10 @@ module GroupDocsAnnotationCloud
|
|
190
227
|
page_numbers == other.page_numbers &&
|
191
228
|
width == other.width &&
|
192
229
|
height == other.height &&
|
193
|
-
|
230
|
+
resolution == other.resolution &&
|
231
|
+
render_comments == other.render_comments &&
|
232
|
+
render_annotations == other.render_annotations &&
|
233
|
+
fonts_path == other.fonts_path
|
194
234
|
end
|
195
235
|
|
196
236
|
# @see the `==` method
|
@@ -202,7 +242,7 @@ module GroupDocsAnnotationCloud
|
|
202
242
|
# Calculates hash code according to all attributes.
|
203
243
|
# @return [Fixnum] Hash code
|
204
244
|
def hash
|
205
|
-
[file_info, format, page_numbers, width, height, render_comments].hash
|
245
|
+
[file_info, format, page_numbers, width, height, resolution, render_comments, render_annotations, fonts_path].hash
|
206
246
|
end
|
207
247
|
|
208
248
|
# Downcases first letter.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: groupdocs_annotation_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '21.
|
4
|
+
version: '21.6'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GroupDocs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-17 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
|