aspose_words_cloud 20.7.0 → 20.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose_words_cloud.rb +2 -47
  3. data/lib/aspose_words_cloud/api/words_api.rb +1833 -5069
  4. data/lib/aspose_words_cloud/api_client.rb +0 -1
  5. data/lib/aspose_words_cloud/configuration.rb +1 -1
  6. data/lib/aspose_words_cloud/models/document_entry_list.rb +11 -1
  7. data/lib/aspose_words_cloud/models/optimization_options.rb +242 -0
  8. data/lib/aspose_words_cloud/models/requests/delete_all_paragraph_tab_stops_request.rb +6 -6
  9. data/lib/aspose_words_cloud/models/requests/delete_border_request.rb +6 -6
  10. data/lib/aspose_words_cloud/models/requests/delete_borders_request.rb +1 -1
  11. data/lib/aspose_words_cloud/models/requests/delete_drawing_object_request.rb +6 -6
  12. data/lib/aspose_words_cloud/models/requests/delete_field_request.rb +6 -6
  13. data/lib/aspose_words_cloud/models/requests/delete_fields_request.rb +1 -1
  14. data/lib/aspose_words_cloud/models/requests/delete_footnote_request.rb +6 -6
  15. data/lib/aspose_words_cloud/models/requests/delete_form_field_request.rb +6 -6
  16. data/lib/aspose_words_cloud/models/requests/delete_office_math_object_request.rb +6 -6
  17. data/lib/aspose_words_cloud/models/requests/delete_paragraph_list_format_request.rb +6 -6
  18. data/lib/aspose_words_cloud/models/requests/delete_paragraph_request.rb +6 -6
  19. data/lib/aspose_words_cloud/models/requests/delete_paragraph_tab_stop_request.rb +6 -6
  20. data/lib/aspose_words_cloud/models/requests/delete_table_request.rb +6 -6
  21. data/lib/aspose_words_cloud/models/requests/get_border_request.rb +6 -6
  22. data/lib/aspose_words_cloud/models/requests/get_borders_request.rb +1 -1
  23. data/lib/aspose_words_cloud/models/requests/get_document_drawing_object_by_index_request.rb +6 -6
  24. data/lib/aspose_words_cloud/models/requests/get_document_drawing_object_image_data_request.rb +6 -6
  25. data/lib/aspose_words_cloud/models/requests/get_document_drawing_object_ole_data_request.rb +6 -6
  26. data/lib/aspose_words_cloud/models/requests/get_document_drawing_objects_request.rb +1 -1
  27. data/lib/aspose_words_cloud/models/requests/get_field_request.rb +6 -6
  28. data/lib/aspose_words_cloud/models/requests/get_fields_request.rb +1 -1
  29. data/lib/aspose_words_cloud/models/requests/get_footnote_request.rb +6 -6
  30. data/lib/aspose_words_cloud/models/requests/get_footnotes_request.rb +1 -1
  31. data/lib/aspose_words_cloud/models/requests/get_form_field_request.rb +6 -6
  32. data/lib/aspose_words_cloud/models/requests/get_form_fields_request.rb +1 -1
  33. data/lib/aspose_words_cloud/models/requests/get_office_math_object_request.rb +6 -6
  34. data/lib/aspose_words_cloud/models/requests/get_office_math_objects_request.rb +1 -1
  35. data/lib/aspose_words_cloud/models/requests/get_paragraph_format_request.rb +6 -6
  36. data/lib/aspose_words_cloud/models/requests/get_paragraph_list_format_request.rb +6 -6
  37. data/lib/aspose_words_cloud/models/requests/get_paragraph_request.rb +6 -6
  38. data/lib/aspose_words_cloud/models/requests/get_paragraph_tab_stops_request.rb +6 -6
  39. data/lib/aspose_words_cloud/models/requests/get_paragraphs_request.rb +1 -1
  40. data/lib/aspose_words_cloud/models/requests/get_table_properties_request.rb +6 -6
  41. data/lib/aspose_words_cloud/models/requests/get_table_request.rb +6 -6
  42. data/lib/aspose_words_cloud/models/requests/get_tables_request.rb +1 -1
  43. data/lib/aspose_words_cloud/models/requests/insert_drawing_object_request.rb +1 -1
  44. data/lib/aspose_words_cloud/models/requests/insert_field_request.rb +1 -1
  45. data/lib/aspose_words_cloud/models/requests/insert_footnote_request.rb +1 -1
  46. data/lib/aspose_words_cloud/models/requests/insert_form_field_request.rb +1 -1
  47. data/lib/aspose_words_cloud/models/requests/insert_or_update_paragraph_tab_stop_request.rb +6 -6
  48. data/lib/aspose_words_cloud/models/requests/insert_paragraph_request.rb +1 -1
  49. data/lib/aspose_words_cloud/models/requests/insert_table_request.rb +1 -1
  50. data/lib/aspose_words_cloud/models/requests/{delete_footnote_without_node_path_request.rb → optimize_document_request.rb} +8 -8
  51. data/lib/aspose_words_cloud/models/requests/render_drawing_object_request.rb +6 -6
  52. data/lib/aspose_words_cloud/models/requests/render_math_object_request.rb +6 -6
  53. data/lib/aspose_words_cloud/models/requests/render_paragraph_request.rb +6 -6
  54. data/lib/aspose_words_cloud/models/requests/render_table_request.rb +6 -6
  55. data/lib/aspose_words_cloud/models/requests/update_border_request.rb +6 -6
  56. data/lib/aspose_words_cloud/models/requests/update_drawing_object_request.rb +6 -6
  57. data/lib/aspose_words_cloud/models/requests/update_field_request.rb +6 -6
  58. data/lib/aspose_words_cloud/models/requests/update_footnote_request.rb +6 -6
  59. data/lib/aspose_words_cloud/models/requests/update_form_field_request.rb +6 -6
  60. data/lib/aspose_words_cloud/models/requests/update_paragraph_format_request.rb +6 -6
  61. data/lib/aspose_words_cloud/models/requests/update_paragraph_list_format_request.rb +6 -6
  62. data/lib/aspose_words_cloud/models/requests/update_table_properties_request.rb +6 -6
  63. data/lib/aspose_words_cloud/version.rb +1 -1
  64. metadata +4 -49
  65. data/lib/aspose_words_cloud/models/requests/delete_all_paragraph_tab_stops_without_node_path_request.rb +0 -73
  66. data/lib/aspose_words_cloud/models/requests/delete_drawing_object_without_node_path_request.rb +0 -83
  67. data/lib/aspose_words_cloud/models/requests/delete_field_without_node_path_request.rb +0 -83
  68. data/lib/aspose_words_cloud/models/requests/delete_fields_without_node_path_request.rb +0 -78
  69. data/lib/aspose_words_cloud/models/requests/delete_form_field_without_node_path_request.rb +0 -83
  70. data/lib/aspose_words_cloud/models/requests/delete_office_math_object_without_node_path_request.rb +0 -83
  71. data/lib/aspose_words_cloud/models/requests/delete_paragraph_list_format_without_node_path_request.rb +0 -83
  72. data/lib/aspose_words_cloud/models/requests/delete_paragraph_tab_stop_without_node_path_request.rb +0 -78
  73. data/lib/aspose_words_cloud/models/requests/delete_paragraph_without_node_path_request.rb +0 -83
  74. data/lib/aspose_words_cloud/models/requests/delete_table_without_node_path_request.rb +0 -83
  75. data/lib/aspose_words_cloud/models/requests/get_document_drawing_object_by_index_without_node_path_request.rb +0 -68
  76. data/lib/aspose_words_cloud/models/requests/get_document_drawing_object_image_data_without_node_path_request.rb +0 -68
  77. data/lib/aspose_words_cloud/models/requests/get_document_drawing_object_ole_data_without_node_path_request.rb +0 -68
  78. data/lib/aspose_words_cloud/models/requests/get_document_drawing_objects_without_node_path_request.rb +0 -63
  79. data/lib/aspose_words_cloud/models/requests/get_field_without_node_path_request.rb +0 -68
  80. data/lib/aspose_words_cloud/models/requests/get_fields_without_node_path_request.rb +0 -63
  81. data/lib/aspose_words_cloud/models/requests/get_footnote_without_node_path_request.rb +0 -68
  82. data/lib/aspose_words_cloud/models/requests/get_footnotes_without_node_path_request.rb +0 -63
  83. data/lib/aspose_words_cloud/models/requests/get_form_field_without_node_path_request.rb +0 -68
  84. data/lib/aspose_words_cloud/models/requests/get_form_fields_without_node_path_request.rb +0 -63
  85. data/lib/aspose_words_cloud/models/requests/get_office_math_object_without_node_path_request.rb +0 -68
  86. data/lib/aspose_words_cloud/models/requests/get_office_math_objects_without_node_path_request.rb +0 -63
  87. data/lib/aspose_words_cloud/models/requests/get_paragraph_format_without_node_path_request.rb +0 -68
  88. data/lib/aspose_words_cloud/models/requests/get_paragraph_list_format_without_node_path_request.rb +0 -68
  89. data/lib/aspose_words_cloud/models/requests/get_paragraph_tab_stops_without_node_path_request.rb +0 -68
  90. data/lib/aspose_words_cloud/models/requests/get_paragraph_without_node_path_request.rb +0 -68
  91. data/lib/aspose_words_cloud/models/requests/get_paragraphs_without_node_path_request.rb +0 -63
  92. data/lib/aspose_words_cloud/models/requests/get_table_properties_without_node_path_request.rb +0 -68
  93. data/lib/aspose_words_cloud/models/requests/get_table_without_node_path_request.rb +0 -68
  94. data/lib/aspose_words_cloud/models/requests/get_tables_without_node_path_request.rb +0 -63
  95. data/lib/aspose_words_cloud/models/requests/insert_drawing_object_without_node_path_request.rb +0 -88
  96. data/lib/aspose_words_cloud/models/requests/insert_field_without_node_path_request.rb +0 -88
  97. data/lib/aspose_words_cloud/models/requests/insert_footnote_without_node_path_request.rb +0 -83
  98. data/lib/aspose_words_cloud/models/requests/insert_form_field_without_node_path_request.rb +0 -88
  99. data/lib/aspose_words_cloud/models/requests/insert_or_update_paragraph_tab_stop_without_node_path_request.rb +0 -78
  100. data/lib/aspose_words_cloud/models/requests/insert_paragraph_without_node_path_request.rb +0 -88
  101. data/lib/aspose_words_cloud/models/requests/insert_table_without_node_path_request.rb +0 -83
  102. data/lib/aspose_words_cloud/models/requests/render_drawing_object_without_node_path_request.rb +0 -78
  103. data/lib/aspose_words_cloud/models/requests/render_math_object_without_node_path_request.rb +0 -78
  104. data/lib/aspose_words_cloud/models/requests/render_paragraph_without_node_path_request.rb +0 -78
  105. data/lib/aspose_words_cloud/models/requests/render_table_without_node_path_request.rb +0 -78
  106. data/lib/aspose_words_cloud/models/requests/update_drawing_object_without_node_path_request.rb +0 -93
  107. data/lib/aspose_words_cloud/models/requests/update_footnote_without_node_path_request.rb +0 -88
  108. data/lib/aspose_words_cloud/models/requests/update_form_field_without_node_path_request.rb +0 -88
  109. data/lib/aspose_words_cloud/models/requests/update_paragraph_list_format_without_node_path_request.rb +0 -88
  110. data/lib/aspose_words_cloud/models/requests/update_table_properties_without_node_path_request.rb +0 -88
