aspose_pdf_cloud 25.6.0 → 25.7.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 543789aec6e50dc17f7a41dd3e52c898c3a5cb16f9796758e071a118d484d3d6
4
- data.tar.gz: 56ac2776e15768eb6646dd67d5324cb4f3464ae6839697efe5372b0cce6c45f1
3
+ metadata.gz: 3e0ef4ade1f8dea3694ac7a6765c8df53dd2ac7c5653a19836c25362a5c376f5
4
+ data.tar.gz: c61386d7257f60efcb589b1d775ae9032a30b6cccc771eb7ce4c470bed816ad6
5
5
  SHA512:
6
- metadata.gz: 5898c3546f3edc9e860da6c6a1c3ac60a501d65f26fd77634d43f01486f34875ccd3d30e7cfe510d376874cc1fd57a98c2e4698e01336e8cb0c0daf3b0d8d93d
7
- data.tar.gz: 216e2be314ba11c3c0f6314c986eb779bb7b472aac6c3af25428ca38f3df20e6a4292ea8885027655b61b28fa95e636b67eecce139827edd456f44212040cadc
6
+ metadata.gz: 0abe7ce9e7d910f1e9cf97f9f0da60795d4ac4aaec4138d13721c2ef6985c66ea6e096d3aed4d9ffd353ae488fb694c6f3b2cf85db5baed32941c700323bc44a
7
+ data.tar.gz: 1aae1871946a08c8826e1fc30ae3159e0e42efff0b331cc07faefd3e9ef96edd3d48a289347d6164c33153c5731eb41856d3f8b8466ec3151aa635259662b8d8
@@ -31,6 +31,9 @@ module AsposePdfCloud
31
31
  # Gets/sets font size. Default value: 10.
32
32
  attr_accessor :font_size
33
33
 
34
+ # Gets or sets signature rotation.
35
+ attr_accessor :rotation
36
+
34
37
  # Gets/sets contact info visibility. Default value: true.
35
38
  attr_accessor :show_contact_info
36
39
 
@@ -61,12 +64,25 @@ module AsposePdfCloud
61
64
  # Gets/sets datetime format. Default value: \"yyyy.MM.dd HH:mm:ss\".
62
65
  attr_accessor :date_time_format
63
66
 
67
+ # Gets/sets background color.
68
+ attr_accessor :background_color
69
+
70
+ # Gets/sets foreground color.
71
+ attr_accessor :foreground_color
72
+
73
+ # Gets/sets subject format usage.
74
+ attr_accessor :use_digital_subject_format
75
+
76
+ # Gets/sets subject format.
77
+ attr_accessor :digital_subject_format
78
+
64
79
 
65
80
  # Attribute mapping from ruby-style variable name to JSON key.
66
81
  def self.attribute_map
67
82
  {
68
83
  :'font_family_name' => :'FontFamilyName',
69
84
  :'font_size' => :'FontSize',
85
+ :'rotation' => :'Rotation',
70
86
  :'show_contact_info' => :'ShowContactInfo',
71
87
  :'show_reason' => :'ShowReason',
72
88
  :'show_location' => :'ShowLocation',
@@ -76,7 +92,11 @@ module AsposePdfCloud
76
92
  :'digital_signed_label' => :'DigitalSignedLabel',
77
93
  :'date_signed_at_label' => :'DateSignedAtLabel',
78
94
  :'date_time_local_format' => :'DateTimeLocalFormat',
79
- :'date_time_format' => :'DateTimeFormat'
95
+ :'date_time_format' => :'DateTimeFormat',
96
+ :'background_color' => :'BackgroundColor',
97
+ :'foreground_color' => :'ForegroundColor',
98
+ :'use_digital_subject_format' => :'UseDigitalSubjectFormat',
99
+ :'digital_subject_format' => :'DigitalSubjectFormat'
80
100
  }
81
101
  end
82
102
 
