groupdocs_signature_cloud 20.7 → 21.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/groupdocs_signature_cloud.rb +7 -1
- data/lib/groupdocs_signature_cloud/api/file_api.rb +6 -6
- data/lib/groupdocs_signature_cloud/api/folder_api.rb +6 -6
- data/lib/groupdocs_signature_cloud/api/info_api.rb +2 -2
- data/lib/groupdocs_signature_cloud/api/preview_api.rb +217 -0
- data/lib/groupdocs_signature_cloud/api/sign_api.rb +6 -6
- data/lib/groupdocs_signature_cloud/api/storage_api.rb +5 -5
- data/lib/groupdocs_signature_cloud/api_client.rb +1 -1
- data/lib/groupdocs_signature_cloud/api_error.rb +18 -5
- data/lib/groupdocs_signature_cloud/configuration.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/barcode_signature.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/barcode_type.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/barcodes_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/base_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/border_line.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/brush.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/color.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/delete_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/delete_result.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/delete_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/digital_signature.rb +15 -5
- data/lib/groupdocs_signature_cloud/models/disc_usage.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/error.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/error_details.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/file_info.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/file_version.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/file_versions.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/files_list.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/files_upload_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/format.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/formats_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/image_signature.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/info_result.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/info_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/linear_gradient_brush.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/object_exist.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/options_base.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/padding.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/page_info.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/pages_setup.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/pdf_digital_signature.rb +321 -0
- data/lib/groupdocs_signature_cloud/models/preview_page.rb +259 -0
- data/lib/groupdocs_signature_cloud/models/preview_result.rb +261 -0
- data/lib/groupdocs_signature_cloud/models/preview_settings.rb +338 -0
- data/lib/groupdocs_signature_cloud/models/qr_code_signature.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/qr_code_type.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/qr_codes_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/radial_gradient_brush.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/save_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/search_barcode_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/search_digital_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/search_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/search_qr_code_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/search_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/search_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/sign_barcode_options.rb +17 -2
- data/lib/groupdocs_signature_cloud/models/sign_digital_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/sign_image_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/sign_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/sign_qr_code_options.rb +17 -2
- data/lib/groupdocs_signature_cloud/models/sign_result.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/sign_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/sign_stamp_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/sign_text_options.rb +20 -5
- data/lib/groupdocs_signature_cloud/models/signature.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/signature_font.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/solid_brush.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/stamp_line.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/storage_exist.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/storage_file.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/text_signature.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/texture_brush.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/time_stamp.rb +239 -0
- data/lib/groupdocs_signature_cloud/models/update_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/update_result.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/update_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/verify_barcode_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/verify_digital_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/verify_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/verify_qr_code_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/verify_result.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/verify_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/verify_text_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/version.rb +2 -2
- metadata +8 -16
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="sign_barcode_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -106,6 +106,9 @@ module GroupDocsSignatureCloud
|
|
106
106
|
# Gets or sets the Z-order position of text signature. Determines the display order of overlapping signatures.
|
107
107
|
attr_accessor :z_order
|
108
108
|
|
109
|
+
# Gets or sets the native attribute. If it is set document specific signatures could be used. Native text watermark for WordProcessing documents is different than regular, for example.
|
110
|
+
attr_accessor :native
|
111
|
+
|
109
112
|
# Get or set Barcode type. Pick one from supported barcode types list
|
110
113
|
attr_accessor :barcode_type
|
111
114
|
|
@@ -167,6 +170,7 @@ module GroupDocsSignatureCloud
|
|
167
170
|
:'text_horizontal_alignment' => :'TextHorizontalAlignment',
|
168
171
|
:'text_vertical_alignment' => :'TextVerticalAlignment',
|
169
172
|
:'z_order' => :'ZOrder',
|
173
|
+
:'native' => :'Native',
|
170
174
|
:'barcode_type' => :'BarcodeType',
|
171
175
|
:'transparency' => :'Transparency',
|
172
176
|
:'code_text_alignment' => :'CodeTextAlignment',
|
@@ -202,6 +206,7 @@ module GroupDocsSignatureCloud
|
|
202
206
|
:'text_horizontal_alignment' => :'String',
|
203
207
|
:'text_vertical_alignment' => :'String',
|
204
208
|
:'z_order' => :'Integer',
|
209
|
+
:'native' => :'BOOLEAN',
|
205
210
|
:'barcode_type' => :'String',
|
206
211
|
:'transparency' => :'Float',
|
207
212
|
:'code_text_alignment' => :'String',
|
@@ -317,6 +322,10 @@ module GroupDocsSignatureCloud
|
|
317
322
|
self.z_order = attributes[:'ZOrder']
|
318
323
|
end
|
319
324
|
|
325
|
+
if attributes.key?(:'Native')
|
326
|
+
self.native = attributes[:'Native']
|
327
|
+
end
|
328
|
+
|
320
329
|
if attributes.key?(:'BarcodeType')
|
321
330
|
self.barcode_type = attributes[:'BarcodeType']
|
322
331
|
end
|
@@ -403,6 +412,10 @@ module GroupDocsSignatureCloud
|
|
403
412
|
invalid_properties.push("invalid value for 'z_order', z_order cannot be nil.")
|
404
413
|
end
|
405
414
|
|
415
|
+
if @native.nil?
|
416
|
+
invalid_properties.push("invalid value for 'native', native cannot be nil.")
|
417
|
+
end
|
418
|
+
|
406
419
|
if @code_text_alignment.nil?
|
407
420
|
invalid_properties.push("invalid value for 'code_text_alignment', code_text_alignment cannot be nil.")
|
408
421
|
end
|
@@ -447,6 +460,7 @@ module GroupDocsSignatureCloud
|
|
447
460
|
text_vertical_alignment_validator = EnumAttributeValidator.new('String', ["Top", "Center", "Bottom"])
|
448
461
|
return false unless text_vertical_alignment_validator.valid?(@text_vertical_alignment)
|
449
462
|
return false if @z_order.nil?
|
463
|
+
return false if @native.nil?
|
450
464
|
return false if @code_text_alignment.nil?
|
451
465
|
code_text_alignment_validator = EnumAttributeValidator.new('String', ["None", "Above", "Below", "Right"])
|
452
466
|
return false unless code_text_alignment_validator.valid?(@code_text_alignment)
|
@@ -623,6 +637,7 @@ module GroupDocsSignatureCloud
|
|
623
637
|
text_horizontal_alignment == other.text_horizontal_alignment &&
|
624
638
|
text_vertical_alignment == other.text_vertical_alignment &&
|
625
639
|
z_order == other.z_order &&
|
640
|
+
native == other.native &&
|
626
641
|
barcode_type == other.barcode_type &&
|
627
642
|
transparency == other.transparency &&
|
628
643
|
code_text_alignment == other.code_text_alignment &&
|
@@ -638,7 +653,7 @@ module GroupDocsSignatureCloud
|
|
638
653
|
# Calculates hash code according to all attributes.
|
639
654
|
# @return [Fixnum] Hash code
|
640
655
|
def hash
|
641
|
-
[signature_type, page, all_pages, pages_setup, left, top, width, height, location_measure_type, size_measure_type, stretch, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, text, font, fore_color, background_color, background_brush, border, text_horizontal_alignment, text_vertical_alignment, z_order, barcode_type, transparency, code_text_alignment, inner_margins].hash
|
656
|
+
[signature_type, page, all_pages, pages_setup, left, top, width, height, location_measure_type, size_measure_type, stretch, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, text, font, fore_color, background_color, background_brush, border, text_horizontal_alignment, text_vertical_alignment, z_order, native, barcode_type, transparency, code_text_alignment, inner_margins].hash
|
642
657
|
end
|
643
658
|
|
644
659
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="sign_digital_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="sign_image_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="sign_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="sign_qr_code_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -106,6 +106,9 @@ module GroupDocsSignatureCloud
|
|
106
106
|
# Gets or sets the Z-order position of text signature. Determines the display order of overlapping signatures.
|
107
107
|
attr_accessor :z_order
|
108
108
|
|
109
|
+
# Gets or sets the native attribute. If it is set document specific signatures could be used. Native text watermark for WordProcessing documents is different than regular, for example.
|
110
|
+
attr_accessor :native
|
111
|
+
|
109
112
|
# Get or set QRCode type. Value should be one from supported QRCode types list
|
110
113
|
attr_accessor :qr_code_type
|
111
114
|
|
@@ -170,6 +173,7 @@ module GroupDocsSignatureCloud
|
|
170
173
|
:'text_horizontal_alignment' => :'TextHorizontalAlignment',
|
171
174
|
:'text_vertical_alignment' => :'TextVerticalAlignment',
|
172
175
|
:'z_order' => :'ZOrder',
|
176
|
+
:'native' => :'Native',
|
173
177
|
:'qr_code_type' => :'QRCodeType',
|
174
178
|
:'transparency' => :'Transparency',
|
175
179
|
:'code_text_alignment' => :'CodeTextAlignment',
|
@@ -206,6 +210,7 @@ module GroupDocsSignatureCloud
|
|
206
210
|
:'text_horizontal_alignment' => :'String',
|
207
211
|
:'text_vertical_alignment' => :'String',
|
208
212
|
:'z_order' => :'Integer',
|
213
|
+
:'native' => :'BOOLEAN',
|
209
214
|
:'qr_code_type' => :'String',
|
210
215
|
:'transparency' => :'Float',
|
211
216
|
:'code_text_alignment' => :'String',
|
@@ -322,6 +327,10 @@ module GroupDocsSignatureCloud
|
|
322
327
|
self.z_order = attributes[:'ZOrder']
|
323
328
|
end
|
324
329
|
|
330
|
+
if attributes.key?(:'Native')
|
331
|
+
self.native = attributes[:'Native']
|
332
|
+
end
|
333
|
+
|
325
334
|
if attributes.key?(:'QRCodeType')
|
326
335
|
self.qr_code_type = attributes[:'QRCodeType']
|
327
336
|
end
|
@@ -412,6 +421,10 @@ module GroupDocsSignatureCloud
|
|
412
421
|
invalid_properties.push("invalid value for 'z_order', z_order cannot be nil.")
|
413
422
|
end
|
414
423
|
|
424
|
+
if @native.nil?
|
425
|
+
invalid_properties.push("invalid value for 'native', native cannot be nil.")
|
426
|
+
end
|
427
|
+
|
415
428
|
if @transparency.nil?
|
416
429
|
invalid_properties.push("invalid value for 'transparency', transparency cannot be nil.")
|
417
430
|
end
|
@@ -460,6 +473,7 @@ module GroupDocsSignatureCloud
|
|
460
473
|
text_vertical_alignment_validator = EnumAttributeValidator.new('String', ["Top", "Center", "Bottom"])
|
461
474
|
return false unless text_vertical_alignment_validator.valid?(@text_vertical_alignment)
|
462
475
|
return false if @z_order.nil?
|
476
|
+
return false if @native.nil?
|
463
477
|
return false if @transparency.nil?
|
464
478
|
return false if @code_text_alignment.nil?
|
465
479
|
code_text_alignment_validator = EnumAttributeValidator.new('String', ["None", "Above", "Below", "Right"])
|
@@ -637,6 +651,7 @@ module GroupDocsSignatureCloud
|
|
637
651
|
text_horizontal_alignment == other.text_horizontal_alignment &&
|
638
652
|
text_vertical_alignment == other.text_vertical_alignment &&
|
639
653
|
z_order == other.z_order &&
|
654
|
+
native == other.native &&
|
640
655
|
qr_code_type == other.qr_code_type &&
|
641
656
|
transparency == other.transparency &&
|
642
657
|
code_text_alignment == other.code_text_alignment &&
|
@@ -653,7 +668,7 @@ module GroupDocsSignatureCloud
|
|
653
668
|
# Calculates hash code according to all attributes.
|
654
669
|
# @return [Fixnum] Hash code
|
655
670
|
def hash
|
656
|
-
[signature_type, page, all_pages, pages_setup, left, top, width, height, location_measure_type, size_measure_type, stretch, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, text, font, fore_color, background_color, background_brush, border, text_horizontal_alignment, text_vertical_alignment, z_order, qr_code_type, transparency, code_text_alignment, inner_margins, logo_file_path].hash
|
671
|
+
[signature_type, page, all_pages, pages_setup, left, top, width, height, location_measure_type, size_measure_type, stretch, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, text, font, fore_color, background_color, background_brush, border, text_horizontal_alignment, text_vertical_alignment, z_order, native, qr_code_type, transparency, code_text_alignment, inner_margins, logo_file_path].hash
|
657
672
|
end
|
658
673
|
|
659
674
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="sign_result.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -31,7 +31,7 @@ module GroupDocsSignatureCloud
|
|
31
31
|
# Sign result information
|
32
32
|
class SignResult
|
33
33
|
|
34
|
-
#
|
34
|
+
# Signed file info
|
35
35
|
attr_accessor :file_info
|
36
36
|
|
37
37
|
# Source document size in bytes
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="sign_settings.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="sign_stamp_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="sign_text_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -105,6 +105,9 @@ module GroupDocsSignatureCloud
|
|
105
105
|
|
106
106
|
# Gets or sets the Z-order position of text signature. Determines the display order of overlapping signatures.
|
107
107
|
attr_accessor :z_order
|
108
|
+
|
109
|
+
# Gets or sets the native attribute. If it is set document specific signatures could be used. Native text watermark for WordProcessing documents is different than regular, for example.
|
110
|
+
attr_accessor :native
|
108
111
|
class EnumAttributeValidator
|
109
112
|
attr_reader :datatype
|
110
113
|
attr_reader :allowable_values
|
@@ -154,7 +157,8 @@ module GroupDocsSignatureCloud
|
|
154
157
|
:'border' => :'Border',
|
155
158
|
:'text_horizontal_alignment' => :'TextHorizontalAlignment',
|
156
159
|
:'text_vertical_alignment' => :'TextVerticalAlignment',
|
157
|
-
:'z_order' => :'ZOrder'
|
160
|
+
:'z_order' => :'ZOrder',
|
161
|
+
:'native' => :'Native'
|
158
162
|
}
|
159
163
|
end
|
160
164
|
|
@@ -185,7 +189,8 @@ module GroupDocsSignatureCloud
|
|
185
189
|
:'border' => :'BorderLine',
|
186
190
|
:'text_horizontal_alignment' => :'String',
|
187
191
|
:'text_vertical_alignment' => :'String',
|
188
|
-
:'z_order' => :'Integer'
|
192
|
+
:'z_order' => :'Integer',
|
193
|
+
:'native' => :'BOOLEAN'
|
189
194
|
}
|
190
195
|
end
|
191
196
|
|
@@ -297,6 +302,10 @@ module GroupDocsSignatureCloud
|
|
297
302
|
self.z_order = attributes[:'ZOrder']
|
298
303
|
end
|
299
304
|
|
305
|
+
if attributes.key?(:'Native')
|
306
|
+
self.native = attributes[:'Native']
|
307
|
+
end
|
308
|
+
|
300
309
|
end
|
301
310
|
|
302
311
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -367,6 +376,10 @@ module GroupDocsSignatureCloud
|
|
367
376
|
invalid_properties.push("invalid value for 'z_order', z_order cannot be nil.")
|
368
377
|
end
|
369
378
|
|
379
|
+
if @native.nil?
|
380
|
+
invalid_properties.push("invalid value for 'native', native cannot be nil.")
|
381
|
+
end
|
382
|
+
|
370
383
|
return invalid_properties
|
371
384
|
end
|
372
385
|
|
@@ -407,6 +420,7 @@ module GroupDocsSignatureCloud
|
|
407
420
|
text_vertical_alignment_validator = EnumAttributeValidator.new('String', ["Top", "Center", "Bottom"])
|
408
421
|
return false unless text_vertical_alignment_validator.valid?(@text_vertical_alignment)
|
409
422
|
return false if @z_order.nil?
|
423
|
+
return false if @native.nil?
|
410
424
|
return true
|
411
425
|
end
|
412
426
|
|
@@ -565,7 +579,8 @@ module GroupDocsSignatureCloud
|
|
565
579
|
border == other.border &&
|
566
580
|
text_horizontal_alignment == other.text_horizontal_alignment &&
|
567
581
|
text_vertical_alignment == other.text_vertical_alignment &&
|
568
|
-
z_order == other.z_order
|
582
|
+
z_order == other.z_order &&
|
583
|
+
native == other.native
|
569
584
|
end
|
570
585
|
|
571
586
|
# @see the `==` method
|
@@ -577,7 +592,7 @@ module GroupDocsSignatureCloud
|
|
577
592
|
# Calculates hash code according to all attributes.
|
578
593
|
# @return [Fixnum] Hash code
|
579
594
|
def hash
|
580
|
-
[signature_type, page, all_pages, pages_setup, left, top, width, height, location_measure_type, size_measure_type, stretch, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, text, font, fore_color, background_color, background_brush, border, text_horizontal_alignment, text_vertical_alignment, z_order].hash
|
595
|
+
[signature_type, page, all_pages, pages_setup, left, top, width, height, location_measure_type, size_measure_type, stretch, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, text, font, fore_color, background_color, background_brush, border, text_horizontal_alignment, text_vertical_alignment, z_order, native].hash
|
581
596
|
end
|
582
597
|
|
583
598
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="signature.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="signature_font.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="solid_brush.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="stamp_line.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="storage_exist.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="storage_file.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="text_signature.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="texture_brush.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -0,0 +1,239 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="time_stamp.rb">
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
# of this software and associated documentation files (the "Software"), to deal
|
9
|
+
# in the Software without restriction, including without limitation the rights
|
10
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
# copies of the Software, and to permit persons to whom the Software is
|
12
|
+
# furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in all
|
15
|
+
# copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
# SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# --------------------------------------------------------------------------------------------------------------------
|
26
|
+
#
|
27
|
+
|
28
|
+
require 'date'
|
29
|
+
|
30
|
+
module GroupDocsSignatureCloud
|
31
|
+
# Represents data to get time stamp from third-party site.
|
32
|
+
class TimeStamp
|
33
|
+
|
34
|
+
# Url of third-party site.
|
35
|
+
attr_accessor :url
|
36
|
+
|
37
|
+
# User.
|
38
|
+
attr_accessor :user
|
39
|
+
|
40
|
+
# Password.
|
41
|
+
attr_accessor :password
|
42
|
+
|
43
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
44
|
+
def self.attribute_map
|
45
|
+
{
|
46
|
+
:'url' => :'Url',
|
47
|
+
:'user' => :'User',
|
48
|
+
:'password' => :'Password'
|
49
|
+
}
|
50
|
+
end
|
51
|
+
|
52
|
+
# Attribute type mapping.
|
53
|
+
def self.swagger_types
|
54
|
+
{
|
55
|
+
:'url' => :'String',
|
56
|
+
:'user' => :'String',
|
57
|
+
:'password' => :'String'
|
58
|
+
}
|
59
|
+
end
|
60
|
+
|
61
|
+
# Initializes the object
|
62
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
63
|
+
def initialize(attributes = {})
|
64
|
+
return unless attributes.is_a?(Hash)
|
65
|
+
|
66
|
+
# convert string to symbol for hash key
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
68
|
+
|
69
|
+
if attributes.key?(:'Url')
|
70
|
+
self.url = attributes[:'Url']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.key?(:'User')
|
74
|
+
self.user = attributes[:'User']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'Password')
|
78
|
+
self.password = attributes[:'Password']
|
79
|
+
end
|
80
|
+
|
81
|
+
end
|
82
|
+
|
83
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
84
|
+
# @return Array for valid properies with the reasons
|
85
|
+
def list_invalid_properties
|
86
|
+
invalid_properties = []
|
87
|
+
return invalid_properties
|
88
|
+
end
|
89
|
+
|
90
|
+
# Check to see if the all the properties in the model are valid
|
91
|
+
# @return true if the model is valid
|
92
|
+
def valid?
|
93
|
+
return true
|
94
|
+
end
|
95
|
+
|
96
|
+
# Checks equality by comparing each attribute.
|
97
|
+
# @param [Object] Object to be compared
|
98
|
+
def ==(other)
|
99
|
+
return true if self.equal?(other)
|
100
|
+
self.class == other.class &&
|
101
|
+
url == other.url &&
|
102
|
+
user == other.user &&
|
103
|
+
password == other.password
|
104
|
+
end
|
105
|
+
|
106
|
+
# @see the `==` method
|
107
|
+
# @param [Object] Object to be compared
|
108
|
+
def eql?(other)
|
109
|
+
self == other
|
110
|
+
end
|
111
|
+
|
112
|
+
# Calculates hash code according to all attributes.
|
113
|
+
# @return [Fixnum] Hash code
|
114
|
+
def hash
|
115
|
+
[url, user, password].hash
|
116
|
+
end
|
117
|
+
|
118
|
+
# Downcases first letter.
|
119
|
+
# @return downcased string
|
120
|
+
def uncap(str)
|
121
|
+
str[0, 1].downcase + str[1..-1]
|
122
|
+
end
|
123
|
+
|
124
|
+
# Builds the object from hash
|
125
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
126
|
+
# @return [Object] Returns the model itself
|
127
|
+
def build_from_hash(attributes)
|
128
|
+
return nil unless attributes.is_a?(Hash)
|
129
|
+
self.class.swagger_types.each_pair do |key, type|
|
130
|
+
pname = uncap(self.class.attribute_map[key]).intern
|
131
|
+
value = attributes[pname]
|
132
|
+
if type =~ /\AArray<(.*)>/i
|
133
|
+
# check to ensure the input is an array given that the the attribute
|
134
|
+
# is documented as an array but the input is not
|
135
|
+
if value.is_a?(Array)
|
136
|
+
self.send("#{key}=", value.map { |v| _deserialize($1, v) })
|
137
|
+
end
|
138
|
+
elsif !value.nil?
|
139
|
+
self.send("#{key}=", _deserialize(type, value))
|
140
|
+
end
|
141
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
142
|
+
end
|
143
|
+
|
144
|
+
self
|
145
|
+
end
|
146
|
+
|
147
|
+
# Deserializes the data based on type
|
148
|
+
# @param string type Data type
|
149
|
+
# @param string value Value to be deserialized
|
150
|
+
# @return [Object] Deserialized data
|
151
|
+
def _deserialize(type, value)
|
152
|
+
case type.to_sym
|
153
|
+
when :DateTime
|
154
|
+
Date.parse value
|
155
|
+
when :Date
|
156
|
+
Date.parse value
|
157
|
+
when :String
|
158
|
+
value.to_s
|
159
|
+
when :Integer
|
160
|
+
value.to_i
|
161
|
+
when :Float
|
162
|
+
value.to_f
|
163
|
+
when :BOOLEAN
|
164
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
165
|
+
true
|
166
|
+
else
|
167
|
+
false
|
168
|
+
end
|
169
|
+
when :Object
|
170
|
+
# generic object (usually a Hash), return directly
|
171
|
+
value
|
172
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
173
|
+
inner_type = Regexp.last_match[:inner_type]
|
174
|
+
value.map { |v| _deserialize(inner_type, v) }
|
175
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
176
|
+
k_type = Regexp.last_match[:k_type]
|
177
|
+
v_type = Regexp.last_match[:v_type]
|
178
|
+
{}.tap do |hash|
|
179
|
+
value.each do |k, v|
|
180
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
181
|
+
end
|
182
|
+
end
|
183
|
+
else
|
184
|
+
# model
|
185
|
+
# Signature type fix
|
186
|
+
ttype = type
|
187
|
+
if value.is_a?(Hash) and !value[:signatureType].nil?
|
188
|
+
ttype = value[:signatureType] + 'Signature'
|
189
|
+
end
|
190
|
+
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
191
|
+
temp_model.build_from_hash(value)
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
# Returns the string representation of the object
|
196
|
+
# @return [String] String presentation of the object
|
197
|
+
def to_s
|
198
|
+
to_hash.to_s
|
199
|
+
end
|
200
|
+
|
201
|
+
# to_body is an alias to to_hash (backward compatibility)
|
202
|
+
# @return [Hash] Returns the object in the form of hash
|
203
|
+
def to_body
|
204
|
+
to_hash
|
205
|
+
end
|
206
|
+
|
207
|
+
# Returns the object in the form of hash
|
208
|
+
# @return [Hash] Returns the object in the form of hash
|
209
|
+
def to_hash
|
210
|
+
hash = {}
|
211
|
+
self.class.attribute_map.each_pair do |attr, param|
|
212
|
+
value = self.send(attr)
|
213
|
+
next if value.nil?
|
214
|
+
hash[param] = _to_hash(value)
|
215
|
+
end
|
216
|
+
hash
|
217
|
+
end
|
218
|
+
|
219
|
+
# Outputs non-array value in the form of hash
|
220
|
+
# For object, use to_hash. Otherwise, just return the value
|
221
|
+
# @param [Object] value Any valid value
|
222
|
+
# @return [Hash] Returns the value in the form of hash
|
223
|
+
def _to_hash(value)
|
224
|
+
if value.is_a?(Array)
|
225
|
+
value.compact.map { |v| _to_hash(v) }
|
226
|
+
elsif value.is_a?(Hash)
|
227
|
+
{}.tap do |hash|
|
228
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
229
|
+
end
|
230
|
+
elsif value.respond_to? :to_hash
|
231
|
+
value.to_hash
|
232
|
+
else
|
233
|
+
value
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
end
|
238
|
+
|
239
|
+
end
|