groupdocs_signature_cloud 20.7 → 22.6
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/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/license_api.rb +169 -0
- 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 +21 -3
- data/lib/groupdocs_signature_cloud/models/barcode_type.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/barcodes_result.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/base_settings.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/border_line.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/brush.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/checkbox_form_field_signature.rb +460 -0
- data/lib/groupdocs_signature_cloud/models/color.rb +38 -5
- data/lib/groupdocs_signature_cloud/models/combobox_form_field_signature.rb +467 -0
- data/lib/groupdocs_signature_cloud/models/consumption_result.rb +257 -0
- data/lib/groupdocs_signature_cloud/models/delete_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/delete_result.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/delete_settings.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/digital_form_field_signature.rb +460 -0
- data/lib/groupdocs_signature_cloud/models/digital_signature.rb +35 -7
- data/lib/groupdocs_signature_cloud/models/digital_signature_appearance.rb +309 -0
- data/lib/groupdocs_signature_cloud/models/disc_usage.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/error.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/error_details.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/file_info.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/file_version.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/file_versions.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/files_list.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/files_upload_result.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/form_field_signature.rb +445 -0
- data/lib/groupdocs_signature_cloud/models/format.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/formats_result.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/image_appearance.rb +339 -0
- data/lib/groupdocs_signature_cloud/models/image_signature.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/info_result.rb +36 -6
- data/lib/groupdocs_signature_cloud/models/info_settings.rb +38 -5
- data/lib/groupdocs_signature_cloud/models/linear_gradient_brush.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/object_exist.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/options_base.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/padding.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/page_info.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/pages_setup.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/pdf_digital_signature.rb +339 -0
- data/lib/groupdocs_signature_cloud/models/pdf_digital_signature_appearance.rb +359 -0
- data/lib/groupdocs_signature_cloud/models/pdf_text_annotation_appearance.rb +395 -0
- data/lib/groupdocs_signature_cloud/models/pdf_text_sticker_appearance.rb +355 -0
- data/lib/groupdocs_signature_cloud/models/preview_page.rb +277 -0
- data/lib/groupdocs_signature_cloud/models/preview_result.rb +279 -0
- data/lib/groupdocs_signature_cloud/models/preview_settings.rb +356 -0
- data/lib/groupdocs_signature_cloud/models/qr_code_signature.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/qr_code_type.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/qr_codes_result.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/radial_gradient_brush.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/radio_button_form_field_signature.rb +467 -0
- data/lib/groupdocs_signature_cloud/models/save_options.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/search_barcode_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/search_digital_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/search_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/search_qr_code_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/search_result.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/search_settings.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/sign_barcode_options.rb +47 -4
- data/lib/groupdocs_signature_cloud/models/sign_digital_options.rb +32 -4
- data/lib/groupdocs_signature_cloud/models/sign_image_options.rb +32 -4
- data/lib/groupdocs_signature_cloud/models/sign_options.rb +35 -7
- data/lib/groupdocs_signature_cloud/models/sign_qr_code_options.rb +47 -4
- data/lib/groupdocs_signature_cloud/models/sign_result.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/sign_settings.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/sign_stamp_options.rb +32 -4
- data/lib/groupdocs_signature_cloud/models/sign_text_options.rb +50 -7
- data/lib/groupdocs_signature_cloud/models/signature.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/signature_appearance.rb +279 -0
- data/lib/groupdocs_signature_cloud/models/signature_font.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/solid_brush.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/stamp_line.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/storage_exist.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/storage_file.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/text_form_field_signature.rb +455 -0
- data/lib/groupdocs_signature_cloud/models/text_signature.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/texture_brush.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/time_stamp.rb +257 -0
- data/lib/groupdocs_signature_cloud/models/update_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/update_result.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/update_settings.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/verify_barcode_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/verify_digital_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/verify_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/verify_qr_code_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/verify_result.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/verify_settings.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/verify_text_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/version.rb +2 -2
- data/lib/groupdocs_signature_cloud.rb +21 -1
- metadata +26 -20
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="search_digital_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -129,7 +129,7 @@ module GroupDocsSignatureCloud
|
|
129
129
|
# @return true if the model is valid
|
130
130
|
def valid?
|
131
131
|
return false if @signature_type.nil?
|
132
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
132
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
133
133
|
return false unless signature_type_validator.valid?(@signature_type)
|
134
134
|
return false if @all_pages.nil?
|
135
135
|
return true
|
@@ -138,7 +138,7 @@ module GroupDocsSignatureCloud
|
|
138
138
|
# Custom attribute writer method checking allowed values (enum).
|
139
139
|
# @param [Object] signature_type Object to be assigned
|
140
140
|
def signature_type=(signature_type)
|
141
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
141
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
142
142
|
if signature_type.to_i == 0
|
143
143
|
unless validator.valid?(signature_type)
|
144
144
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
@@ -243,6 +243,24 @@ module GroupDocsSignatureCloud
|
|
243
243
|
ttype = type
|
244
244
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
245
245
|
ttype = value[:signatureType] + 'Signature'
|
246
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
247
|
+
type = value[:type]
|
248
|
+
if type == 'Checkbox'
|
249
|
+
ttype = 'CheckboxFormFieldSignature'
|
250
|
+
end
|
251
|
+
if type == 'Text'
|
252
|
+
ttype = 'TextFormFieldSignature'
|
253
|
+
end
|
254
|
+
if type == 'Combobox'
|
255
|
+
ttype = 'ComboboxFormFieldSignature'
|
256
|
+
end
|
257
|
+
if type == 'DigitalSignature'
|
258
|
+
ttype = 'DigitalFormFieldSignature'
|
259
|
+
end
|
260
|
+
if type == 'Radio'
|
261
|
+
ttype = 'RadioButtonFormFieldSignature'
|
262
|
+
end
|
263
|
+
end
|
246
264
|
end
|
247
265
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
248
266
|
temp_model.build_from_hash(value)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="search_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -129,7 +129,7 @@ module GroupDocsSignatureCloud
|
|
129
129
|
# @return true if the model is valid
|
130
130
|
def valid?
|
131
131
|
return false if @signature_type.nil?
|
132
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
132
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
133
133
|
return false unless signature_type_validator.valid?(@signature_type)
|
134
134
|
return false if @all_pages.nil?
|
135
135
|
return true
|
@@ -138,7 +138,7 @@ module GroupDocsSignatureCloud
|
|
138
138
|
# Custom attribute writer method checking allowed values (enum).
|
139
139
|
# @param [Object] signature_type Object to be assigned
|
140
140
|
def signature_type=(signature_type)
|
141
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
141
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
142
142
|
if signature_type.to_i == 0
|
143
143
|
unless validator.valid?(signature_type)
|
144
144
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
@@ -243,6 +243,24 @@ module GroupDocsSignatureCloud
|
|
243
243
|
ttype = type
|
244
244
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
245
245
|
ttype = value[:signatureType] + 'Signature'
|
246
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
247
|
+
type = value[:type]
|
248
|
+
if type == 'Checkbox'
|
249
|
+
ttype = 'CheckboxFormFieldSignature'
|
250
|
+
end
|
251
|
+
if type == 'Text'
|
252
|
+
ttype = 'TextFormFieldSignature'
|
253
|
+
end
|
254
|
+
if type == 'Combobox'
|
255
|
+
ttype = 'ComboboxFormFieldSignature'
|
256
|
+
end
|
257
|
+
if type == 'DigitalSignature'
|
258
|
+
ttype = 'DigitalFormFieldSignature'
|
259
|
+
end
|
260
|
+
if type == 'Radio'
|
261
|
+
ttype = 'RadioButtonFormFieldSignature'
|
262
|
+
end
|
263
|
+
end
|
246
264
|
end
|
247
265
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
248
266
|
temp_model.build_from_hash(value)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="search_qr_code_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -160,7 +160,7 @@ module GroupDocsSignatureCloud
|
|
160
160
|
# @return true if the model is valid
|
161
161
|
def valid?
|
162
162
|
return false if @signature_type.nil?
|
163
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
163
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
164
164
|
return false unless signature_type_validator.valid?(@signature_type)
|
165
165
|
return false if @all_pages.nil?
|
166
166
|
return false if @match_type.nil?
|
@@ -172,7 +172,7 @@ module GroupDocsSignatureCloud
|
|
172
172
|
# Custom attribute writer method checking allowed values (enum).
|
173
173
|
# @param [Object] signature_type Object to be assigned
|
174
174
|
def signature_type=(signature_type)
|
175
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
175
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
176
176
|
if signature_type.to_i == 0
|
177
177
|
unless validator.valid?(signature_type)
|
178
178
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
@@ -294,6 +294,24 @@ module GroupDocsSignatureCloud
|
|
294
294
|
ttype = type
|
295
295
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
296
296
|
ttype = value[:signatureType] + 'Signature'
|
297
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
298
|
+
type = value[:type]
|
299
|
+
if type == 'Checkbox'
|
300
|
+
ttype = 'CheckboxFormFieldSignature'
|
301
|
+
end
|
302
|
+
if type == 'Text'
|
303
|
+
ttype = 'TextFormFieldSignature'
|
304
|
+
end
|
305
|
+
if type == 'Combobox'
|
306
|
+
ttype = 'ComboboxFormFieldSignature'
|
307
|
+
end
|
308
|
+
if type == 'DigitalSignature'
|
309
|
+
ttype = 'DigitalFormFieldSignature'
|
310
|
+
end
|
311
|
+
if type == 'Radio'
|
312
|
+
ttype = 'RadioButtonFormFieldSignature'
|
313
|
+
end
|
314
|
+
end
|
297
315
|
end
|
298
316
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
299
317
|
temp_model.build_from_hash(value)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="search_result.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -193,6 +193,24 @@ module GroupDocsSignatureCloud
|
|
193
193
|
ttype = type
|
194
194
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
195
195
|
ttype = value[:signatureType] + 'Signature'
|
196
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
197
|
+
type = value[:type]
|
198
|
+
if type == 'Checkbox'
|
199
|
+
ttype = 'CheckboxFormFieldSignature'
|
200
|
+
end
|
201
|
+
if type == 'Text'
|
202
|
+
ttype = 'TextFormFieldSignature'
|
203
|
+
end
|
204
|
+
if type == 'Combobox'
|
205
|
+
ttype = 'ComboboxFormFieldSignature'
|
206
|
+
end
|
207
|
+
if type == 'DigitalSignature'
|
208
|
+
ttype = 'DigitalFormFieldSignature'
|
209
|
+
end
|
210
|
+
if type == 'Radio'
|
211
|
+
ttype = 'RadioButtonFormFieldSignature'
|
212
|
+
end
|
213
|
+
end
|
196
214
|
end
|
197
215
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
198
216
|
temp_model.build_from_hash(value)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="search_settings.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -178,6 +178,24 @@ module GroupDocsSignatureCloud
|
|
178
178
|
ttype = type
|
179
179
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
180
180
|
ttype = value[:signatureType] + 'Signature'
|
181
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
182
|
+
type = value[:type]
|
183
|
+
if type == 'Checkbox'
|
184
|
+
ttype = 'CheckboxFormFieldSignature'
|
185
|
+
end
|
186
|
+
if type == 'Text'
|
187
|
+
ttype = 'TextFormFieldSignature'
|
188
|
+
end
|
189
|
+
if type == 'Combobox'
|
190
|
+
ttype = 'ComboboxFormFieldSignature'
|
191
|
+
end
|
192
|
+
if type == 'DigitalSignature'
|
193
|
+
ttype = 'DigitalFormFieldSignature'
|
194
|
+
end
|
195
|
+
if type == 'Radio'
|
196
|
+
ttype = 'RadioButtonFormFieldSignature'
|
197
|
+
end
|
198
|
+
end
|
181
199
|
end
|
182
200
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
183
201
|
temp_model.build_from_hash(value)
|
@@ -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-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -43,6 +43,9 @@ module GroupDocsSignatureCloud
|
|
43
43
|
# Options to specify pages for processing
|
44
44
|
attr_accessor :pages_setup
|
45
45
|
|
46
|
+
# Specifies Appearance with additional properties for this options instance
|
47
|
+
attr_accessor :appearance
|
48
|
+
|
46
49
|
# Left X position of Signature on Document Page in Measure values (pixels or percent see MeasureType LocationMeasureType property)
|
47
50
|
attr_accessor :left
|
48
51
|
|
@@ -106,6 +109,9 @@ module GroupDocsSignatureCloud
|
|
106
109
|
# Gets or sets the Z-order position of text signature. Determines the display order of overlapping signatures.
|
107
110
|
attr_accessor :z_order
|
108
111
|
|
112
|
+
# 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.
|
113
|
+
attr_accessor :native
|
114
|
+
|
109
115
|
# Get or set Barcode type. Pick one from supported barcode types list
|
110
116
|
attr_accessor :barcode_type
|
111
117
|
|
@@ -146,6 +152,7 @@ module GroupDocsSignatureCloud
|
|
146
152
|
:'page' => :'Page',
|
147
153
|
:'all_pages' => :'AllPages',
|
148
154
|
:'pages_setup' => :'PagesSetup',
|
155
|
+
:'appearance' => :'Appearance',
|
149
156
|
:'left' => :'Left',
|
150
157
|
:'top' => :'Top',
|
151
158
|
:'width' => :'Width',
|
@@ -167,6 +174,7 @@ module GroupDocsSignatureCloud
|
|
167
174
|
:'text_horizontal_alignment' => :'TextHorizontalAlignment',
|
168
175
|
:'text_vertical_alignment' => :'TextVerticalAlignment',
|
169
176
|
:'z_order' => :'ZOrder',
|
177
|
+
:'native' => :'Native',
|
170
178
|
:'barcode_type' => :'BarcodeType',
|
171
179
|
:'transparency' => :'Transparency',
|
172
180
|
:'code_text_alignment' => :'CodeTextAlignment',
|
@@ -181,6 +189,7 @@ module GroupDocsSignatureCloud
|
|
181
189
|
:'page' => :'Integer',
|
182
190
|
:'all_pages' => :'BOOLEAN',
|
183
191
|
:'pages_setup' => :'PagesSetup',
|
192
|
+
:'appearance' => :'SignatureAppearance',
|
184
193
|
:'left' => :'Integer',
|
185
194
|
:'top' => :'Integer',
|
186
195
|
:'width' => :'Integer',
|
@@ -202,6 +211,7 @@ module GroupDocsSignatureCloud
|
|
202
211
|
:'text_horizontal_alignment' => :'String',
|
203
212
|
:'text_vertical_alignment' => :'String',
|
204
213
|
:'z_order' => :'Integer',
|
214
|
+
:'native' => :'BOOLEAN',
|
205
215
|
:'barcode_type' => :'String',
|
206
216
|
:'transparency' => :'Float',
|
207
217
|
:'code_text_alignment' => :'String',
|
@@ -233,6 +243,10 @@ module GroupDocsSignatureCloud
|
|
233
243
|
self.pages_setup = attributes[:'PagesSetup']
|
234
244
|
end
|
235
245
|
|
246
|
+
if attributes.key?(:'Appearance')
|
247
|
+
self.appearance = attributes[:'Appearance']
|
248
|
+
end
|
249
|
+
|
236
250
|
if attributes.key?(:'Left')
|
237
251
|
self.left = attributes[:'Left']
|
238
252
|
end
|
@@ -317,6 +331,10 @@ module GroupDocsSignatureCloud
|
|
317
331
|
self.z_order = attributes[:'ZOrder']
|
318
332
|
end
|
319
333
|
|
334
|
+
if attributes.key?(:'Native')
|
335
|
+
self.native = attributes[:'Native']
|
336
|
+
end
|
337
|
+
|
320
338
|
if attributes.key?(:'BarcodeType')
|
321
339
|
self.barcode_type = attributes[:'BarcodeType']
|
322
340
|
end
|
@@ -403,6 +421,10 @@ module GroupDocsSignatureCloud
|
|
403
421
|
invalid_properties.push("invalid value for 'z_order', z_order cannot be nil.")
|
404
422
|
end
|
405
423
|
|
424
|
+
if @native.nil?
|
425
|
+
invalid_properties.push("invalid value for 'native', native cannot be nil.")
|
426
|
+
end
|
427
|
+
|
406
428
|
if @code_text_alignment.nil?
|
407
429
|
invalid_properties.push("invalid value for 'code_text_alignment', code_text_alignment cannot be nil.")
|
408
430
|
end
|
@@ -414,7 +436,7 @@ module GroupDocsSignatureCloud
|
|
414
436
|
# @return true if the model is valid
|
415
437
|
def valid?
|
416
438
|
return false if @signature_type.nil?
|
417
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
439
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
418
440
|
return false unless signature_type_validator.valid?(@signature_type)
|
419
441
|
return false if @all_pages.nil?
|
420
442
|
return false if @left.nil?
|
@@ -447,6 +469,7 @@ module GroupDocsSignatureCloud
|
|
447
469
|
text_vertical_alignment_validator = EnumAttributeValidator.new('String', ["Top", "Center", "Bottom"])
|
448
470
|
return false unless text_vertical_alignment_validator.valid?(@text_vertical_alignment)
|
449
471
|
return false if @z_order.nil?
|
472
|
+
return false if @native.nil?
|
450
473
|
return false if @code_text_alignment.nil?
|
451
474
|
code_text_alignment_validator = EnumAttributeValidator.new('String', ["None", "Above", "Below", "Right"])
|
452
475
|
return false unless code_text_alignment_validator.valid?(@code_text_alignment)
|
@@ -456,7 +479,7 @@ module GroupDocsSignatureCloud
|
|
456
479
|
# Custom attribute writer method checking allowed values (enum).
|
457
480
|
# @param [Object] signature_type Object to be assigned
|
458
481
|
def signature_type=(signature_type)
|
459
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
482
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
460
483
|
if signature_type.to_i == 0
|
461
484
|
unless validator.valid?(signature_type)
|
462
485
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
@@ -602,6 +625,7 @@ module GroupDocsSignatureCloud
|
|
602
625
|
page == other.page &&
|
603
626
|
all_pages == other.all_pages &&
|
604
627
|
pages_setup == other.pages_setup &&
|
628
|
+
appearance == other.appearance &&
|
605
629
|
left == other.left &&
|
606
630
|
top == other.top &&
|
607
631
|
width == other.width &&
|
@@ -623,6 +647,7 @@ module GroupDocsSignatureCloud
|
|
623
647
|
text_horizontal_alignment == other.text_horizontal_alignment &&
|
624
648
|
text_vertical_alignment == other.text_vertical_alignment &&
|
625
649
|
z_order == other.z_order &&
|
650
|
+
native == other.native &&
|
626
651
|
barcode_type == other.barcode_type &&
|
627
652
|
transparency == other.transparency &&
|
628
653
|
code_text_alignment == other.code_text_alignment &&
|
@@ -638,7 +663,7 @@ module GroupDocsSignatureCloud
|
|
638
663
|
# Calculates hash code according to all attributes.
|
639
664
|
# @return [Fixnum] Hash code
|
640
665
|
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
|
666
|
+
[signature_type, page, all_pages, pages_setup, appearance, 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
667
|
end
|
643
668
|
|
644
669
|
# Downcases first letter.
|
@@ -712,6 +737,24 @@ module GroupDocsSignatureCloud
|
|
712
737
|
ttype = type
|
713
738
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
714
739
|
ttype = value[:signatureType] + 'Signature'
|
740
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
741
|
+
type = value[:type]
|
742
|
+
if type == 'Checkbox'
|
743
|
+
ttype = 'CheckboxFormFieldSignature'
|
744
|
+
end
|
745
|
+
if type == 'Text'
|
746
|
+
ttype = 'TextFormFieldSignature'
|
747
|
+
end
|
748
|
+
if type == 'Combobox'
|
749
|
+
ttype = 'ComboboxFormFieldSignature'
|
750
|
+
end
|
751
|
+
if type == 'DigitalSignature'
|
752
|
+
ttype = 'DigitalFormFieldSignature'
|
753
|
+
end
|
754
|
+
if type == 'Radio'
|
755
|
+
ttype = 'RadioButtonFormFieldSignature'
|
756
|
+
end
|
757
|
+
end
|
715
758
|
end
|
716
759
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
717
760
|
temp_model.build_from_hash(value)
|
@@ -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-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -43,6 +43,9 @@ module GroupDocsSignatureCloud
|
|
43
43
|
# Options to specify pages for processing
|
44
44
|
attr_accessor :pages_setup
|
45
45
|
|
46
|
+
# Specifies Appearance with additional properties for this options instance
|
47
|
+
attr_accessor :appearance
|
48
|
+
|
46
49
|
# Gets or sets the signature image file name. This property is used only if ImageStream is not specified
|
47
50
|
attr_accessor :image_file_path
|
48
51
|
|
@@ -134,6 +137,7 @@ module GroupDocsSignatureCloud
|
|
134
137
|
:'page' => :'Page',
|
135
138
|
:'all_pages' => :'AllPages',
|
136
139
|
:'pages_setup' => :'PagesSetup',
|
140
|
+
:'appearance' => :'Appearance',
|
137
141
|
:'image_file_path' => :'ImageFilePath',
|
138
142
|
:'left' => :'Left',
|
139
143
|
:'top' => :'Top',
|
@@ -165,6 +169,7 @@ module GroupDocsSignatureCloud
|
|
165
169
|
:'page' => :'Integer',
|
166
170
|
:'all_pages' => :'BOOLEAN',
|
167
171
|
:'pages_setup' => :'PagesSetup',
|
172
|
+
:'appearance' => :'SignatureAppearance',
|
168
173
|
:'image_file_path' => :'String',
|
169
174
|
:'left' => :'Integer',
|
170
175
|
:'top' => :'Integer',
|
@@ -213,6 +218,10 @@ module GroupDocsSignatureCloud
|
|
213
218
|
self.pages_setup = attributes[:'PagesSetup']
|
214
219
|
end
|
215
220
|
|
221
|
+
if attributes.key?(:'Appearance')
|
222
|
+
self.appearance = attributes[:'Appearance']
|
223
|
+
end
|
224
|
+
|
216
225
|
if attributes.key?(:'ImageFilePath')
|
217
226
|
self.image_file_path = attributes[:'ImageFilePath']
|
218
227
|
end
|
@@ -370,7 +379,7 @@ module GroupDocsSignatureCloud
|
|
370
379
|
# @return true if the model is valid
|
371
380
|
def valid?
|
372
381
|
return false if @signature_type.nil?
|
373
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
382
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
374
383
|
return false unless signature_type_validator.valid?(@signature_type)
|
375
384
|
return false if @all_pages.nil?
|
376
385
|
return false if @left.nil?
|
@@ -404,7 +413,7 @@ module GroupDocsSignatureCloud
|
|
404
413
|
# Custom attribute writer method checking allowed values (enum).
|
405
414
|
# @param [Object] signature_type Object to be assigned
|
406
415
|
def signature_type=(signature_type)
|
407
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
416
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
408
417
|
if signature_type.to_i == 0
|
409
418
|
unless validator.valid?(signature_type)
|
410
419
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
@@ -508,6 +517,7 @@ module GroupDocsSignatureCloud
|
|
508
517
|
page == other.page &&
|
509
518
|
all_pages == other.all_pages &&
|
510
519
|
pages_setup == other.pages_setup &&
|
520
|
+
appearance == other.appearance &&
|
511
521
|
image_file_path == other.image_file_path &&
|
512
522
|
left == other.left &&
|
513
523
|
top == other.top &&
|
@@ -540,7 +550,7 @@ module GroupDocsSignatureCloud
|
|
540
550
|
# Calculates hash code according to all attributes.
|
541
551
|
# @return [Fixnum] Hash code
|
542
552
|
def hash
|
543
|
-
[signature_type, page, all_pages, pages_setup, image_file_path, left, top, width, height, location_measure_type, size_measure_type, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, transparency, border, reason, contact, location, visible, password, certificate_file_path, x_ad_es_type].hash
|
553
|
+
[signature_type, page, all_pages, pages_setup, appearance, image_file_path, left, top, width, height, location_measure_type, size_measure_type, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, transparency, border, reason, contact, location, visible, password, certificate_file_path, x_ad_es_type].hash
|
544
554
|
end
|
545
555
|
|
546
556
|
# Downcases first letter.
|
@@ -614,6 +624,24 @@ module GroupDocsSignatureCloud
|
|
614
624
|
ttype = type
|
615
625
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
616
626
|
ttype = value[:signatureType] + 'Signature'
|
627
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
628
|
+
type = value[:type]
|
629
|
+
if type == 'Checkbox'
|
630
|
+
ttype = 'CheckboxFormFieldSignature'
|
631
|
+
end
|
632
|
+
if type == 'Text'
|
633
|
+
ttype = 'TextFormFieldSignature'
|
634
|
+
end
|
635
|
+
if type == 'Combobox'
|
636
|
+
ttype = 'ComboboxFormFieldSignature'
|
637
|
+
end
|
638
|
+
if type == 'DigitalSignature'
|
639
|
+
ttype = 'DigitalFormFieldSignature'
|
640
|
+
end
|
641
|
+
if type == 'Radio'
|
642
|
+
ttype = 'RadioButtonFormFieldSignature'
|
643
|
+
end
|
644
|
+
end
|
617
645
|
end
|
618
646
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
619
647
|
temp_model.build_from_hash(value)
|
@@ -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-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -43,6 +43,9 @@ module GroupDocsSignatureCloud
|
|
43
43
|
# Options to specify pages for processing
|
44
44
|
attr_accessor :pages_setup
|
45
45
|
|
46
|
+
# Specifies Appearance with additional properties for this options instance
|
47
|
+
attr_accessor :appearance
|
48
|
+
|
46
49
|
# Gets or sets the signature image file name. This property is used only if ImageStream is not specified
|
47
50
|
attr_accessor :image_file_path
|
48
51
|
|
@@ -113,6 +116,7 @@ module GroupDocsSignatureCloud
|
|
113
116
|
:'page' => :'Page',
|
114
117
|
:'all_pages' => :'AllPages',
|
115
118
|
:'pages_setup' => :'PagesSetup',
|
119
|
+
:'appearance' => :'Appearance',
|
116
120
|
:'image_file_path' => :'ImageFilePath',
|
117
121
|
:'left' => :'Left',
|
118
122
|
:'top' => :'Top',
|
@@ -137,6 +141,7 @@ module GroupDocsSignatureCloud
|
|
137
141
|
:'page' => :'Integer',
|
138
142
|
:'all_pages' => :'BOOLEAN',
|
139
143
|
:'pages_setup' => :'PagesSetup',
|
144
|
+
:'appearance' => :'SignatureAppearance',
|
140
145
|
:'image_file_path' => :'String',
|
141
146
|
:'left' => :'Integer',
|
142
147
|
:'top' => :'Integer',
|
@@ -178,6 +183,10 @@ module GroupDocsSignatureCloud
|
|
178
183
|
self.pages_setup = attributes[:'PagesSetup']
|
179
184
|
end
|
180
185
|
|
186
|
+
if attributes.key?(:'Appearance')
|
187
|
+
self.appearance = attributes[:'Appearance']
|
188
|
+
end
|
189
|
+
|
181
190
|
if attributes.key?(:'ImageFilePath')
|
182
191
|
self.image_file_path = attributes[:'ImageFilePath']
|
183
192
|
end
|
@@ -299,7 +308,7 @@ module GroupDocsSignatureCloud
|
|
299
308
|
# @return true if the model is valid
|
300
309
|
def valid?
|
301
310
|
return false if @signature_type.nil?
|
302
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
311
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
303
312
|
return false unless signature_type_validator.valid?(@signature_type)
|
304
313
|
return false if @all_pages.nil?
|
305
314
|
return false if @left.nil?
|
@@ -329,7 +338,7 @@ module GroupDocsSignatureCloud
|
|
329
338
|
# Custom attribute writer method checking allowed values (enum).
|
330
339
|
# @param [Object] signature_type Object to be assigned
|
331
340
|
def signature_type=(signature_type)
|
332
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
341
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
333
342
|
if signature_type.to_i == 0
|
334
343
|
unless validator.valid?(signature_type)
|
335
344
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
@@ -419,6 +428,7 @@ module GroupDocsSignatureCloud
|
|
419
428
|
page == other.page &&
|
420
429
|
all_pages == other.all_pages &&
|
421
430
|
pages_setup == other.pages_setup &&
|
431
|
+
appearance == other.appearance &&
|
422
432
|
image_file_path == other.image_file_path &&
|
423
433
|
left == other.left &&
|
424
434
|
top == other.top &&
|
@@ -444,7 +454,7 @@ module GroupDocsSignatureCloud
|
|
444
454
|
# Calculates hash code according to all attributes.
|
445
455
|
# @return [Fixnum] Hash code
|
446
456
|
def hash
|
447
|
-
[signature_type, page, all_pages, pages_setup, image_file_path, left, top, width, height, location_measure_type, size_measure_type, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, transparency, border].hash
|
457
|
+
[signature_type, page, all_pages, pages_setup, appearance, image_file_path, left, top, width, height, location_measure_type, size_measure_type, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, transparency, border].hash
|
448
458
|
end
|
449
459
|
|
450
460
|
# Downcases first letter.
|
@@ -518,6 +528,24 @@ module GroupDocsSignatureCloud
|
|
518
528
|
ttype = type
|
519
529
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
520
530
|
ttype = value[:signatureType] + 'Signature'
|
531
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
532
|
+
type = value[:type]
|
533
|
+
if type == 'Checkbox'
|
534
|
+
ttype = 'CheckboxFormFieldSignature'
|
535
|
+
end
|
536
|
+
if type == 'Text'
|
537
|
+
ttype = 'TextFormFieldSignature'
|
538
|
+
end
|
539
|
+
if type == 'Combobox'
|
540
|
+
ttype = 'ComboboxFormFieldSignature'
|
541
|
+
end
|
542
|
+
if type == 'DigitalSignature'
|
543
|
+
ttype = 'DigitalFormFieldSignature'
|
544
|
+
end
|
545
|
+
if type == 'Radio'
|
546
|
+
ttype = 'RadioButtonFormFieldSignature'
|
547
|
+
end
|
548
|
+
end
|
521
549
|
end
|
522
550
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
523
551
|
temp_model.build_from_hash(value)
|