@@ -284,7 +284,6 @@ module AsposeWordsCloud
284
284
  def build_request_url(path)
285
285
  # remove empty path parameter artifacts
286
286
  path = path.gsub(/\/+/, '/')
287
- path = path.gsub(" ", "%20")
288
287
  return @config.getFullUrl(path, path == "/connect/token")
289
288
  end
290
289
 
@@ -119,7 +119,7 @@ module AsposeWordsCloud
119
119
  return URI.join(baseUrl, path).to_s
120
120
  end
121
121
 
122
- return URI.join(baseUrl, "/v4.0/", path).to_s
122
+ return URI.join(baseUrl, "/v4.0/", URI.encode(path)).to_s
123
123
  end
124
124
 
125
125
  # Gets API key (with prefix if set).
@@ -29,11 +29,15 @@ module AsposeWordsCloud
29
29
 
30
30
  # Represents a list of documents which will be appended to the original resource document.
31
31
  class DocumentEntryList
32
+ # Gets or sets parameter that indicates to apply headers and footers from base document to appending documents. Default is true.
33
+ attr_accessor :apply_base_document_headers_and_footers_to_appending_documents
34
+
32
35
  # Gets or sets list of documents.
33
36
  attr_accessor :document_entries
34
37
  # Attribute mapping from ruby-style variable name to JSON key.
