aspose_pdf_cloud 20.2.0 → 20.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -13
  3. data/docs/ApiInfo.md +10 -0
  4. data/docs/Cell.md +3 -0
  5. data/docs/CheckBoxField.md +1 -0
  6. data/docs/ChoiceField.md +1 -0
  7. data/docs/ComboBoxField.md +1 -0
  8. data/docs/FormField.md +1 -0
  9. data/docs/ImageCompressionVersion.md +12 -0
  10. data/docs/ImageEncoding.md +13 -0
  11. data/docs/ImageFragment.md +15 -0
  12. data/docs/ListBoxField.md +1 -0
  13. data/docs/OptimizeOptions.md +13 -7
  14. data/docs/OutputFormat.md +11 -0
  15. data/docs/Paragraph.md +2 -2
  16. data/docs/PdfAType.md +3 -2
  17. data/docs/PdfApi.md +170 -25
  18. data/docs/RadioButtonField.md +1 -0
  19. data/docs/RadioButtonOptionField.md +1 -0
  20. data/docs/SignatureField.md +1 -0
  21. data/docs/TextBoxField.md +1 -0
  22. data/docs/TextState.md +2 -1
  23. data/lib/aspose_pdf_cloud.rb +5 -0
  24. data/lib/aspose_pdf_cloud/api/pdf_api.rb +478 -41
  25. data/lib/aspose_pdf_cloud/api_client.rb +1 -1
  26. data/lib/aspose_pdf_cloud/models/api_info.rb +209 -0
  27. data/lib/aspose_pdf_cloud/models/cell.rb +36 -4
  28. data/lib/aspose_pdf_cloud/models/check_box_field.rb +11 -1
  29. data/lib/aspose_pdf_cloud/models/choice_field.rb +11 -1
  30. data/lib/aspose_pdf_cloud/models/combo_box_field.rb +11 -1
  31. data/lib/aspose_pdf_cloud/models/form_field.rb +11 -1
  32. data/lib/aspose_pdf_cloud/models/image_compression_version.rb +45 -0
  33. data/lib/aspose_pdf_cloud/models/image_encoding.rb +46 -0
  34. data/lib/aspose_pdf_cloud/models/image_fragment.rb +283 -0
  35. data/lib/aspose_pdf_cloud/models/list_box_field.rb +11 -1
  36. data/lib/aspose_pdf_cloud/models/optimize_options.rb +60 -35
  37. data/lib/aspose_pdf_cloud/models/output_format.rb +44 -0
  38. data/lib/aspose_pdf_cloud/models/paragraph.rb +2 -2
  39. data/lib/aspose_pdf_cloud/models/pdf_a_type.rb +1 -0
  40. data/lib/aspose_pdf_cloud/models/radio_button_field.rb +11 -1
  41. data/lib/aspose_pdf_cloud/models/radio_button_option_field.rb +11 -1
  42. data/lib/aspose_pdf_cloud/models/signature_field.rb +11 -1
  43. data/lib/aspose_pdf_cloud/models/text_box_field.rb +11 -1
  44. data/lib/aspose_pdf_cloud/models/text_state.rb +15 -5
  45. data/lib/aspose_pdf_cloud/version.rb +1 -1
  46. data/test/pdf_tests.rb +140 -98
  47. data/test_data/Righteous-Regular.ttf +0 -0
  48. metadata +13 -2
@@ -28,13 +28,13 @@ module AsposePdfCloud
28
28
  # If true page contents will be reused when document is optimized for equal pages.
29
29
  attr_accessor :allow_reuse_page_content
30
30
 
31
- # If this flag is set to true images will be compressed in the document. compression level is specfied with ImageQuality property.
31
+ # If this flag is set to true images will be compressed in the document. Compression level is specified with ImageQuality property.
32
32
  attr_accessor :compress_images
33
33
 
34
- # Specifie slevel of image compression when CompressIamges flag is used.
34
+ # Specifies level of image compression when CompressImages flag is used.
35
35
  attr_accessor :image_quality