@@ -85,6 +105,7 @@ module AsposePdfCloud
85
105
  {
86
106
  :'font_family_name' => :'String',
87
107
  :'font_size' => :'Float',
108
+ :'rotation' => :'Rotation',
88
109
  :'show_contact_info' => :'BOOLEAN',
89
110
  :'show_reason' => :'BOOLEAN',
90
111
  :'show_location' => :'BOOLEAN',
@@ -94,7 +115,11 @@ module AsposePdfCloud
94
115
  :'digital_signed_label' => :'String',
95
116
  :'date_signed_at_label' => :'String',
96
117
  :'date_time_local_format' => :'String',
97
- :'date_time_format' => :'String'
118
+ :'date_time_format' => :'String',
119
+ :'background_color' => :'Color',
120
+ :'foreground_color' => :'Color',
121
+ :'use_digital_subject_format' => :'BOOLEAN',
122
+ :'digital_subject_format' => :'Array<SignatureSubjectNameElements>'
98
123
  }
99
124
  end
100
125
 
@@ -114,6 +139,10 @@ module AsposePdfCloud
114
139
  self.font_size = attributes[:'FontSize']
115
140
  end
116
141
 
142
+ if attributes.has_key?(:'Rotation')
143
+ self.rotation = attributes[:'Rotation']
144
+ end
145
+
117
146
  if attributes.has_key?(:'ShowContactInfo')
118
147
  self.show_contact_info = attributes[:'ShowContactInfo']
119
148
  end
@@ -154,14 +183,32 @@ module AsposePdfCloud
154
183
  self.date_time_format = attributes[:'DateTimeFormat']
155
184
  end
156
185
 
186
+ if attributes.has_key?(:'BackgroundColor')
187
+ self.background_color = attributes[:'BackgroundColor']
188
+ end
189
+
190
+ if attributes.has_key?(:'ForegroundColor')
191
+ self.foreground_color = attributes[:'ForegroundColor']
192
+ end
193
+
194
+ if attributes.has_key?(:'UseDigitalSubjectFormat')
195
+ self.use_digital_subject_format = attributes[:'UseDigitalSubjectFormat']
196
+ end
197
+
198
+ if attributes.has_key?(:'DigitalSubjectFormat')
199
+ if (value = attributes[:'DigitalSubjectFormat']).is_a?(Array)
200
+ self.digital_subject_format = value
201
+ end
202
+ end
203
+
157
204
  end
158
205
 
159
206
  # Show invalid properties with the reasons. Usually used together with valid?
160
207
  # @return Array for valid properies with the reasons
161
208
  def list_invalid_properties
162
209
  invalid_properties = Array.new
163
- if @font_size.nil?
164
- invalid_properties.push("invalid value for 'font_size', font_size cannot be nil.")
210
+ if @rotation.nil?
211
+ invalid_properties.push("invalid value for 'rotation', rotation cannot be nil.")
165
212
  end
166
213
 
167
214
  if @show_contact_info.nil?
@@ -176,16 +223,21 @@ module AsposePdfCloud
176
223
  invalid_properties.push("invalid value for 'show_location', show_location cannot be nil.")
177
224
  end
178
225
 
226
+ if @use_digital_subject_format.nil?
227
+ invalid_properties.push("invalid value for 'use_digital_subject_format', use_digital_subject_format cannot be nil.")
228
+ end
229
+
179
230
  return invalid_properties
180
231
  end
181
232
 
182
233
  # Check to see if the all the properties in the model are valid
183
234
  # @return true if the model is valid
184
235
  def valid?
185
- return false if @font_size.nil?
236
+ return false if @rotation.nil?
186
237
  return false if @show_contact_info.nil?
187
238
  return false if @show_reason.nil?
188
239
  return false if @show_location.nil?
240
+ return false if @use_digital_subject_format.nil?
189
241
  return true
190
242
  end
191
243
 
@@ -196,6 +248,7 @@ module AsposePdfCloud
196
248
  self.class == o.class &&
197
249
  font_family_name == o.font_family_name &&
198
250
  font_size == o.font_size &&
251
+ rotation == o.rotation &&
199
252
  show_contact_info == o.show_contact_info &&
200
253
  show_reason == o.show_reason &&
201
254
  show_location == o.show_location &&
@@ -205,7 +258,11 @@ module AsposePdfCloud
205
258
  digital_signed_label == o.digital_signed_label &&
206
259
  date_signed_at_label == o.date_signed_at_label &&