35
38
  def self.attribute_map
36
39
  {
40
+ :'apply_base_document_headers_and_footers_to_appending_documents' => :'ApplyBaseDocumentHeadersAndFootersToAppendingDocuments',
37
41
  :'document_entries' => :'DocumentEntries'
38
42
  }
39
43
  end
@@ -41,6 +45,7 @@ module AsposeWordsCloud
41
45
  # Attribute type mapping.
42
46
  def self.swagger_types
43
47
  {
48
+ :'apply_base_document_headers_and_footers_to_appending_documents' => :'BOOLEAN',
44
49
  :'document_entries' => :'Array<DocumentEntry>'
45
50
  }
46
51
  end
@@ -53,6 +58,10 @@ module AsposeWordsCloud
53
58
  # convert string to symbol for hash key
54
59
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
55
60
 
61
+ if attributes.key?(:'ApplyBaseDocumentHeadersAndFootersToAppendingDocuments')
62
+ self.apply_base_document_headers_and_footers_to_appending_documents = attributes[:'ApplyBaseDocumentHeadersAndFootersToAppendingDocuments']
63
+ end
64
+
56
65
  if attributes.key?(:'DocumentEntries')
57
66
  if (value = attributes[:'DocumentEntries']).is_a?(Array)
58
67
  self.document_entries = value