36
36
 
37
- # If this flag is set to true, Resource streams will be analyzed. If duplicate streams are found (i.e. if stream contents is equal), then thes streams will be stored as one object. This allows to decrease document size in some cases (for example, when same document was concatenedted multiple times).
37
+ # If this flag is set to true, Resource streams will be analyzed. If duplicate streams are found (i.e. if stream contents is equal), then thees streams will be stored as one object. This allows to decrease document size in some cases (for example, when same document was concatenated multiple times).
38
38
  attr_accessor :link_duplcate_streams
39
39
 
40
40
  # If this flag is set to true, all document objects will be checked and unused objects (i.e. objects which does not have any reference) are removed from document.
@@ -46,6 +46,24 @@ module AsposePdfCloud
46
46
  # Make fonts not embedded if set to true.
47
47
  attr_accessor :unembed_fonts
48
48
 
49
+ # If this flag set to true and CompressImages is true images will be resized if image resolution is greater then specified MaxResolution parameter.
50
+ attr_accessor :resize_images
51
+
52
+ # Specifies maximum resolution of images. If image has higher resolution it will be scaled.
53
+ attr_accessor :max_resolution
54
+
55
+ # Fonts will be converted into subsets if set to true.
56
+ attr_accessor :subset_fonts
57
+
58
+ # Remove private information (page piece info).
59
+ attr_accessor :remove_private_info
60
+
61
+ # Image encode which will be used.
62
+ attr_accessor :image_encoding
63
+
64
+ # Version of compression algorithm. Possible values are: \"Standard\" - standard compression, \"Fast\" - fast (improved compression which is faster then standard but may be applicable not for all images), \"Mixed\" - mixed (standard compression is applied to images which can not be compressed by faster algorithm, this may give best compression but more slow then \"Fast\" algorithm. Version \"Fast\" is not applicable for resizing images (standard method will be used). Default is \"Standard\".
65
+ attr_accessor :image_compression_version
66
+
49
67
 
50
68
  # Attribute mapping from ruby-style variable name to JSON key.
51
69
  def self.attribute_map
@@ -56,7 +74,13 @@ module AsposePdfCloud
56
74
  :'link_duplcate_streams' => :'LinkDuplcateStreams',
57
75
  :'remove_unused_objects' => :'RemoveUnusedObjects',
58
76
  :'remove_unused_streams' => :'RemoveUnusedStreams',
59
- :'unembed_fonts' => :'UnembedFonts'
77
+ :'unembed_fonts' => :'UnembedFonts',
78
+ :'resize_images' => :'ResizeImages',
79
+ :'max_resolution' => :'MaxResolution',
80
+ :'subset_fonts' => :'SubsetFonts',
81
+ :'remove_private_info' => :'RemovePrivateInfo',
82
+ :'image_encoding' => :'ImageEncoding',
83
+ :'image_compression_version' => :'ImageCompressionVersion'
60
84
  }
61
85
  end
62
86
 
@@ -69,7 +93,13 @@ module AsposePdfCloud
69
93
  :'link_duplcate_streams' => :'BOOLEAN',
70
94
  :'remove_unused_objects' => :'BOOLEAN',
71
95
  :'remove_unused_streams' => :'BOOLEAN',
72
- :'unembed_fonts' => :'BOOLEAN'
96
+ :'unembed_fonts' => :'BOOLEAN',
97
+ :'resize_images' => :'BOOLEAN',
98
+ :'max_resolution' => :'Integer',
99
+ :'subset_fonts' => :'BOOLEAN',
100
+ :'remove_private_info' => :'BOOLEAN',
101
+ :'image_encoding' => :'ImageEncoding',
102
+ :'image_compression_version' => :'ImageCompressionVersion'
73
103
  }
74
104
  end
75
105
 
