groupdocs_conversion_cloud 21.9 → 22.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/groupdocs_conversion_cloud/api/convert_api.rb +14 -4
- data/lib/groupdocs_conversion_cloud/api/file_api.rb +6 -6
- data/lib/groupdocs_conversion_cloud/api/folder_api.rb +6 -6
- data/lib/groupdocs_conversion_cloud/api/info_api.rb +3 -3
- data/lib/groupdocs_conversion_cloud/api/license_api.rb +169 -0
- data/lib/groupdocs_conversion_cloud/api/storage_api.rb +5 -5
- data/lib/groupdocs_conversion_cloud/api_client.rb +1 -1
- data/lib/groupdocs_conversion_cloud/api_error.rb +1 -1
- data/lib/groupdocs_conversion_cloud/configuration.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/bmp_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/bmp_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/cad_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/cgm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/consumption_result.rb +234 -0
- data/lib/groupdocs_conversion_cloud/models/convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/convert_settings.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/csv_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/dcm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dcm_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/dgn_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/diagram_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/disc_usage.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/djvu_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dng_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dng_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/doc_convert_options.rb +57 -5
- data/lib/groupdocs_conversion_cloud/models/doc_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/docm_convert_options.rb +57 -5
- data/lib/groupdocs_conversion_cloud/models/docm_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/document_metadata.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/docx_convert_options.rb +57 -5
- data/lib/groupdocs_conversion_cloud/models/docx_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/dot_convert_options.rb +57 -5
- data/lib/groupdocs_conversion_cloud/models/dot_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/dotm_convert_options.rb +57 -5
- data/lib/groupdocs_conversion_cloud/models/dotm_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/dotx_convert_options.rb +57 -5
- data/lib/groupdocs_conversion_cloud/models/dotx_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/dwf_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/dwg_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/dxf_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/email_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/emf_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/emf_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/eml_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/emlx_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/epub_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/error.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/error_details.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/field_label.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/file_version.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/file_versions.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/files_list.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/files_upload_result.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/gif_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/gif_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/html_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/html_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/ico_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ico_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/ifc_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/igs_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/image_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/image_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/j2c_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/j2c_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/j2k_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/j2k_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/jp2_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jp2_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/jpeg_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jpeg_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/jpf_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jpf_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/jpg_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jpg_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/jpm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jpm_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/jpx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jpx_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/load_options.rb +13 -3
- data/lib/groupdocs_conversion_cloud/models/mht_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/mobi_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/msg_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/object_exist.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/odg_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/odg_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/odp_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/odp_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/ods_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ods_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/odt_convert_options.rb +57 -5
- data/lib/groupdocs_conversion_cloud/models/odt_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/one_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/ost_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/otp_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/otp_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/ots_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ots_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/ott_convert_options.rb +57 -5
- data/lib/groupdocs_conversion_cloud/models/ott_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/pdf_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pdf_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/plt_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/png_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/png_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/potm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/potm_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/potx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/potx_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/pps_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pps_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/ppsm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ppsm_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/ppsx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ppsx_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/ppt_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ppt_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/pptm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pptm_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/pptx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pptx_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/presentation_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/presentation_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/psd_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/psd_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/pst_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/rtf_convert_options.rb +54 -2
- data/lib/groupdocs_conversion_cloud/models/spreadsheet_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/spreadsheet_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/stl_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/storage_exist.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/storage_file.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/stored_converted_result.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/supported_format.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/svg_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/tif_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/tif_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/tiff_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/tiff_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/tsv_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/tsv_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/txt_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/txt_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/vdw_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/vdx_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/vsd_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/vsdm_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/vsdx_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/vss_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/vssm_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/vssx_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/vst_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/vstm_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/vstx_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/vsx_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/vtx_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/watermark_options.rb +20 -5
- data/lib/groupdocs_conversion_cloud/models/webp_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/webp_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/wmf_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/wmf_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/word_processing_convert_options.rb +57 -5
- data/lib/groupdocs_conversion_cloud/models/word_processing_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/xls2003_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xls2003_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/xls_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xls_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/xlsb_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xlsb_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/xlsm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xlsm_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/xlsx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xlsx_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/xltm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xltm_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/xltx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xltx_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/xml_load_options.rb +12 -2
- data/lib/groupdocs_conversion_cloud/models/xps_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/version.rb +2 -2
- data/lib/groupdocs_conversion_cloud.rb +3 -1
- metadata +4 -2
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="odt_convert_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
|
@@ -58,6 +58,30 @@ module GroupDocsConversionCloud
|
|
58
58
|
# Watermark specific options
|
59
59
|
attr_accessor :watermark_options
|
60
60
|
|
61
|
+
# Recognition mode when converting from pdf
|
62
|
+
attr_accessor :pdf_recognition_mode
|
63
|
+
class EnumAttributeValidator
|
64
|
+
attr_reader :datatype
|
65
|
+
attr_reader :allowable_values
|
66
|
+
|
67
|
+
def initialize(datatype, allowable_values)
|
68
|
+
@allowable_values = allowable_values.map do |value|
|
69
|
+
case datatype.to_s
|
70
|
+
when /Integer/i
|
71
|
+
value.to_i
|
72
|
+
when /Float/i
|
73
|
+
value.to_f
|
74
|
+
else
|
75
|
+
value
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
def valid?(value)
|
81
|
+
!value || allowable_values.include?(value)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
61
85
|
# Attribute mapping from ruby-style variable name to JSON key.
|
62
86
|
def self.attribute_map
|
63
87
|
{
|
@@ -69,7 +93,8 @@ module GroupDocsConversionCloud
|
|
69
93
|
:'dpi' => :'Dpi',
|
70
94
|
:'password' => :'Password',
|
71
95
|
:'zoom' => :'Zoom',
|
72
|
-
:'watermark_options' => :'WatermarkOptions'
|
96
|
+
:'watermark_options' => :'WatermarkOptions',
|
97
|
+
:'pdf_recognition_mode' => :'PdfRecognitionMode'
|
73
98
|
}
|
74
99
|
end
|
75
100
|
|
@@ -84,7 +109,8 @@ module GroupDocsConversionCloud
|
|
84
109
|
:'dpi' => :'Float',
|
85
110
|
:'password' => :'String',
|
86
111
|
:'zoom' => :'Integer',
|
87
|
-
:'watermark_options' => :'WatermarkOptions'
|
112
|
+
:'watermark_options' => :'WatermarkOptions',
|
113
|
+
:'pdf_recognition_mode' => :'String'
|
88
114
|
}
|
89
115
|
end
|
90
116
|
|
@@ -134,6 +160,10 @@ module GroupDocsConversionCloud
|
|
134
160
|
self.watermark_options = attributes[:'WatermarkOptions']
|
135
161
|
end
|
136
162
|
|
163
|
+
if attributes.key?(:'PdfRecognitionMode')
|
164
|
+
self.pdf_recognition_mode = attributes[:'PdfRecognitionMode']
|
165
|
+
end
|
166
|
+
|
137
167
|
end
|
138
168
|
|
139
169
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -164,6 +194,10 @@ module GroupDocsConversionCloud
|
|
164
194
|
invalid_properties.push("invalid value for 'zoom', zoom cannot be nil.")
|
165
195
|
end
|
166
196
|
|
197
|
+
if @pdf_recognition_mode.nil?
|
198
|
+
invalid_properties.push("invalid value for 'pdf_recognition_mode', pdf_recognition_mode cannot be nil.")
|
199
|
+
end
|
200
|
+
|
167
201
|
return invalid_properties
|
168
202
|
end
|
169
203
|
|
@@ -176,9 +210,26 @@ module GroupDocsConversionCloud
|
|
176
210
|
return false if @height.nil?
|
177
211
|
return false if @dpi.nil?
|
178
212
|
return false if @zoom.nil?
|
213
|
+
return false if @pdf_recognition_mode.nil?
|
214
|
+
pdf_recognition_mode_validator = EnumAttributeValidator.new('String', ["Textbox", "Flow"])
|
215
|
+
return false unless pdf_recognition_mode_validator.valid?(@pdf_recognition_mode)
|
179
216
|
return true
|
180
217
|
end
|
181
218
|
|
219
|
+
# Custom attribute writer method checking allowed values (enum).
|
220
|
+
# @param [Object] pdf_recognition_mode Object to be assigned
|
221
|
+
def pdf_recognition_mode=(pdf_recognition_mode)
|
222
|
+
validator = EnumAttributeValidator.new('String', ["Textbox", "Flow"])
|
223
|
+
if pdf_recognition_mode.to_i == 0
|
224
|
+
unless validator.valid?(pdf_recognition_mode)
|
225
|
+
raise ArgumentError, "invalid value for 'pdf_recognition_mode', must be one of #{validator.allowable_values}."
|
226
|
+
end
|
227
|
+
@pdf_recognition_mode = pdf_recognition_mode
|
228
|
+
else
|
229
|
+
@pdf_recognition_mode = validator.allowable_values[pdf_recognition_mode.to_i]
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
182
233
|
# Checks equality by comparing each attribute.
|
183
234
|
# @param [Object] Object to be compared
|
184
235
|
def ==(other)
|
@@ -192,7 +243,8 @@ module GroupDocsConversionCloud
|
|
192
243
|
dpi == other.dpi &&
|
193
244
|
password == other.password &&
|
194
245
|
zoom == other.zoom &&
|
195
|
-
watermark_options == other.watermark_options
|
246
|
+
watermark_options == other.watermark_options &&
|
247
|
+
pdf_recognition_mode == other.pdf_recognition_mode
|
196
248
|
end
|
197
249
|
|
198
250
|
# @see the `==` method
|
@@ -204,7 +256,7 @@ module GroupDocsConversionCloud
|
|
204
256
|
# Calculates hash code according to all attributes.
|
205
257
|
# @return [Fixnum] Hash code
|
206
258
|
def hash
|
207
|
-
[from_page, pages_count, pages, width, height, dpi, password, zoom, watermark_options].hash
|
259
|
+
[from_page, pages_count, pages, width, height, dpi, password, zoom, watermark_options, pdf_recognition_mode].hash
|
208
260
|
end
|
209
261
|
|
210
262
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="odt_load_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
|
@@ -31,6 +31,9 @@ module GroupDocsConversionCloud
|
|
31
31
|
# Odt load options
|
32
32
|
class OdtLoadOptions
|
33
33
|
|
34
|
+
# The format of input file, (\"docx\", for example). This field must be filled with correct input file format when using ConvertDirect method, which accept input file as binary stream, and, because of that, API can correctly handle LoadOptions. In regular conversion, the input file format taken from the input file name and this field ignored.
|
35
|
+
attr_accessor :format
|
36
|
+
|
34
37
|
# Default font for Words document. The following font will be used if a font is missing.
|
35
38
|
attr_accessor :default_font
|
36
39
|
|
@@ -61,6 +64,7 @@ module GroupDocsConversionCloud
|
|
61
64
|
# Attribute mapping from ruby-style variable name to JSON key.
|
62
65
|
def self.attribute_map
|
63
66
|
{
|
67
|
+
:'format' => :'Format',
|
64
68
|
:'default_font' => :'DefaultFont',
|
65
69
|
:'auto_font_substitution' => :'AutoFontSubstitution',
|
66
70
|
:'font_substitutes' => :'FontSubstitutes',
|
@@ -76,6 +80,7 @@ module GroupDocsConversionCloud
|
|
76
80
|
# Attribute type mapping.
|
77
81
|
def self.swagger_types
|
78
82
|
{
|
83
|
+
:'format' => :'String',
|
79
84
|
:'default_font' => :'String',
|
80
85
|
:'auto_font_substitution' => :'BOOLEAN',
|
81
86
|
:'font_substitutes' => :'Hash<String, String>',
|
@@ -96,6 +101,10 @@ module GroupDocsConversionCloud
|
|
96
101
|
# convert string to symbol for hash key
|
97
102
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
98
103
|
|
104
|
+
if attributes.key?(:'Format')
|
105
|
+
self.format = attributes[:'Format']
|
106
|
+
end
|
107
|
+
|
99
108
|
if attributes.key?(:'DefaultFont')
|
100
109
|
self.default_font = attributes[:'DefaultFont']
|
101
110
|
end
|
@@ -184,6 +193,7 @@ module GroupDocsConversionCloud
|
|
184
193
|
def ==(other)
|
185
194
|
return true if self.equal?(other)
|
186
195
|
self.class == other.class &&
|
196
|
+
format == other.format &&
|
187
197
|
default_font == other.default_font &&
|
188
198
|
auto_font_substitution == other.auto_font_substitution &&
|
189
199
|
font_substitutes == other.font_substitutes &&
|
@@ -204,7 +214,7 @@ module GroupDocsConversionCloud
|
|
204
214
|
# Calculates hash code according to all attributes.
|
205
215
|
# @return [Fixnum] Hash code
|
206
216
|
def hash
|
207
|
-
[default_font, auto_font_substitution, font_substitutes, password, hide_word_tracked_changes, hide_comments, bookmarks_outline_level, headings_outline_levels, expanded_outline_levels].hash
|
217
|
+
[format, default_font, auto_font_substitution, font_substitutes, password, hide_word_tracked_changes, hide_comments, bookmarks_outline_level, headings_outline_levels, expanded_outline_levels].hash
|
208
218
|
end
|
209
219
|
|
210
220
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="one_load_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
|
@@ -31,6 +31,9 @@ module GroupDocsConversionCloud
|
|
31
31
|
# One document load options
|
32
32
|
class OneLoadOptions
|
33
33
|
|
34
|
+
# The format of input file, (\"docx\", for example). This field must be filled with correct input file format when using ConvertDirect method, which accept input file as binary stream, and, because of that, API can correctly handle LoadOptions. In regular conversion, the input file format taken from the input file name and this field ignored.
|
35
|
+
attr_accessor :format
|
36
|
+
|
34
37
|
# Default font for Note document. The following font will be used if a font is missing.
|
35
38
|
attr_accessor :default_font
|
36
39
|
|
@@ -43,6 +46,7 @@ module GroupDocsConversionCloud
|
|
43
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
47
|
def self.attribute_map
|
45
48
|
{
|
49
|
+
:'format' => :'Format',
|
46
50
|
:'default_font' => :'DefaultFont',
|
47
51
|
:'font_substitutes' => :'FontSubstitutes',
|
48
52
|
:'password' => :'Password'
|
@@ -52,6 +56,7 @@ module GroupDocsConversionCloud
|
|
52
56
|
# Attribute type mapping.
|
53
57
|
def self.swagger_types
|
54
58
|
{
|
59
|
+
:'format' => :'String',
|
55
60
|
:'default_font' => :'String',
|
56
61
|
:'font_substitutes' => :'Hash<String, String>',
|
57
62
|
:'password' => :'String'
|
@@ -66,6 +71,10 @@ module GroupDocsConversionCloud
|
|
66
71
|
# convert string to symbol for hash key
|
67
72
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
68
73
|
|
74
|
+
if attributes.key?(:'Format')
|
75
|
+
self.format = attributes[:'Format']
|
76
|
+
end
|
77
|
+
|
69
78
|
if attributes.key?(:'DefaultFont')
|
70
79
|
self.default_font = attributes[:'DefaultFont']
|
71
80
|
end
|
@@ -100,6 +109,7 @@ module GroupDocsConversionCloud
|
|
100
109
|
def ==(other)
|
101
110
|
return true if self.equal?(other)
|
102
111
|
self.class == other.class &&
|
112
|
+
format == other.format &&
|
103
113
|
default_font == other.default_font &&
|
104
114
|
font_substitutes == other.font_substitutes &&
|
105
115
|
password == other.password
|
@@ -114,7 +124,7 @@ module GroupDocsConversionCloud
|
|
114
124
|
# Calculates hash code according to all attributes.
|
115
125
|
# @return [Fixnum] Hash code
|
116
126
|
def hash
|
117
|
-
[default_font, font_substitutes, password].hash
|
127
|
+
[format, default_font, font_substitutes, password].hash
|
118
128
|
end
|
119
129
|
|
120
130
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="ost_load_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
|
@@ -31,6 +31,9 @@ module GroupDocsConversionCloud
|
|
31
31
|
# Ost load options
|
32
32
|
class OstLoadOptions
|
33
33
|
|
34
|
+
# The format of input file, (\"docx\", for example). This field must be filled with correct input file format when using ConvertDirect method, which accept input file as binary stream, and, because of that, API can correctly handle LoadOptions. In regular conversion, the input file format taken from the input file name and this field ignored.
|
35
|
+
attr_accessor :format
|
36
|
+
|
34
37
|
# Option to display or hide the email header. Default: true
|
35
38
|
attr_accessor :display_header
|
36
39
|
|
@@ -64,6 +67,7 @@ module GroupDocsConversionCloud
|
|
64
67
|
# Attribute mapping from ruby-style variable name to JSON key.
|
65
68
|
def self.attribute_map
|
66
69
|
{
|
70
|
+
:'format' => :'Format',
|
67
71
|
:'display_header' => :'DisplayHeader',
|
68
72
|
:'display_from_email_address' => :'DisplayFromEmailAddress',
|
69
73
|
:'display_email_address' => :'DisplayEmailAddress',
|
@@ -80,6 +84,7 @@ module GroupDocsConversionCloud
|
|
80
84
|
# Attribute type mapping.
|
81
85
|
def self.swagger_types
|
82
86
|
{
|
87
|
+
:'format' => :'String',
|
83
88
|
:'display_header' => :'BOOLEAN',
|
84
89
|
:'display_from_email_address' => :'BOOLEAN',
|
85
90
|
:'display_email_address' => :'BOOLEAN',
|
@@ -101,6 +106,10 @@ module GroupDocsConversionCloud
|
|
101
106
|
# convert string to symbol for hash key
|
102
107
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
103
108
|
|
109
|
+
if attributes.key?(:'Format')
|
110
|
+
self.format = attributes[:'Format']
|
111
|
+
end
|
112
|
+
|
104
113
|
if attributes.key?(:'DisplayHeader')
|
105
114
|
self.display_header = attributes[:'DisplayHeader']
|
106
115
|
end
|
@@ -203,6 +212,7 @@ module GroupDocsConversionCloud
|
|
203
212
|
def ==(other)
|
204
213
|
return true if self.equal?(other)
|
205
214
|
self.class == other.class &&
|
215
|
+
format == other.format &&
|
206
216
|
display_header == other.display_header &&
|
207
217
|
display_from_email_address == other.display_from_email_address &&
|
208
218
|
display_email_address == other.display_email_address &&
|
@@ -224,7 +234,7 @@ module GroupDocsConversionCloud
|
|
224
234
|
# Calculates hash code according to all attributes.
|
225
235
|
# @return [Fixnum] Hash code
|
226
236
|
def hash
|
227
|
-
[display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments, field_labels, preserve_original_date].hash
|
237
|
+
[format, display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments, field_labels, preserve_original_date].hash
|
228
238
|
end
|
229
239
|
|
230
240
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="otp_convert_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
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="otp_load_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
|
@@ -31,6 +31,9 @@ module GroupDocsConversionCloud
|
|
31
31
|
# Otp load options
|
32
32
|
class OtpLoadOptions
|
33
33
|
|
34
|
+
# The format of input file, (\"docx\", for example). This field must be filled with correct input file format when using ConvertDirect method, which accept input file as binary stream, and, because of that, API can correctly handle LoadOptions. In regular conversion, the input file format taken from the input file name and this field ignored.
|
35
|
+
attr_accessor :format
|
36
|
+
|
34
37
|
# Default font for rendering the presentation. The following font will be used if a presentation font is missing.
|
35
38
|
attr_accessor :default_font
|
36
39
|
|
@@ -49,6 +52,7 @@ module GroupDocsConversionCloud
|
|
49
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
53
|
def self.attribute_map
|
51
54
|
{
|
55
|
+
:'format' => :'Format',
|
52
56
|
:'default_font' => :'DefaultFont',
|
53
57
|
:'font_substitutes' => :'FontSubstitutes',
|
54
58
|
:'password' => :'Password',
|
@@ -60,6 +64,7 @@ module GroupDocsConversionCloud
|
|
60
64
|
# Attribute type mapping.
|
61
65
|
def self.swagger_types
|
62
66
|
{
|
67
|
+
:'format' => :'String',
|
63
68
|
:'default_font' => :'String',
|
64
69
|
:'font_substitutes' => :'Hash<String, String>',
|
65
70
|
:'password' => :'String',
|
@@ -76,6 +81,10 @@ module GroupDocsConversionCloud
|
|
76
81
|
# convert string to symbol for hash key
|
77
82
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
78
83
|
|
84
|
+
if attributes.key?(:'Format')
|
85
|
+
self.format = attributes[:'Format']
|
86
|
+
end
|
87
|
+
|
79
88
|
if attributes.key?(:'DefaultFont')
|
80
89
|
self.default_font = attributes[:'DefaultFont']
|
81
90
|
end
|
@@ -128,6 +137,7 @@ module GroupDocsConversionCloud
|
|
128
137
|
def ==(other)
|
129
138
|
return true if self.equal?(other)
|
130
139
|
self.class == other.class &&
|
140
|
+
format == other.format &&
|
131
141
|
default_font == other.default_font &&
|
132
142
|
font_substitutes == other.font_substitutes &&
|
133
143
|
password == other.password &&
|
@@ -144,7 +154,7 @@ module GroupDocsConversionCloud
|
|
144
154
|
# Calculates hash code according to all attributes.
|
145
155
|
# @return [Fixnum] Hash code
|
146
156
|
def hash
|
147
|
-
[default_font, font_substitutes, password, hide_comments, show_hidden_slides].hash
|
157
|
+
[format, default_font, font_substitutes, password, hide_comments, show_hidden_slides].hash
|
148
158
|
end
|
149
159
|
|
150
160
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="ots_convert_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
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="ots_load_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
|
@@ -31,6 +31,9 @@ module GroupDocsConversionCloud
|
|
31
31
|
# Ots load options
|
32
32
|
class OtsLoadOptions
|
33
33
|
|
34
|
+
# The format of input file, (\"docx\", for example). This field must be filled with correct input file format when using ConvertDirect method, which accept input file as binary stream, and, because of that, API can correctly handle LoadOptions. In regular conversion, the input file format taken from the input file name and this field ignored.
|
35
|
+
attr_accessor :format
|
36
|
+
|
34
37
|
# Default font for Cells document. The following font will be used if a font is missing.
|
35
38
|
attr_accessor :default_font
|
36
39
|
|
@@ -61,6 +64,7 @@ module GroupDocsConversionCloud
|
|
61
64
|
# Attribute mapping from ruby-style variable name to JSON key.
|
62
65
|
def self.attribute_map
|
63
66
|
{
|
67
|
+
:'format' => :'Format',
|
64
68
|
:'default_font' => :'DefaultFont',
|
65
69
|
:'font_substitutes' => :'FontSubstitutes',
|
66
70
|
:'show_grid_lines' => :'ShowGridLines',
|
@@ -76,6 +80,7 @@ module GroupDocsConversionCloud
|
|
76
80
|
# Attribute type mapping.
|
77
81
|
def self.swagger_types
|
78
82
|
{
|
83
|
+
:'format' => :'String',
|
79
84
|
:'default_font' => :'String',
|
80
85
|
:'font_substitutes' => :'Hash<String, String>',
|
81
86
|
:'show_grid_lines' => :'BOOLEAN',
|
@@ -96,6 +101,10 @@ module GroupDocsConversionCloud
|
|
96
101
|
# convert string to symbol for hash key
|
97
102
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
98
103
|
|
104
|
+
if attributes.key?(:'Format')
|
105
|
+
self.format = attributes[:'Format']
|
106
|
+
end
|
107
|
+
|
99
108
|
if attributes.key?(:'DefaultFont')
|
100
109
|
self.default_font = attributes[:'DefaultFont']
|
101
110
|
end
|
@@ -179,6 +188,7 @@ module GroupDocsConversionCloud
|
|
179
188
|
def ==(other)
|
180
189
|
return true if self.equal?(other)
|
181
190
|
self.class == other.class &&
|
191
|
+
format == other.format &&
|
182
192
|
default_font == other.default_font &&
|
183
193
|
font_substitutes == other.font_substitutes &&
|
184
194
|
show_grid_lines == other.show_grid_lines &&
|
@@ -199,7 +209,7 @@ module GroupDocsConversionCloud
|
|
199
209
|
# Calculates hash code according to all attributes.
|
200
210
|
# @return [Fixnum] Hash code
|
201
211
|
def hash
|
202
|
-
[default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password, hide_comments].hash
|
212
|
+
[format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password, hide_comments].hash
|
203
213
|
end
|
204
214
|
|
205
215
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="ott_convert_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
|
@@ -58,6 +58,30 @@ module GroupDocsConversionCloud
|
|
58
58
|
# Watermark specific options
|
59
59
|
attr_accessor :watermark_options
|
60
60
|
|
61
|
+
# Recognition mode when converting from pdf
|
62
|
+
attr_accessor :pdf_recognition_mode
|
63
|
+
class EnumAttributeValidator
|
64
|
+
attr_reader :datatype
|
65
|
+
attr_reader :allowable_values
|
66
|
+
|
67
|
+
def initialize(datatype, allowable_values)
|
68
|
+
@allowable_values = allowable_values.map do |value|
|
69
|
+
case datatype.to_s
|
70
|
+
when /Integer/i
|
71
|
+
value.to_i
|
72
|
+
when /Float/i
|
73
|
+
value.to_f
|
74
|
+
else
|
75
|
+
value
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
def valid?(value)
|
81
|
+
!value || allowable_values.include?(value)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
61
85
|
# Attribute mapping from ruby-style variable name to JSON key.
|
62
86
|
def self.attribute_map
|
63
87
|
{
|
@@ -69,7 +93,8 @@ module GroupDocsConversionCloud
|
|
69
93
|
:'dpi' => :'Dpi',
|
70
94
|
:'password' => :'Password',
|
71
95
|
:'zoom' => :'Zoom',
|
72
|
-
:'watermark_options' => :'WatermarkOptions'
|
96
|
+
:'watermark_options' => :'WatermarkOptions',
|
97
|
+
:'pdf_recognition_mode' => :'PdfRecognitionMode'
|
73
98
|
}
|
74
99
|
end
|
75
100
|
|
@@ -84,7 +109,8 @@ module GroupDocsConversionCloud
|
|
84
109
|
:'dpi' => :'Float',
|
85
110
|
:'password' => :'String',
|
86
111
|
:'zoom' => :'Integer',
|
87
|
-
:'watermark_options' => :'WatermarkOptions'
|
112
|
+
:'watermark_options' => :'WatermarkOptions',
|
113
|
+
:'pdf_recognition_mode' => :'String'
|
88
114
|
}
|
89
115
|
end
|
90
116
|
|
@@ -134,6 +160,10 @@ module GroupDocsConversionCloud
|
|
134
160
|
self.watermark_options = attributes[:'WatermarkOptions']
|
135
161
|
end
|
136
162
|
|
163
|
+
if attributes.key?(:'PdfRecognitionMode')
|
164
|
+
self.pdf_recognition_mode = attributes[:'PdfRecognitionMode']
|
165
|
+
end
|
166
|
+
|
137
167
|
end
|
138
168
|
|
139
169
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -164,6 +194,10 @@ module GroupDocsConversionCloud
|
|
164
194
|
invalid_properties.push("invalid value for 'zoom', zoom cannot be nil.")
|
165
195
|
end
|
166
196
|
|
197
|
+
if @pdf_recognition_mode.nil?
|
198
|
+
invalid_properties.push("invalid value for 'pdf_recognition_mode', pdf_recognition_mode cannot be nil.")
|
199
|
+
end
|
200
|
+
|
167
201
|
return invalid_properties
|
168
202
|
end
|
169
203
|
|
@@ -176,9 +210,26 @@ module GroupDocsConversionCloud
|
|
176
210
|
return false if @height.nil?
|
177
211
|
return false if @dpi.nil?
|
178
212
|
return false if @zoom.nil?
|
213
|
+
return false if @pdf_recognition_mode.nil?
|
214
|
+
pdf_recognition_mode_validator = EnumAttributeValidator.new('String', ["Textbox", "Flow"])
|
215
|
+
return false unless pdf_recognition_mode_validator.valid?(@pdf_recognition_mode)
|
179
216
|
return true
|
180
217
|
end
|
181
218
|
|
219
|
+
# Custom attribute writer method checking allowed values (enum).
|
220
|
+
# @param [Object] pdf_recognition_mode Object to be assigned
|
221
|
+
def pdf_recognition_mode=(pdf_recognition_mode)
|
222
|
+
validator = EnumAttributeValidator.new('String', ["Textbox", "Flow"])
|
223
|
+
if pdf_recognition_mode.to_i == 0
|
224
|
+
unless validator.valid?(pdf_recognition_mode)
|
225
|
+
raise ArgumentError, "invalid value for 'pdf_recognition_mode', must be one of #{validator.allowable_values}."
|
226
|
+
end
|
227
|
+
@pdf_recognition_mode = pdf_recognition_mode
|
228
|
+
else
|
229
|
+
@pdf_recognition_mode = validator.allowable_values[pdf_recognition_mode.to_i]
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
182
233
|
# Checks equality by comparing each attribute.
|
183
234
|
# @param [Object] Object to be compared
|
184
235
|
def ==(other)
|
@@ -192,7 +243,8 @@ module GroupDocsConversionCloud
|
|
192
243
|
dpi == other.dpi &&
|
193
244
|
password == other.password &&
|
194
245
|
zoom == other.zoom &&
|
195
|
-
watermark_options == other.watermark_options
|
246
|
+
watermark_options == other.watermark_options &&
|
247
|
+
pdf_recognition_mode == other.pdf_recognition_mode
|
196
248
|
end
|
197
249
|
|
198
250
|
# @see the `==` method
|
@@ -204,7 +256,7 @@ module GroupDocsConversionCloud
|
|
204
256
|
# Calculates hash code according to all attributes.
|
205
257
|
# @return [Fixnum] Hash code
|
206
258
|
def hash
|
207
|
-
[from_page, pages_count, pages, width, height, dpi, password, zoom, watermark_options].hash
|
259
|
+
[from_page, pages_count, pages, width, height, dpi, password, zoom, watermark_options, pdf_recognition_mode].hash
|
208
260
|
end
|
209
261
|
|
210
262
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="ott_load_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
|
@@ -31,6 +31,9 @@ module GroupDocsConversionCloud
|
|
31
31
|
# Ott load options
|
32
32
|
class OttLoadOptions
|
33
33
|
|
34
|
+
# The format of input file, (\"docx\", for example). This field must be filled with correct input file format when using ConvertDirect method, which accept input file as binary stream, and, because of that, API can correctly handle LoadOptions. In regular conversion, the input file format taken from the input file name and this field ignored.
|
35
|
+
attr_accessor :format
|
36
|
+
|
34
37
|
# Default font for Words document. The following font will be used if a font is missing.
|
35
38
|
attr_accessor :default_font
|
36
39
|
|
@@ -61,6 +64,7 @@ module GroupDocsConversionCloud
|
|
61
64
|
# Attribute mapping from ruby-style variable name to JSON key.
|
62
65
|
def self.attribute_map
|
63
66
|
{
|
67
|
+
:'format' => :'Format',
|
64
68
|
:'default_font' => :'DefaultFont',
|
65
69
|
:'auto_font_substitution' => :'AutoFontSubstitution',
|
66
70
|
:'font_substitutes' => :'FontSubstitutes',
|
@@ -76,6 +80,7 @@ module GroupDocsConversionCloud
|
|
76
80
|
# Attribute type mapping.
|
77
81
|
def self.swagger_types
|
78
82
|
{
|
83
|
+
:'format' => :'String',
|
79
84
|
:'default_font' => :'String',
|
80
85
|
:'auto_font_substitution' => :'BOOLEAN',
|
81
86
|
:'font_substitutes' => :'Hash<String, String>',
|
@@ -96,6 +101,10 @@ module GroupDocsConversionCloud
|
|
96
101
|
# convert string to symbol for hash key
|
97
102
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
98
103
|
|
104
|
+
if attributes.key?(:'Format')
|
105
|
+
self.format = attributes[:'Format']
|
106
|
+
end
|
107
|
+
|
99
108
|
if attributes.key?(:'DefaultFont')
|
100
109
|
self.default_font = attributes[:'DefaultFont']
|
101
110
|
end
|
@@ -184,6 +193,7 @@ module GroupDocsConversionCloud
|
|
184
193
|
def ==(other)
|
185
194
|
return true if self.equal?(other)
|
186
195
|
self.class == other.class &&
|
196
|
+
format == other.format &&
|
187
197
|
default_font == other.default_font &&
|
188
198
|
auto_font_substitution == other.auto_font_substitution &&
|
189
199
|
font_substitutes == other.font_substitutes &&
|
@@ -204,7 +214,7 @@ module GroupDocsConversionCloud
|
|
204
214
|
# Calculates hash code according to all attributes.
|
205
215
|
# @return [Fixnum] Hash code
|
206
216
|
def hash
|
207
|
-
[default_font, auto_font_substitution, font_substitutes, password, hide_word_tracked_changes, hide_comments, bookmarks_outline_level, headings_outline_levels, expanded_outline_levels].hash
|
217
|
+
[format, default_font, auto_font_substitution, font_substitutes, password, hide_word_tracked_changes, hide_comments, bookmarks_outline_level, headings_outline_levels, expanded_outline_levels].hash
|
208
218
|
end
|
209
219
|
|
210
220
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="pdf_convert_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
|