207
260
  date_time_local_format == o.date_time_local_format &&
208
- date_time_format == o.date_time_format
261
+ date_time_format == o.date_time_format &&
262
+ background_color == o.background_color &&
263
+ foreground_color == o.foreground_color &&
264
+ use_digital_subject_format == o.use_digital_subject_format &&
265
+ digital_subject_format == o.digital_subject_format
209
266
  end
210
267
 
211
268
  # @see the `==` method
@@ -217,7 +274,7 @@ module AsposePdfCloud
217
274
  # Calculates hash code according to all attributes.
218
275
  # @return [Fixnum] Hash code
219
276
  def hash
220
- [font_family_name, font_size, show_contact_info, show_reason, show_location, contact_info_label, reason_label, location_label, digital_signed_label, date_signed_at_label, date_time_local_format, date_time_format].hash
277
+ [font_family_name, font_size, rotation, show_contact_info, show_reason, show_location, contact_info_label, reason_label, location_label, digital_signed_label, date_signed_at_label, date_time_local_format, date_time_format, background_color, foreground_color, use_digital_subject_format, digital_subject_format].hash
221
278
  end
222
279
 
223
280
  # Builds the object from hash
@@ -0,0 +1,49 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ Copyright (c) 2025 Aspose.PDF Cloud
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ SOFTWARE.
19
+ --------------------------------------------------------------------------------------------------------------------
20
+ =end
21
+
22
+ require 'date'
23
+ require 'time'
24
+
25
+ module AsposePdfCloud
26
+ class SignatureSubjectNameElements
27
+
28
+ CN = "CN".freeze
29
+ O = "O".freeze
30
+ L = "L".freeze
31
+ OU = "OU".freeze
32
+ S = "S".freeze
33
+ C = "C".freeze
34
+ E = "E".freeze
35
+
36
+ # Builds the enum from string
37
+ # @param [String] The enum value in the form of the string
38
+ # @return [String] The enum value
39
+ def build_from_hash(value)
40
+ # resolve issue with Concstant Name modification (ex: "FooName" to :FOO_NAME)
41
+ # consantValues = SignatureSubjectNameElements.constants.select{|c| c.to_s == value}
42
+ constantValues = SignatureSubjectNameElements.constants.select{ |const_name| SignatureSubjectNameElements.const_get(const_name) == value}
43
+
44
+ raise "Invalid ENUM value #{value} for class #SignatureSubjectNameElements" if constantValues.empty?
45
+ value
46
+ end
47
+ end
48
+
49
+ end
@@ -20,5 +20,5 @@ SOFTWARE.
20
20
  =end
21
21
 
22
22
  module AsposePdfCloud
23
- VERSION = "25.6.0"
23
+ VERSION = "25.7.0"
24
24
  end
@@ -118,6 +118,7 @@ require_relative 'aspose_pdf_cloud/models/segment'
118
118
  require_relative 'aspose_pdf_cloud/models/shape_type'
119
119
  require_relative 'aspose_pdf_cloud/models/signature'
120
120
  require_relative 'aspose_pdf_cloud/models/signature_custom_appearance'
121
+ require_relative 'aspose_pdf_cloud/models/signature_subject_name_elements'
121
122
  require_relative 'aspose_pdf_cloud/models/signature_type'
122
123
  require_relative 'aspose_pdf_cloud/models/sound_encoding'
123
124
  require_relative 'aspose_pdf_cloud/models/sound_icon'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_pdf_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 25.6.0
4
+ version: 25.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aspose PDF Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-24 00:00:00.000000000 Z
11
+ date: 2025-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -273,6 +273,7 @@ files:
273
273
  - lib/aspose_pdf_cloud/models/signature_field_response.rb
274
274
  - lib/aspose_pdf_cloud/models/signature_fields.rb
275
275
  - lib/aspose_pdf_cloud/models/signature_fields_response.rb
276
+ - lib/aspose_pdf_cloud/models/signature_subject_name_elements.rb
276
277
  - lib/aspose_pdf_cloud/models/signature_type.rb
277
278
  - lib/aspose_pdf_cloud/models/signature_verify_response.rb
278
279
  - lib/aspose_pdf_cloud/models/sound_annotation.rb