@@ -109,53 +139,42 @@ module AsposePdfCloud
109
139
  self.unembed_fonts = attributes[:'UnembedFonts']
110
140
  end
111
141
 
112
- end
113
-
114
- # Show invalid properties with the reasons. Usually used together with valid?
115
- # @return Array for valid properies with the reasons
116
- def list_invalid_properties
117
- invalid_properties = Array.new
118
- if @allow_reuse_page_content.nil?
119
- invalid_properties.push("invalid value for 'allow_reuse_page_content', allow_reuse_page_content cannot be nil.")
142
+ if attributes.has_key?(:'ResizeImages')
143
+ self.resize_images = attributes[:'ResizeImages']
120
144
  end
121
145
 
122
- if @compress_images.nil?
123
- invalid_properties.push("invalid value for 'compress_images', compress_images cannot be nil.")
146
+ if attributes.has_key?(:'MaxResolution')
147
+ self.max_resolution = attributes[:'MaxResolution']
124
148
  end
125
149
 
126
- if @image_quality.nil?
127
- invalid_properties.push("invalid value for 'image_quality', image_quality cannot be nil.")
150
+ if attributes.has_key?(:'SubsetFonts')
151
+ self.subset_fonts = attributes[:'SubsetFonts']
128
152
  end
129
153
 
130
- if @link_duplcate_streams.nil?
131
- invalid_properties.push("invalid value for 'link_duplcate_streams', link_duplcate_streams cannot be nil.")
154
+ if attributes.has_key?(:'RemovePrivateInfo')
155
+ self.remove_private_info = attributes[:'RemovePrivateInfo']
132
156
  end
133
157
 
134
- if @remove_unused_objects.nil?
135
- invalid_properties.push("invalid value for 'remove_unused_objects', remove_unused_objects cannot be nil.")
158
+ if attributes.has_key?(:'ImageEncoding')
159
+ self.image_encoding = attributes[:'ImageEncoding']
136
160
  end
137
161
 
138
- if @remove_unused_streams.nil?
139
- invalid_properties.push("invalid value for 'remove_unused_streams', remove_unused_streams cannot be nil.")
162
+ if attributes.has_key?(:'ImageCompressionVersion')
163
+ self.image_compression_version = attributes[:'ImageCompressionVersion']
140
164
  end
141
165
 
142
- if @unembed_fonts.nil?
143
- invalid_properties.push("invalid value for 'unembed_fonts', unembed_fonts cannot be nil.")
144
- end
166
+ end
145
167
 
168
+ # Show invalid properties with the reasons. Usually used together with valid?
169
+ # @return Array for valid properies with the reasons
170
+ def list_invalid_properties
171
+ invalid_properties = Array.new
146
172
  return invalid_properties
147
173
  end
148
174
 
149
175
  # Check to see if the all the properties in the model are valid
150
176
  # @return true if the model is valid
151
177
  def valid?
152
- return false if @allow_reuse_page_content.nil?
153
- return false if @compress_images.nil?
154
- return false if @image_quality.nil?
155
- return false if @link_duplcate_streams.nil?
156
- return false if @remove_unused_objects.nil?
157
- return false if @remove_unused_streams.nil?
158
- return false if @unembed_fonts.nil?
159
178
  return true
160
179
  end
161
180
 
@@ -170,7 +189,13 @@ module AsposePdfCloud
170
189
  link_duplcate_streams == o.link_duplcate_streams &&
171
190
  remove_unused_objects == o.remove_unused_objects &&
172
191
  remove_unused_streams == o.remove_unused_streams &&
173
- unembed_fonts == o.unembed_fonts
192
+ unembed_fonts == o.unembed_fonts &&
193
+ resize_images == o.resize_images &&
194
+ max_resolution == o.max_resolution &&
195
+ subset_fonts == o.subset_fonts &&
196
+ remove_private_info == o.remove_private_info &&
197
+ image_encoding == o.image_encoding &&
198
+ image_compression_version == o.image_compression_version
174
199
  end