@@ -78,6 +87,7 @@ module AsposeWordsCloud
78
87
  def ==(other)
79
88
  return true if self.equal?(other)
80
89
  self.class == other.class &&
90
+ apply_base_document_headers_and_footers_to_appending_documents == other.apply_base_document_headers_and_footers_to_appending_documents &&
81
91
  document_entries == other.document_entries
82
92
  end
83
93
 
@@ -90,7 +100,7 @@ module AsposeWordsCloud
90
100
  # Calculates hash code according to all attributes.
91
101
  # @return [Fixnum] Hash code
92
102
  def hash
93
- [document_entries].hash
103
+ [apply_base_document_headers_and_footers_to_appending_documents, document_entries].hash
94
104
  end
95
105
 
96
106
  # Builds the object from hash
@@ -0,0 +1,242 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="optimization_options.rb">
3
+ # Copyright (c) 2020 Aspose.Words for Cloud
4
+ # </copyright>
5
+ # <summary>
6
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ # of this software and associated documentation files (the "Software"), to deal
8
+ # in the Software without restriction, including without limitation the rights
9
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ # copies of the Software, and to permit persons to whom the Software is
11
+ # furnished to do so, subject to the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be included in all
14
+ # copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ # SOFTWARE.
23
+ # </summary>
24
+ # ------------------------------------------------------------------------------------
25
+
26
+ require 'date'
27
+
28
+ module AsposeWordsCloud
29
+
30
+ # Container class for the document optimization options.
31
+ class OptimizationOptions
32
+ # Gets or sets specific MSWord version.
33
+ attr_accessor :ms_word_version
34
+
35
+ class EnumAttributeValidator
36
+ attr_reader :datatype
37
+ attr_reader :allowable_values
38
+
39
+ def initialize(datatype, allowable_values)
40
+ @allowable_values = allowable_values.map do |value|
41
+ case datatype.to_s
42
+ when /Integer/i
43
+ value.to_i
44
+ when /Float/i
45
+ value.to_f
46
+ else
47
+ value
48
+ end
49
+ end
50
+ end
51
+
52
+ def valid?(value)
53
+ !value || allowable_values.include?(value)
54
+ end
55
+ end
56
+
57
+ # Attribute mapping from ruby-style variable name to JSON key.
58
+ def self.attribute_map
59
+ {
60
+ :'ms_word_version' => :'MsWordVersion'
61
+ }
62
+ end
63
+
64
+ # Attribute type mapping.
65
+ def self.swagger_types
66
+ {
67
+ :'ms_word_version' => :'String'
68
+ }
69
+ end
70
+
71
+ # Initializes the object
72
+ # @param [Hash] attributes Model attributes in the form of hash
73
+ def initialize(attributes = {})
74
+ return unless attributes.is_a?(Hash)
75
+
76
+ # convert string to symbol for hash key
77
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
78
+
79
+ if attributes.key?(:'MsWordVersion')
80
+ self.ms_word_version = attributes[:'MsWordVersion']
81
+ end
82
+ end
83
+
84
+ # Show invalid properties with the reasons. Usually used together with valid?
85
+ # @return Array for valid properies with the reasons
86
+ def list_invalid_properties
87
+ invalid_properties = []
88
+ return invalid_properties
89
+ end
90
+
91
+ # Check to see if the all the properties in the model are valid
92
+ # @return true if the model is valid
93
+ def valid?
94
+ ms_word_version_validator = EnumAttributeValidator.new('String', ["Word2000", "Word2002", "Word2003", "Word2007", "Word2010", "Word2013", "Word2016", "Word2019"])
95
+ return false unless ms_word_version_validator.valid?(@ms_word_version)
96
+
97
+ return true
98
+ end
99
+
100
+ # Custom attribute writer method checking allowed values (enum).
101
+ # @param [Object] ms_word_version Object to be assigned
102
+ def ms_word_version=(ms_word_version)
103
+ validator = EnumAttributeValidator.new('String', ["Word2000", "Word2002", "Word2003", "Word2007", "Word2010", "Word2013", "Word2016", "Word2019"])
104
+ if ms_word_version.to_i == 0
105
+ unless validator.valid?(ms_word_version)
106
+ raise ArgumentError, "invalid value for 'ms_word_version', must be one of #{validator.allowable_values}."
107
+ end
108
+ @ms_word_version = ms_word_version
109
+ else
110
+ @ms_word_version = validator.allowable_values[ms_word_version.to_i]
111
+ end
112
+ end
113
+
114
+
115
+ # Checks equality by comparing each attribute.
116
+ # @param [Object] Object to be compared
117
+ def ==(other)
118
+ return true if self.equal?(other)
119
+ self.class == other.class &&
120
+ ms_word_version == other.ms_word_version
121
+ end
122
+
123
+ # @see the `==` method
124
+ # @param [Object] Object to be compared
125
+ def eql?(other)
126
+ self == other
127
+ end
128
+
129
+ # Calculates hash code according to all attributes.
130
+ # @return [Fixnum] Hash code
131
+ def hash
132
+ [ms_word_version].hash
133
+ end
134
+
135
+ # Builds the object from hash
136
+ # @param [Hash] attributes Model attributes in the form of hash
137
+ # @return [Object] Returns the model itself
138
+ def build_from_hash(attributes)
139
+ return nil unless attributes.is_a?(Hash)
140
+ self.class.swagger_types.each_pair do |key, type|
141
+ if type =~ /\AArray<(.*)>/i
142
+ # check to ensure the input is an array given that the the attribute
143
+ # is documented as an array but the input is not
144
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
145
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
146
+ end
147
+ elsif !attributes[self.class.attribute_map[key]].nil?
148
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
149
+ end
150
+ # or else data not found in attributes(hash), not an issue as the data can be optional
151
+ end
152
+
153
+ self
154
+ end
155
+
156
+ # Deserializes the data based on type
157
+ # @param string type Data type
158
+ # @param string value Value to be deserialized
159
+ # @return [Object] Deserialized data
160
+ def _deserialize(type, value)
161
+ case type.to_sym
162
+ when :DateTime
163
+ Time.at(/\d/.match(value)[0].to_f).to_datetime
164
+ when :Date
165
+ Time.at(/\d/.match(value)[0].to_f).to_date
166
+ when :String
167
+ value.to_s
168
+ when :Integer
169
+ value.to_i
170
+ when :Float
171
+ value.to_f
172
+ when :BOOLEAN
173
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
174
+ true
175
+ else
176
+ false
177
+ end
178
+ when :Object
179
+ # generic object (usually a Hash), return directly
180
+ value
181
+ when /\AArray<(?<inner_type>.+)>\z/
182
+ inner_type = Regexp.last_match[:inner_type]
183
+ value.map { |v| _deserialize(inner_type, v) }
184
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
185
+ k_type = Regexp.last_match[:k_type]
186
+ v_type = Regexp.last_match[:v_type]
187
+ {}.tap do |hash|
188
+ value.each do |k, v|
189
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
190
+ end
191
+ end
192
+ else
193
+ # model
194
+ temp_model = AsposeWordsCloud.const_get(type).new
195
+ temp_model.build_from_hash(value)
196
+ end
197
+ end
198
+
199
+ # Returns the string representation of the object
200
+ # @return [String] String presentation of the object
201
+ def to_s
202
+ to_hash.to_s
203
+ end
204
+
205
+ # to_body is an alias to to_hash (backward compatibility)
206
+ # @return [Hash] Returns the object in the form of hash
207
+ def to_body
208
+ to_hash
209
+ end
210
+
211
+ # Returns the object in the form of hash
212
+ # @return [Hash] Returns the object in the form of hash
213
+ def to_hash
214
+ hash = {}
215
+ self.class.attribute_map.each_pair do |attr, param|
216
+ value = self.send(attr)
217
+ next if value.nil?
218
+ hash[param] = _to_hash(value)
219
+ end
220
+ hash
221
+ end
222
+
223
+ # Outputs non-array value in the form of hash
224
+ # For object, use to_hash. Otherwise, just return the value
225
+ # @param [Object] value Any valid value
226
+ # @return [Hash] Returns the value in the form of hash
227
+ def _to_hash(value)
228
+ if value.is_a?(Array)
229
+ value.compact.map { |v| _to_hash(v) }
230
+ elsif value.is_a?(Hash)
231
+ {}.tap do |hash|
232
+ value.each { |k, v| hash[k] = _to_hash(v) }
233
+ end
234
+ elsif value.respond_to? :to_hash
235
+ value.to_hash
236
+ else
237
+ value
238
+ end
239
+ end
240
+
241
+ end
242
+ end
@@ -32,12 +32,12 @@ module AsposeWordsCloud
32
32
  # The document name.
