aspose_words_cloud 21.9.0 → 21.10.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 +4 -4
- data/lib/aspose_words_cloud/models/bmp_save_options_data.rb +1 -11
- data/lib/aspose_words_cloud/models/emf_save_options_data.rb +1 -11
- data/lib/aspose_words_cloud/models/gif_save_options_data.rb +1 -11
- data/lib/aspose_words_cloud/models/image_save_options_data.rb +1 -11
- data/lib/aspose_words_cloud/models/jpeg_save_options_data.rb +1 -11
- data/lib/aspose_words_cloud/models/{string_format_data.rb → json_data_load_options.rb} +42 -119
- data/lib/aspose_words_cloud/models/png_save_options_data.rb +1 -11
- data/lib/aspose_words_cloud/models/report_engine_settings.rb +24 -4
- data/lib/aspose_words_cloud/models/tiff_save_options_data.rb +1 -11
- data/lib/aspose_words_cloud/models/xml_data_load_options.rb +203 -0
- data/lib/aspose_words_cloud/version.rb +1 -1
- data/lib/aspose_words_cloud.rb +2 -2
- metadata +4 -4
- data/lib/aspose_words_cloud/models/graphics_quality_options_data.rb +0 -356
@@ -102,9 +102,6 @@ module AsposeWordsCloud
|
|
102
102
|
# Gets or sets the 0-based index of the first page to render.
|
103
103
|
attr_accessor :page_index
|
104
104
|
|
105
|
-
# Gets or sets the additional System.Drawing.Graphics quality options.
|
106
|
-
attr_accessor :graphics_quality_options
|
107
|
-
|
108
105
|
# Gets or sets the horizontal resolution in dots per inch for the generated images.
|
109
106
|
# This property has effect only when saving to raster image formats.
|
110
107
|
# The default value is 96.
|
@@ -204,7 +201,6 @@ module AsposeWordsCloud
|
|
204
201
|
:'optimize_output' => :'OptimizeOutput',
|
205
202
|
:'page_count' => :'PageCount',
|
206
203
|
:'page_index' => :'PageIndex',
|
207
|
-
:'graphics_quality_options' => :'GraphicsQualityOptions',
|
208
204
|
:'horizontal_resolution' => :'HorizontalResolution',
|
209
205
|
:'image_brightness' => :'ImageBrightness',
|
210
206
|
:'image_color_mode' => :'ImageColorMode',
|
@@ -248,7 +244,6 @@ module AsposeWordsCloud
|
|
248
244
|
:'optimize_output' => :'BOOLEAN',
|
249
245
|
:'page_count' => :'Integer',
|
250
246
|
:'page_index' => :'Integer',
|
251
|
-
:'graphics_quality_options' => :'GraphicsQualityOptionsData',
|
252
247
|
:'horizontal_resolution' => :'Float',
|
253
248
|
:'image_brightness' => :'Float',
|
254
249
|
:'image_color_mode' => :'String',
|
@@ -363,10 +358,6 @@ module AsposeWordsCloud
|
|
363
358
|
self.page_index = attributes[:'PageIndex']
|
364
359
|
end
|
365
360
|
|
366
|
-
if attributes.key?(:'GraphicsQualityOptions')
|
367
|
-
self.graphics_quality_options = attributes[:'GraphicsQualityOptions']
|
368
|
-
end
|
369
|
-
|
370
361
|
if attributes.key?(:'HorizontalResolution')
|
371
362
|
self.horizontal_resolution = attributes[:'HorizontalResolution']
|
372
363
|
end
|
@@ -486,7 +477,6 @@ module AsposeWordsCloud
|
|
486
477
|
optimize_output == other.optimize_output &&
|
487
478
|
page_count == other.page_count &&
|
488
479
|
page_index == other.page_index &&
|
489
|
-
graphics_quality_options == other.graphics_quality_options &&
|
490
480
|
horizontal_resolution == other.horizontal_resolution &&
|
491
481
|
image_brightness == other.image_brightness &&
|
492
482
|
image_color_mode == other.image_color_mode &&
|
@@ -513,7 +503,7 @@ module AsposeWordsCloud
|
|
513
503
|
# Calculates hash code according to all attributes.
|
514
504
|
# @return [Fixnum] Hash code
|
515
505
|
def hash
|
516
|
-
[allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, flat_opc_xml_mapping_only, iml_rendering_mode, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index,
|
506
|
+
[allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, flat_opc_xml_mapping_only, iml_rendering_mode, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, horizontal_resolution, image_brightness, image_color_mode, image_contrast, paper_color, pixel_format, resolution, scale, use_anti_aliasing, use_gdi_emf_renderer, use_high_quality_rendering, vertical_resolution, threshold_for_floyd_steinberg_dithering, tiff_binarization_method, tiff_compression].hash
|
517
507
|
end
|
518
508
|
|
519
509
|
# Builds the object from hash
|
@@ -0,0 +1,203 @@
|
|
1
|
+
# ------------------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="xml_data_load_options.rb">
|
3
|
+
# Copyright (c) 2021 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
|
+
# Represents options for XML data loading.
|
31
|
+
class XmlDataLoadOptions
|
32
|
+
# Gets or sets a flag indicating whether a generated data source will always contain an object for an XML root
|
33
|
+
# element. If an XML root element has no attributes and all its child elements have same names, such an object
|
34
|
+
# is not created by default.
|
35
|
+
attr_accessor :always_generate_root_object
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
37
|
+
def self.attribute_map
|
38
|
+
{
|
39
|
+
:'always_generate_root_object' => :'AlwaysGenerateRootObject'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Attribute type mapping.
|
44
|
+
def self.swagger_types
|
45
|
+
{
|
46
|
+
:'always_generate_root_object' => :'BOOLEAN'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
return unless attributes.is_a?(Hash)
|
54
|
+
|
55
|
+
# convert string to symbol for hash key
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
57
|
+
|
58
|
+
if attributes.key?(:'AlwaysGenerateRootObject')
|
59
|
+
self.always_generate_root_object = attributes[:'AlwaysGenerateRootObject']
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
64
|
+
# @return Array for valid properies with the reasons
|
65
|
+
def list_invalid_properties
|
66
|
+
invalid_properties = []
|
67
|
+
return invalid_properties
|
68
|
+
end
|
69
|
+
|
70
|
+
# Check to see if the all the properties in the model are valid
|
71
|
+
# @return true if the model is valid
|
72
|
+
def valid?
|
73
|
+
return true
|
74
|
+
end
|
75
|
+
|
76
|
+
# Checks equality by comparing each attribute.
|
77
|
+
# @param [Object] Object to be compared
|
78
|
+
def ==(other)
|
79
|
+
return true if self.equal?(other)
|
80
|
+
self.class == other.class &&
|
81
|
+
always_generate_root_object == other.always_generate_root_object
|
82
|
+
end
|
83
|
+
|
84
|
+
# @see the `==` method
|
85
|
+
# @param [Object] Object to be compared
|
86
|
+
def eql?(other)
|
87
|
+
self == other
|
88
|
+
end
|
89
|
+
|
90
|
+
# Calculates hash code according to all attributes.
|
91
|
+
# @return [Fixnum] Hash code
|
92
|
+
def hash
|
93
|
+
[always_generate_root_object].hash
|
94
|
+
end
|
95
|
+
|
96
|
+
# Builds the object from hash
|
97
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
98
|
+
# @return [Object] Returns the model itself
|
99
|
+
def build_from_hash(attributes)
|
100
|
+
return nil unless attributes.is_a?(Hash)
|
101
|
+
self.class.swagger_types.each_pair do |key, type|
|
102
|
+
if type =~ /\AArray<(.*)>/i
|
103
|
+
# check to ensure the input is an array given that the the attribute
|
104
|
+
# is documented as an array but the input is not
|
105
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
106
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
107
|
+
end
|
108
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
109
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
110
|
+
end
|
111
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
112
|
+
end
|
113
|
+
|
114
|
+
self
|
115
|
+
end
|
116
|
+
|
117
|
+
# Deserializes the data based on type
|
118
|
+
# @param string type Data type
|
119
|
+
# @param string value Value to be deserialized
|
120
|
+
# @return [Object] Deserialized data
|
121
|
+
def _deserialize(type, value)
|
122
|
+
case type.to_sym
|
123
|
+
when :DateTime
|
124
|
+
Time.at(/\d/.match(value)[0].to_f).to_datetime
|
125
|
+
when :Date
|
126
|
+
Time.at(/\d/.match(value)[0].to_f).to_date
|
127
|
+
when :String
|
128
|
+
value.to_s
|
129
|
+
when :Integer
|
130
|
+
value.to_i
|
131
|
+
when :Float
|
132
|
+
value.to_f
|
133
|
+
when :BOOLEAN
|
134
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
135
|
+
true
|
136
|
+
else
|
137
|
+
false
|
138
|
+
end
|
139
|
+
when :Object
|
140
|
+
# generic object (usually a Hash), return directly
|
141
|
+
value
|
142
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
143
|
+
inner_type = Regexp.last_match[:inner_type]
|
144
|
+
value.map { |v| _deserialize(inner_type, v) }
|
145
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
146
|
+
k_type = Regexp.last_match[:k_type]
|
147
|
+
v_type = Regexp.last_match[:v_type]
|
148
|
+
{}.tap do |hash|
|
149
|
+
value.each do |k, v|
|
150
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
151
|
+
end
|
152
|
+
end
|
153
|
+
else
|
154
|
+
# model
|
155
|
+
temp_model = AsposeWordsCloud.const_get(type).new
|
156
|
+
temp_model.build_from_hash(value)
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
# Returns the string representation of the object
|
161
|
+
# @return [String] String presentation of the object
|
162
|
+
def to_s
|
163
|
+
to_hash.to_s
|
164
|
+
end
|
165
|
+
|
166
|
+
# to_body is an alias to to_hash (backward compatibility)
|
167
|
+
# @return [Hash] Returns the object in the form of hash
|
168
|
+
def to_body
|
169
|
+
to_hash
|
170
|
+
end
|
171
|
+
|
172
|
+
# Returns the object in the form of hash
|
173
|
+
# @return [Hash] Returns the object in the form of hash
|
174
|
+
def to_hash
|
175
|
+
hash = {}
|
176
|
+
self.class.attribute_map.each_pair do |attr, param|
|
177
|
+
value = self.send(attr)
|
178
|
+
next if value.nil?
|
179
|
+
hash[param] = _to_hash(value)
|
180
|
+
end
|
181
|
+
hash
|
182
|
+
end
|
183
|
+
|
184
|
+
# Outputs non-array value in the form of hash
|
185
|
+
# For object, use to_hash. Otherwise, just return the value
|
186
|
+
# @param [Object] value Any valid value
|
187
|
+
# @return [Hash] Returns the value in the form of hash
|
188
|
+
def _to_hash(value)
|
189
|
+
if value.is_a?(Array)
|
190
|
+
value.compact.map { |v| _to_hash(v) }
|
191
|
+
elsif value.is_a?(Hash)
|
192
|
+
{}.tap do |hash|
|
193
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
194
|
+
end
|
195
|
+
elsif value.respond_to? :to_hash
|
196
|
+
value.to_hash
|
197
|
+
else
|
198
|
+
value
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
end
|
203
|
+
end
|
data/lib/aspose_words_cloud.rb
CHANGED
@@ -123,7 +123,6 @@ require_relative 'aspose_words_cloud/models/form_field_response'
|
|
123
123
|
require_relative 'aspose_words_cloud/models/form_fields_response'
|
124
124
|
require_relative 'aspose_words_cloud/models/form_field_text_input'
|
125
125
|
require_relative 'aspose_words_cloud/models/gif_save_options_data'
|
126
|
-
require_relative 'aspose_words_cloud/models/graphics_quality_options_data'
|
127
126
|
require_relative 'aspose_words_cloud/models/header_footer'
|
128
127
|
require_relative 'aspose_words_cloud/models/header_footer_link'
|
129
128
|
require_relative 'aspose_words_cloud/models/header_footer_link_collection'
|
@@ -137,6 +136,7 @@ require_relative 'aspose_words_cloud/models/hyperlinks'
|
|
137
136
|
require_relative 'aspose_words_cloud/models/hyperlinks_response'
|
138
137
|
require_relative 'aspose_words_cloud/models/image_save_options_data'
|
139
138
|
require_relative 'aspose_words_cloud/models/jpeg_save_options_data'
|
139
|
+
require_relative 'aspose_words_cloud/models/json_data_load_options'
|
140
140
|
require_relative 'aspose_words_cloud/models/link'
|
141
141
|
require_relative 'aspose_words_cloud/models/link_element'
|
142
142
|
require_relative 'aspose_words_cloud/models/list_format'
|
@@ -227,7 +227,6 @@ require_relative 'aspose_words_cloud/models/split_document_result'
|
|
227
227
|
require_relative 'aspose_words_cloud/models/stat_data_response'
|
228
228
|
require_relative 'aspose_words_cloud/models/storage_file'
|
229
229
|
require_relative 'aspose_words_cloud/models/story_child_nodes'
|
230
|
-
require_relative 'aspose_words_cloud/models/string_format_data'
|
231
230
|
require_relative 'aspose_words_cloud/models/style'
|
232
231
|
require_relative 'aspose_words_cloud/models/style_apply'
|
233
232
|
require_relative 'aspose_words_cloud/models/style_copy'
|
@@ -276,6 +275,7 @@ require_relative 'aspose_words_cloud/models/words_response'
|
|
276
275
|
require_relative 'aspose_words_cloud/models/xaml_fixed_save_options_data'
|
277
276
|
require_relative 'aspose_words_cloud/models/xaml_flow_save_options_data'
|
278
277
|
require_relative 'aspose_words_cloud/models/xml_color'
|
278
|
+
require_relative 'aspose_words_cloud/models/xml_data_load_options'
|
279
279
|
require_relative 'aspose_words_cloud/models/xps_save_options_data'
|
280
280
|
|
281
281
|
# Model requests
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspose_words_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 21.
|
4
|
+
version: 21.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- YaroslawEkimov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -176,7 +176,6 @@ files:
|
|
176
176
|
- lib/aspose_words_cloud/models/form_field_text_input.rb
|
177
177
|
- lib/aspose_words_cloud/models/form_fields_response.rb
|
178
178
|
- lib/aspose_words_cloud/models/gif_save_options_data.rb
|
179
|
-
- lib/aspose_words_cloud/models/graphics_quality_options_data.rb
|
180
179
|
- lib/aspose_words_cloud/models/header_footer.rb
|
181
180
|
- lib/aspose_words_cloud/models/header_footer_link.rb
|
182
181
|
- lib/aspose_words_cloud/models/header_footer_link_collection.rb
|
@@ -190,6 +189,7 @@ files:
|
|
190
189
|
- lib/aspose_words_cloud/models/hyperlinks_response.rb
|
191
190
|
- lib/aspose_words_cloud/models/image_save_options_data.rb
|
192
191
|
- lib/aspose_words_cloud/models/jpeg_save_options_data.rb
|
192
|
+
- lib/aspose_words_cloud/models/json_data_load_options.rb
|
193
193
|
- lib/aspose_words_cloud/models/link.rb
|
194
194
|
- lib/aspose_words_cloud/models/link_element.rb
|
195
195
|
- lib/aspose_words_cloud/models/list_format.rb
|
@@ -648,7 +648,6 @@ files:
|
|
648
648
|
- lib/aspose_words_cloud/models/stat_data_response.rb
|
649
649
|
- lib/aspose_words_cloud/models/storage_file.rb
|
650
650
|
- lib/aspose_words_cloud/models/story_child_nodes.rb
|
651
|
-
- lib/aspose_words_cloud/models/string_format_data.rb
|
652
651
|
- lib/aspose_words_cloud/models/style.rb
|
653
652
|
- lib/aspose_words_cloud/models/style_apply.rb
|
654
653
|
- lib/aspose_words_cloud/models/style_copy.rb
|
@@ -697,6 +696,7 @@ files:
|
|
697
696
|
- lib/aspose_words_cloud/models/xaml_fixed_save_options_data.rb
|
698
697
|
- lib/aspose_words_cloud/models/xaml_flow_save_options_data.rb
|
699
698
|
- lib/aspose_words_cloud/models/xml_color.rb
|
699
|
+
- lib/aspose_words_cloud/models/xml_data_load_options.rb
|
700
700
|
- lib/aspose_words_cloud/models/xps_save_options_data.rb
|
701
701
|
- lib/aspose_words_cloud/version.rb
|
702
702
|
homepage: https://github.com/aspose-words-cloud/aspose-words-cloud-ruby
|