175
200
 
176
201
  # @see the `==` method
@@ -182,7 +207,7 @@ module AsposePdfCloud
182
207
  # Calculates hash code according to all attributes.
183
208
  # @return [Fixnum] Hash code
184
209
  def hash
185
- [allow_reuse_page_content, compress_images, image_quality, link_duplcate_streams, remove_unused_objects, remove_unused_streams, unembed_fonts].hash
210
+ [allow_reuse_page_content, compress_images, image_quality, link_duplcate_streams, remove_unused_objects, remove_unused_streams, unembed_fonts, resize_images, max_resolution, subset_fonts, remove_private_info, image_encoding, image_compression_version].hash
186
211
  end
187
212
 
188
213
  # Builds the object from hash
@@ -0,0 +1,44 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ Copyright (c) 2020 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 OutputFormat
27
+
28
+ ZIP = "Zip".freeze
29
+ FOLDER = "Folder".freeze
30
+
31
+ # Builds the enum from string
32
+ # @param [String] The enum value in the form of the string
33
+ # @return [String] The enum value
34
+ def build_from_hash(value)
35
+ # resolve issue with Concstant Name modification (ex: "FooName" to :FOO_NAME)
36
+ # consantValues = OutputFormat.constants.select{|c| c.to_s == value}
37
+ constantValues = OutputFormat.constants.select{ |const_name| OutputFormat.const_get(const_name) == value}
38
+
39
+ raise "Invalid ENUM value #{value} for class #OutputFormat" if constantValues.empty?
40
+ value
41
+ end
42
+ end
43
+
44
+ end
@@ -31,7 +31,7 @@ module AsposePdfCloud
31
31
  # Word wrap mode.
32
32
  attr_accessor :wrap_mode
33
33
 
34
- # Horizontal alignment for the text inside paragrph's rectangle.
34
+ # Horizontal alignment for the text inside paragraph's rectangle.
35
35
  attr_accessor :horizontal_alignment
36
36
 
37
37
  # Left margin.
@@ -55,7 +55,7 @@ module AsposePdfCloud
55
55
  # Subsequent lines indent value.
56
56
  attr_accessor :subsequent_lines_indent
57
57
 
58
- # Vertical alignment for the text inside paragrph's rectangle
58
+ # Vertical alignment for the text inside paragraph's rectangle
59
59
  attr_accessor :vertical_alignment
60
60
 
61
61
  # An array of text lines.
@@ -27,6 +27,7 @@ module AsposePdfCloud
27
27
 
28
28
  PDFA1_A = "PDFA1A".freeze
29
29
  PDFA1_B = "PDFA1B".freeze
30
+ PDFA3_A = "PDFA3A".freeze
30
31
 
31
32
  # Builds the enum from string
32
33
  # @param [String] The enum value in the form of the string
@@ -31,6 +31,9 @@ module AsposePdfCloud
31
31
  # Field name.
32
32
  attr_accessor :partial_name
33
33
 
34
+ # Full Field name.
35
+ attr_accessor :full_name
36
+
34
37
  # Field rectangle.
35
38
  attr_accessor :rect
36
39
 