33
33
  attr_accessor :name
34
34
 
35
- # Path to the node which contains paragraph.
36
- attr_accessor :node_path
37
-
38
35
  # Object index.
39
36
  attr_accessor :index
40
37
 
38
+ # Path to the node which contains paragraph.
39
+ attr_accessor :node_path
40
+
41
41
  # Original document folder.
42
42
  attr_accessor :folder
43
43
 
@@ -56,18 +56,18 @@ module AsposeWordsCloud
56
56
  #
57
57
  # Initializes a new instance.
58
58
  # @param name The document name.
59
- # @param node_path Path to the node which contains paragraph.
60
59
  # @param index Object index.
60
+ # @param node_path Path to the node which contains paragraph.
61
61
  # @param folder Original document folder.
62
62
  # @param storage Original document storage.
63
63
  # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
64
64
  # @param password Password for opening an encrypted document.
65
65
  # @param dest_file_name Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
66
66
 
67
- def initialize(name, node_path, index, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil)
67
+ def initialize(name, index, node_path = nil, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil)
68
68
  self.name = name
69
- self.node_path = node_path
70
69
  self.index = index
70
+ self.node_path = node_path
71
71
  self.folder = folder
72
72
  self.storage = storage
73
73
  self.load_encoding = load_encoding
@@ -32,12 +32,12 @@ module AsposeWordsCloud
32
32
  # The document name.
33
33
  attr_accessor :name
34
34
 
35
- # Path to the node with border(node should be paragraph, cell or row).
36
- attr_accessor :node_path
37
-
38
35
  # Border type.
39
36
  attr_accessor :border_type
40
37
 
38
+ # Path to the node with border(node should be paragraph, cell or row).
39
+ attr_accessor :node_path
40
+
41
41
  # Original document folder.
42
42
  attr_accessor :folder
43
43
 
@@ -62,8 +62,8 @@ module AsposeWordsCloud
62
62
  #
63
63
  # Initializes a new instance.
64
64
  # @param name The document name.
65
- # @param node_path Path to the node with border(node should be paragraph, cell or row).
66
65
  # @param border_type Border type.
66
+ # @param node_path Path to the node with border(node should be paragraph, cell or row).
67
67
  # @param folder Original document folder.
68
68
  # @param storage Original document storage.
69
69
  # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
@@ -72,10 +72,10 @@ module AsposeWordsCloud
72
72
  # @param revision_author Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
73
73
  # @param revision_date_time The date and time to use for revisions.
74
74
 
75
- def initialize(name, node_path, border_type, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil)
75
+ def initialize(name, border_type, node_path = nil, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil)
76
76
  self.name = name
77
- self.node_path = node_path
78
77
  self.border_type = border_type