@@ -103,6 +106,7 @@ module AsposePdfCloud
103
106
  {
104
107
  :'links' => :'Links',
105
108
  :'partial_name' => :'PartialName',
109
+ :'full_name' => :'FullName',
106
110
  :'rect' => :'Rect',
107
111
  :'value' => :'Value',
108
112
  :'page_index' => :'PageIndex',
@@ -133,6 +137,7 @@ module AsposePdfCloud
133
137
  {
134
138
  :'links' => :'Array<Link>',
135
139
  :'partial_name' => :'String',
140
+ :'full_name' => :'String',
136
141
  :'rect' => :'Rectangle',
137
142
  :'value' => :'String',
138
143
  :'page_index' => :'Integer',
@@ -176,6 +181,10 @@ module AsposePdfCloud
176
181
  self.partial_name = attributes[:'PartialName']
177
182
  end
178
183
 
184
+ if attributes.has_key?(:'FullName')
185
+ self.full_name = attributes[:'FullName']
186
+ end
187
+
179
188
  if attributes.has_key?(:'Rect')
180
189
  self.rect = attributes[:'Rect']
181
190
  end
@@ -297,6 +306,7 @@ module AsposePdfCloud
297
306
  self.class == o.class &&
298
307
  links == o.links &&
299
308
  partial_name == o.partial_name &&
309
+ full_name == o.full_name &&
300
310
  rect == o.rect &&
301
311
  value == o.value &&
302
312
  page_index == o.page_index &&
@@ -330,7 +340,7 @@ module AsposePdfCloud
330
340
  # Calculates hash code according to all attributes.
331
341
  # @return [Fixnum] Hash code
332
342
  def hash
333
- [links, partial_name, rect, value, page_index, height, width, z_index, is_group, parent, is_shared_field, flags, color, contents, margin, highlighting, horizontal_alignment, vertical_alignment, border, multi_select, selected, options, radio_button_options_field, style].hash
343
+ [links, partial_name, full_name, rect, value, page_index, height, width, z_index, is_group, parent, is_shared_field, flags, color, contents, margin, highlighting, horizontal_alignment, vertical_alignment, border, multi_select, selected, options, radio_button_options_field, style].hash
334
344
  end
335
345
 
336
346
  # Builds the object from hash
@@ -31,6 +31,9 @@ module AsposePdfCloud
31
31
  # Field name.
32
32
  attr_accessor :partial_name
33
33
 
34
+ # Full Field name.
35
+ attr_accessor :full_name
36
+
34
37
  # Field rectangle.
35
38
  attr_accessor :rect
36
39
 
@@ -94,6 +97,7 @@ module AsposePdfCloud
94
97
  {
95
98
  :'links' => :'Links',
96
99
  :'partial_name' => :'PartialName',
100
+ :'full_name' => :'FullName',
97
101
  :'rect' => :'Rect',
98
102
  :'value' => :'Value',
99
103
  :'page_index' => :'PageIndex',
@@ -121,6 +125,7 @@ module AsposePdfCloud
121
125
  {
122
126
  :'links' => :'Array<Link>',
123
127
  :'partial_name' => :'String',
128
+ :'full_name' => :'String',
124
129
  :'rect' => :'Rectangle',
125
130
  :'value' => :'String',
126
131
  :'page_index' => :'Integer',
@@ -161,6 +166,10 @@ module AsposePdfCloud
161
166
  self.partial_name = attributes[:'PartialName']
162
167
  end
163
168
 
169
+ if attributes.has_key?(:'FullName')
170
+ self.full_name = attributes[:'FullName']
171
+ end
172
+
164
173
  if attributes.has_key?(:'Rect')
165
174
  self.rect = attributes[:'Rect']
166
175
  end
@@ -266,6 +275,7 @@ module AsposePdfCloud
266
275
  self.class == o.class &&
267
276
  links == o.links &&
268
277
  partial_name == o.partial_name &&
278
+ full_name == o.full_name &&
269
279
  rect == o.rect &&
270
280
  value == o.value &&
271
281
  page_index == o.page_index &&
@@ -296,7 +306,7 @@ module AsposePdfCloud
296
306
  # Calculates hash code according to all attributes.
297
307
  # @return [Fixnum] Hash code
298
308
  def hash
299
- [links, partial_name, rect, value, page_index, height, width, z_index, is_group, parent, is_shared_field, flags, color, contents, margin, highlighting, horizontal_alignment, vertical_alignment, border, option_name, style].hash
309
+ [links, partial_name, full_name, rect, value, page_index, height, width, z_index, is_group, parent, is_shared_field, flags, color, contents, margin, highlighting, horizontal_alignment, vertical_alignment, border, option_name, style].hash
300
310
  end
301
311
 
302
312
  # Builds the object from hash
@@ -31,6 +31,9 @@ module AsposePdfCloud
31
31
  # Field name.
32
32
  attr_accessor :partial_name
33
33
 
34
+ # Full Field name.
35
+ attr_accessor :full_name
36
+
34
37
  # Field rectangle.
35
38
  attr_accessor :rect
36
39
 
@@ -91,6 +94,7 @@ module AsposePdfCloud
91
94
  {
92
95
  :'links' => :'Links',
93
96
  :'partial_name' => :'PartialName',
97
+ :'full_name' => :'FullName',
94
98
  :'rect' => :'Rect',
95
99
  :'value' => :'Value',
96
100
  :'page_index' => :'PageIndex',
@@ -117,6 +121,7 @@ module AsposePdfCloud
117
121
  {
118
122
  :'links' => :'Array<Link>',
119
123
  :'partial_name' => :'String',
124
+ :'full_name' => :'String',
120
125
  :'rect' => :'Rectangle',
121
126
  :'value' => :'String',
122
127
  :'page_index' => :'Integer',
@@ -156,6 +161,10 @@ module AsposePdfCloud
156
161
  self.partial_name = attributes[:'PartialName']
157
162
  end
158
163
 
164
+ if attributes.has_key?(:'FullName')
165
+ self.full_name = attributes[:'FullName']
166
+ end
167
+
159
168
  if attributes.has_key?(:'Rect')
160
169
  self.rect = attributes[:'Rect']
161
170
  end
@@ -257,6 +266,7 @@ module AsposePdfCloud
257
266
  self.class == o.class &&
258
267
  links == o.links &&
259
268
  partial_name == o.partial_name &&
269
+ full_name == o.full_name &&
260
270
  rect == o.rect &&
261
271
  value == o.value &&
262
272
  page_index == o.page_index &&
@@ -286,7 +296,7 @@ module AsposePdfCloud
286
296
  # Calculates hash code according to all attributes.
287
297
  # @return [Fixnum] Hash code
288
298
  def hash
289
- [links, partial_name, rect, value, page_index, height, width, z_index, is_group, parent, is_shared_field, flags, color, contents, margin, highlighting, horizontal_alignment, vertical_alignment, border, signature].hash
299
+ [links, partial_name, full_name, rect, value, page_index, height, width, z_index, is_group, parent, is_shared_field, flags, color, contents, margin, highlighting, horizontal_alignment, vertical_alignment, border, signature].hash
290
300
  end
291
301
 
292
302
  # Builds the object from hash
@@ -31,6 +31,9 @@ module AsposePdfCloud
31
31
  # Field name.
32
32
  attr_accessor :partial_name
33
33
 
34
+ # Full Field name.
35
+ attr_accessor :full_name
36
+
34
37
  # Field rectangle.
35
38
  attr_accessor :rect
36
39
 
@@ -106,6 +109,7 @@ module AsposePdfCloud
106
109
  {
107
110
  :'links' => :'Links',
108
111
  :'partial_name' => :'PartialName',
112
+ :'full_name' => :'FullName',
109
113
  :'rect' => :'Rect',
110
114
  :'value' => :'Value',
111
115
  :'page_index' => :'PageIndex',
@@ -137,6 +141,7 @@ module AsposePdfCloud
137
141
  {
138
142
  :'links' => :'Array<Link>',
139
143
  :'partial_name' => :'String',
144
+ :'full_name' => :'String',
140
145
  :'rect' => :'Rectangle',
141
146
  :'value' => :'String',
142
147
  :'page_index' => :'Integer',
@@ -181,6 +186,10 @@ module AsposePdfCloud
181
186
  self.partial_name = attributes[:'PartialName']
182
187
  end
183
188
 
189
+ if attributes.has_key?(:'FullName')
190
+ self.full_name = attributes[:'FullName']
191
+ end
192
+
184
193
  if attributes.has_key?(:'Rect')
185
194
  self.rect = attributes[:'Rect']
186
195
  end
@@ -302,6 +311,7 @@ module AsposePdfCloud
302
311
  self.class == o.class &&
303
312
  links == o.links &&
304
313
  partial_name == o.partial_name &&
314
+ full_name == o.full_name &&
305
315
  rect == o.rect &&
306
316
  value == o.value &&
307
317
  page_index == o.page_index &&
@@ -336,7 +346,7 @@ module AsposePdfCloud
336
346
  # Calculates hash code according to all attributes.
337
347
  # @return [Fixnum] Hash code
338
348
  def hash
339
- [links, partial_name, rect, value, page_index, height, width, z_index, is_group, parent, is_shared_field, flags, color, contents, margin, highlighting, horizontal_alignment, vertical_alignment, border, multiline, spell_check, scrollable, force_combs, max_len, barcode].hash
349
+ [links, partial_name, full_name, rect, value, page_index, height, width, z_index, is_group, parent, is_shared_field, flags, color, contents, margin, highlighting, horizontal_alignment, vertical_alignment, border, multiline, spell_check, scrollable, force_combs, max_len, barcode].hash
340
350
  end
341
351
 
342
352
  # Builds the object from hash
@@ -28,7 +28,7 @@ module AsposePdfCloud
28
28
  # Gets or sets font size of the text.
29
29
  attr_accessor :font_size
30
30
 
31
- # Gets or sets font of the text.
31
+ # Gets or sets font name of the text.
32
32
  attr_accessor :font
33
33
 
34
34
  # Gets or sets foreground color of the text.
@@ -40,6 +40,9 @@ module AsposePdfCloud
40
40
  # Sets font style of the text.
41
41
  attr_accessor :font_style
42
42
 
43
+ # Sets path of font file in storage.
44
+ attr_accessor :font_file
45
+
43
46
 
44
47
  # Attribute mapping from ruby-style variable name to JSON key.
45
48
  def self.attribute_map
@@ -48,7 +51,8 @@ module AsposePdfCloud
48
51
  :'font' => :'Font',
49
52
  :'foreground_color' => :'ForegroundColor',
50
53
  :'background_color' => :'BackgroundColor',
51
- :'font_style' => :'FontStyle'
54
+ :'font_style' => :'FontStyle',
55
+ :'font_file' => :'FontFile'
52
56
  }
53
57
  end
54
58
 
@@ -59,7 +63,8 @@ module AsposePdfCloud
59
63
  :'font' => :'String',
60
64
  :'foreground_color' => :'Color',
61
65
  :'background_color' => :'Color',
62
- :'font_style' => :'FontStyles'
66
+ :'font_style' => :'FontStyles',
67
+ :'font_file' => :'String'
63
68
  }
64
69
  end
65
70
 
@@ -91,6 +96,10 @@ module AsposePdfCloud
91
96
  self.font_style = attributes[:'FontStyle']
92
97
  end
93
98
 
99
+ if attributes.has_key?(:'FontFile')
100
+ self.font_file = attributes[:'FontFile']
101
+ end
102
+
94
103
  end
95
104
 
96
105
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -125,7 +134,8 @@ module AsposePdfCloud
125
134
  font == o.font &&
126
135
  foreground_color == o.foreground_color &&
127
136
  background_color == o.background_color &&
128
- font_style == o.font_style
137
+ font_style == o.font_style &&
138
+ font_file == o.font_file
129
139
  end
130
140
 
131
141
  # @see the `==` method
@@ -137,7 +147,7 @@ module AsposePdfCloud
137
147
  # Calculates hash code according to all attributes.
138
148
  # @return [Fixnum] Hash code
139
149
  def hash
140
- [font_size, font, foreground_color, background_color, font_style].hash
150
+ [font_size, font, foreground_color, background_color, font_style, font_file].hash
141
151
  end
142
152
 
143
153
  # Builds the object from hash