78
+ self.node_path = node_path
79
79
  self.folder = folder
80
80
  self.storage = storage
81
81
  self.load_encoding = load_encoding
@@ -68,7 +68,7 @@ module AsposeWordsCloud
68
68
  # @param revision_author Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
69
69
  # @param revision_date_time The date and time to use for revisions.
70
70
 
71
- def initialize(name, node_path, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil)
71
+ def initialize(name, node_path = nil, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil)
72
72
  self.name = name
73
73
  self.node_path = node_path
74
74
  self.folder = folder
@@ -32,12 +32,12 @@ module AsposeWordsCloud
32
32
  # The document name.
33
33
  attr_accessor :name
34
34
 
35
- # Path to the node, which contains collection of drawing objects.
36
- attr_accessor :node_path
37
-
38
35
  # Object index.
39
36
  attr_accessor :index
40
37
 
38
+ # Path to the node, which contains collection of drawing objects.
39
+ attr_accessor :node_path
40
+
41
41
  # Original document folder.
42
42
  attr_accessor :folder
43
43
 
@@ -62,8 +62,8 @@ module AsposeWordsCloud
62
62
  #
63
63
  # Initializes a new instance.
64
64
  # @param name The document name.
65
- # @param node_path Path to the node, which contains collection of drawing objects.
66
65
  # @param index Object index.
66
+ # @param node_path Path to the node, which contains collection of drawing objects.
67
67
  # @param folder Original document folder.
68
68
  # @param storage Original document storage.
69
69
  # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
@@ -72,10 +72,10 @@ module AsposeWordsCloud
72
72
  # @param revision_author Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
73
73
  # @param revision_date_time The date and time to use for revisions.
74
74
 
75
- def initialize(name, node_path, index, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil)
75
+ def initialize(name, index, node_path = nil, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil)
76
76
  self.name = name
77
- self.node_path = node_path
78
77
  self.index = index
78
+ self.node_path = node_path
79
79
  self.folder = folder
80
80
  self.storage = storage
81
81
  self.load_encoding = load_encoding
@@ -32,12 +32,12 @@ module AsposeWordsCloud
32
32
  # The document name.
33
33
  attr_accessor :name
34
34
 
35
- # Path to the node, which contains collection of fields.
36
- attr_accessor :node_path
37
-
38
35
  # Object index.
39
36
  attr_accessor :index
40
37
 
38
+ # Path to the node, which contains collection of fields.
39
+ attr_accessor :node_path
40
+
41
41
  # Original document folder.
42
42
  attr_accessor :folder
43
43
 
@@ -62,8 +62,8 @@ module AsposeWordsCloud
62
62
  #
63
63
  # Initializes a new instance.
64
64
  # @param name The document name.
65
- # @param node_path Path to the node, which contains collection of fields.
66
65
  # @param index Object index.
66
+ # @param node_path Path to the node, which contains collection of fields.
67
67
  # @param folder Original document folder.
68
68
  # @param storage Original document storage.
69
69
  # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
@@ -72,10 +72,10 @@ module AsposeWordsCloud
72
72
  # @param revision_author Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
73
73
  # @param revision_date_time The date and time to use for revisions.
74
74
 
75
- def initialize(name, node_path, index, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil)
75
+ def initialize(name, index, node_path = nil, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil)
76
76
  self.name = name
77
- self.node_path = node_path
78
77
  self.index = index
78
+ self.node_path = node_path
79
79
  self.folder = folder
80
80
  self.storage = storage
81
81
  self.load_encoding = load_encoding