groupdocs_conversion_cloud 22.3 → 23.2
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 +3 -3
- 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 +1 -1
- 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 +1 -1
- data/lib/groupdocs_conversion_cloud/models/cad_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/cgm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/consumption_result.rb +1 -1
- 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 +1 -1
- data/lib/groupdocs_conversion_cloud/models/dcm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dcm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dgn_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/diagram_load_options.rb +1 -1
- 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 +1 -1
- data/lib/groupdocs_conversion_cloud/models/doc_convert_options.rb +67 -5
- data/lib/groupdocs_conversion_cloud/models/doc_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/docm_convert_options.rb +67 -5
- data/lib/groupdocs_conversion_cloud/models/docm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/document_metadata.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/docx_convert_options.rb +67 -5
- data/lib/groupdocs_conversion_cloud/models/docx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dot_convert_options.rb +67 -5
- data/lib/groupdocs_conversion_cloud/models/dot_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dotm_convert_options.rb +67 -5
- data/lib/groupdocs_conversion_cloud/models/dotm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dotx_convert_options.rb +67 -5
- data/lib/groupdocs_conversion_cloud/models/dotx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dwf_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dwg_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dxf_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/email_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/emf_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/emf_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/eml_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/emlx_load_options.rb +1 -1
- 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 +1 -1
- data/lib/groupdocs_conversion_cloud/models/html_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/html_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ico_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ico_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ifc_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/igs_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/image_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/image_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/j2c_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/j2c_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/j2k_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/j2k_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jp2_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jp2_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jpeg_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jpeg_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jpf_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jpf_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jpg_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jpg_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jpm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jpm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jpx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jpx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/mht_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/mobi_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/msg_load_options.rb +1 -1
- 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 +1 -1
- data/lib/groupdocs_conversion_cloud/models/odp_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/odp_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ods_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ods_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/odt_convert_options.rb +67 -5
- data/lib/groupdocs_conversion_cloud/models/odt_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/one_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ost_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/otp_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/otp_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ots_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ots_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ott_convert_options.rb +67 -5
- data/lib/groupdocs_conversion_cloud/models/ott_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pdf_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pdf_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/personal_storage_load_options.rb +239 -0
- data/lib/groupdocs_conversion_cloud/models/plt_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/png_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/png_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/potm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/potm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/potx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/potx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pps_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pps_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ppsm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ppsm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ppsx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ppsx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ppt_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ppt_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pptm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pptm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pptx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pptx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/presentation_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/presentation_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/psd_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/psd_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pst_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/rtf_convert_options.rb +64 -2
- data/lib/groupdocs_conversion_cloud/models/spreadsheet_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/spreadsheet_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/stl_load_options.rb +1 -1
- 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 +1 -1
- data/lib/groupdocs_conversion_cloud/models/tiff_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/tiff_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/tsv_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/tsv_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/txt_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/txt_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vdw_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vdx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vsd_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vsdm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vsdx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vss_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vssm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vssx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vst_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vstm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vstx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vsx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vtx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/watermark_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/webp_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/webp_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/wmf_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/wmf_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/word_processing_convert_options.rb +67 -5
- data/lib/groupdocs_conversion_cloud/models/word_processing_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xls2003_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xls2003_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xls_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xls_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xlsb_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xlsb_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xlsm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xlsm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xlsx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xlsx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xltm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xltm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xltx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xltx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xml_load_options.rb +1 -1
- 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 +2 -1
- metadata +7 -6
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="docm_convert_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2023 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -60,6 +60,12 @@ module GroupDocsConversionCloud
|
|
60
60
|
|
61
61
|
# Recognition mode when converting from pdf
|
62
62
|
attr_accessor :pdf_recognition_mode
|
63
|
+
|
64
|
+
# Page size
|
65
|
+
attr_accessor :page_size
|
66
|
+
|
67
|
+
# Specifies page orientation
|
68
|
+
attr_accessor :page_orientation
|
63
69
|
class EnumAttributeValidator
|
64
70
|
attr_reader :datatype
|
65
71
|
attr_reader :allowable_values
|
@@ -94,7 +100,9 @@ module GroupDocsConversionCloud
|
|
94
100
|
:'password' => :'Password',
|
95
101
|
:'zoom' => :'Zoom',
|
96
102
|
:'watermark_options' => :'WatermarkOptions',
|
97
|
-
:'pdf_recognition_mode' => :'PdfRecognitionMode'
|
103
|
+
:'pdf_recognition_mode' => :'PdfRecognitionMode',
|
104
|
+
:'page_size' => :'PageSize',
|
105
|
+
:'page_orientation' => :'PageOrientation'
|
98
106
|
}
|
99
107
|
end
|
100
108
|
|
@@ -110,7 +118,9 @@ module GroupDocsConversionCloud
|
|
110
118
|
:'password' => :'String',
|
111
119
|
:'zoom' => :'Integer',
|
112
120
|
:'watermark_options' => :'WatermarkOptions',
|
113
|
-
:'pdf_recognition_mode' => :'String'
|
121
|
+
:'pdf_recognition_mode' => :'String',
|
122
|
+
:'page_size' => :'String',
|
123
|
+
:'page_orientation' => :'String'
|
114
124
|
}
|
115
125
|
end
|
116
126
|
|
@@ -164,6 +174,14 @@ module GroupDocsConversionCloud
|
|
164
174
|
self.pdf_recognition_mode = attributes[:'PdfRecognitionMode']
|
165
175
|
end
|
166
176
|
|
177
|
+
if attributes.key?(:'PageSize')
|
178
|
+
self.page_size = attributes[:'PageSize']
|
179
|
+
end
|
180
|
+
|
181
|
+
if attributes.key?(:'PageOrientation')
|
182
|
+
self.page_orientation = attributes[:'PageOrientation']
|
183
|
+
end
|
184
|
+
|
167
185
|
end
|
168
186
|
|
169
187
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -198,6 +216,14 @@ module GroupDocsConversionCloud
|
|
198
216
|
invalid_properties.push("invalid value for 'pdf_recognition_mode', pdf_recognition_mode cannot be nil.")
|
199
217
|
end
|
200
218
|
|
219
|
+
if @page_size.nil?
|
220
|
+
invalid_properties.push("invalid value for 'page_size', page_size cannot be nil.")
|
221
|
+
end
|
222
|
+
|
223
|
+
if @page_orientation.nil?
|
224
|
+
invalid_properties.push("invalid value for 'page_orientation', page_orientation cannot be nil.")
|
225
|
+
end
|
226
|
+
|
201
227
|
return invalid_properties
|
202
228
|
end
|
203
229
|
|
@@ -213,6 +239,12 @@ module GroupDocsConversionCloud
|
|
213
239
|
return false if @pdf_recognition_mode.nil?
|
214
240
|
pdf_recognition_mode_validator = EnumAttributeValidator.new('String', ["Textbox", "Flow"])
|
215
241
|
return false unless pdf_recognition_mode_validator.valid?(@pdf_recognition_mode)
|
242
|
+
return false if @page_size.nil?
|
243
|
+
page_size_validator = EnumAttributeValidator.new('String', ["Default", "A3", "Statement", "Quarto", "Paper11x17", "Paper10x14", "Letter", "Legal", "Ledger", "Folio", "Executive", "EnvelopeDL", "Custom", "B5", "B4", "A5", "A4", "Tabloid"])
|
244
|
+
return false unless page_size_validator.valid?(@page_size)
|
245
|
+
return false if @page_orientation.nil?
|
246
|
+
page_orientation_validator = EnumAttributeValidator.new('String', ["Default", "Landscape", "Portrait"])
|
247
|
+
return false unless page_orientation_validator.valid?(@page_orientation)
|
216
248
|
return true
|
217
249
|
end
|
218
250
|
|
@@ -230,6 +262,34 @@ module GroupDocsConversionCloud
|
|
230
262
|
end
|
231
263
|
end
|
232
264
|
|
265
|
+
# Custom attribute writer method checking allowed values (enum).
|
266
|
+
# @param [Object] page_size Object to be assigned
|
267
|
+
def page_size=(page_size)
|
268
|
+
validator = EnumAttributeValidator.new('String', ["Default", "A3", "Statement", "Quarto", "Paper11x17", "Paper10x14", "Letter", "Legal", "Ledger", "Folio", "Executive", "EnvelopeDL", "Custom", "B5", "B4", "A5", "A4", "Tabloid"])
|
269
|
+
if page_size.to_i == 0
|
270
|
+
unless validator.valid?(page_size)
|
271
|
+
raise ArgumentError, "invalid value for 'page_size', must be one of #{validator.allowable_values}."
|
272
|
+
end
|
273
|
+
@page_size = page_size
|
274
|
+
else
|
275
|
+
@page_size = validator.allowable_values[page_size.to_i]
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
# Custom attribute writer method checking allowed values (enum).
|
280
|
+
# @param [Object] page_orientation Object to be assigned
|
281
|
+
def page_orientation=(page_orientation)
|
282
|
+
validator = EnumAttributeValidator.new('String', ["Default", "Landscape", "Portrait"])
|
283
|
+
if page_orientation.to_i == 0
|
284
|
+
unless validator.valid?(page_orientation)
|
285
|
+
raise ArgumentError, "invalid value for 'page_orientation', must be one of #{validator.allowable_values}."
|
286
|
+
end
|
287
|
+
@page_orientation = page_orientation
|
288
|
+
else
|
289
|
+
@page_orientation = validator.allowable_values[page_orientation.to_i]
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
233
293
|
# Checks equality by comparing each attribute.
|
234
294
|
# @param [Object] Object to be compared
|
235
295
|
def ==(other)
|
@@ -244,7 +304,9 @@ module GroupDocsConversionCloud
|
|
244
304
|
password == other.password &&
|
245
305
|
zoom == other.zoom &&
|
246
306
|
watermark_options == other.watermark_options &&
|
247
|
-
pdf_recognition_mode == other.pdf_recognition_mode
|
307
|
+
pdf_recognition_mode == other.pdf_recognition_mode &&
|
308
|
+
page_size == other.page_size &&
|
309
|
+
page_orientation == other.page_orientation
|
248
310
|
end
|
249
311
|
|
250
312
|
# @see the `==` method
|
@@ -256,7 +318,7 @@ module GroupDocsConversionCloud
|
|
256
318
|
# Calculates hash code according to all attributes.
|
257
319
|
# @return [Fixnum] Hash code
|
258
320
|
def hash
|
259
|
-
[from_page, pages_count, pages, width, height, dpi, password, zoom, watermark_options, pdf_recognition_mode].hash
|
321
|
+
[from_page, pages_count, pages, width, height, dpi, password, zoom, watermark_options, pdf_recognition_mode, page_size, page_orientation].hash
|
260
322
|
end
|
261
323
|
|
262
324
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="docm_load_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2023 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="document_metadata.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2023 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="docx_convert_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2023 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -60,6 +60,12 @@ module GroupDocsConversionCloud
|
|
60
60
|
|
61
61
|
# Recognition mode when converting from pdf
|
62
62
|
attr_accessor :pdf_recognition_mode
|
63
|
+
|
64
|
+
# Page size
|
65
|
+
attr_accessor :page_size
|
66
|
+
|
67
|
+
# Specifies page orientation
|
68
|
+
attr_accessor :page_orientation
|
63
69
|
class EnumAttributeValidator
|
64
70
|
attr_reader :datatype
|
65
71
|
attr_reader :allowable_values
|
@@ -94,7 +100,9 @@ module GroupDocsConversionCloud
|
|
94
100
|
:'password' => :'Password',
|
95
101
|
:'zoom' => :'Zoom',
|
96
102
|
:'watermark_options' => :'WatermarkOptions',
|
97
|
-
:'pdf_recognition_mode' => :'PdfRecognitionMode'
|
103
|
+
:'pdf_recognition_mode' => :'PdfRecognitionMode',
|
104
|
+
:'page_size' => :'PageSize',
|
105
|
+
:'page_orientation' => :'PageOrientation'
|
98
106
|
}
|
99
107
|
end
|
100
108
|
|
@@ -110,7 +118,9 @@ module GroupDocsConversionCloud
|
|
110
118
|
:'password' => :'String',
|
111
119
|
:'zoom' => :'Integer',
|
112
120
|
:'watermark_options' => :'WatermarkOptions',
|
113
|
-
:'pdf_recognition_mode' => :'String'
|
121
|
+
:'pdf_recognition_mode' => :'String',
|
122
|
+
:'page_size' => :'String',
|
123
|
+
:'page_orientation' => :'String'
|
114
124
|
}
|
115
125
|
end
|
116
126
|
|
@@ -164,6 +174,14 @@ module GroupDocsConversionCloud
|
|
164
174
|
self.pdf_recognition_mode = attributes[:'PdfRecognitionMode']
|
165
175
|
end
|
166
176
|
|
177
|
+
if attributes.key?(:'PageSize')
|
178
|
+
self.page_size = attributes[:'PageSize']
|
179
|
+
end
|
180
|
+
|
181
|
+
if attributes.key?(:'PageOrientation')
|
182
|
+
self.page_orientation = attributes[:'PageOrientation']
|
183
|
+
end
|
184
|
+
|
167
185
|
end
|
168
186
|
|
169
187
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -198,6 +216,14 @@ module GroupDocsConversionCloud
|
|
198
216
|
invalid_properties.push("invalid value for 'pdf_recognition_mode', pdf_recognition_mode cannot be nil.")
|
199
217
|
end
|
200
218
|
|
219
|
+
if @page_size.nil?
|
220
|
+
invalid_properties.push("invalid value for 'page_size', page_size cannot be nil.")
|
221
|
+
end
|
222
|
+
|
223
|
+
if @page_orientation.nil?
|
224
|
+
invalid_properties.push("invalid value for 'page_orientation', page_orientation cannot be nil.")
|
225
|
+
end
|
226
|
+
|
201
227
|
return invalid_properties
|
202
228
|
end
|
203
229
|
|
@@ -213,6 +239,12 @@ module GroupDocsConversionCloud
|
|
213
239
|
return false if @pdf_recognition_mode.nil?
|
214
240
|
pdf_recognition_mode_validator = EnumAttributeValidator.new('String', ["Textbox", "Flow"])
|
215
241
|
return false unless pdf_recognition_mode_validator.valid?(@pdf_recognition_mode)
|
242
|
+
return false if @page_size.nil?
|
243
|
+
page_size_validator = EnumAttributeValidator.new('String', ["Default", "A3", "Statement", "Quarto", "Paper11x17", "Paper10x14", "Letter", "Legal", "Ledger", "Folio", "Executive", "EnvelopeDL", "Custom", "B5", "B4", "A5", "A4", "Tabloid"])
|
244
|
+
return false unless page_size_validator.valid?(@page_size)
|
245
|
+
return false if @page_orientation.nil?
|
246
|
+
page_orientation_validator = EnumAttributeValidator.new('String', ["Default", "Landscape", "Portrait"])
|
247
|
+
return false unless page_orientation_validator.valid?(@page_orientation)
|
216
248
|
return true
|
217
249
|
end
|
218
250
|
|
@@ -230,6 +262,34 @@ module GroupDocsConversionCloud
|
|
230
262
|
end
|
231
263
|
end
|
232
264
|
|
265
|
+
# Custom attribute writer method checking allowed values (enum).
|
266
|
+
# @param [Object] page_size Object to be assigned
|
267
|
+
def page_size=(page_size)
|
268
|
+
validator = EnumAttributeValidator.new('String', ["Default", "A3", "Statement", "Quarto", "Paper11x17", "Paper10x14", "Letter", "Legal", "Ledger", "Folio", "Executive", "EnvelopeDL", "Custom", "B5", "B4", "A5", "A4", "Tabloid"])
|
269
|
+
if page_size.to_i == 0
|
270
|
+
unless validator.valid?(page_size)
|
271
|
+
raise ArgumentError, "invalid value for 'page_size', must be one of #{validator.allowable_values}."
|
272
|
+
end
|
273
|
+
@page_size = page_size
|
274
|
+
else
|
275
|
+
@page_size = validator.allowable_values[page_size.to_i]
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
# Custom attribute writer method checking allowed values (enum).
|
280
|
+
# @param [Object] page_orientation Object to be assigned
|
281
|
+
def page_orientation=(page_orientation)
|
282
|
+
validator = EnumAttributeValidator.new('String', ["Default", "Landscape", "Portrait"])
|
283
|
+
if page_orientation.to_i == 0
|
284
|
+
unless validator.valid?(page_orientation)
|
285
|
+
raise ArgumentError, "invalid value for 'page_orientation', must be one of #{validator.allowable_values}."
|
286
|
+
end
|
287
|
+
@page_orientation = page_orientation
|
288
|
+
else
|
289
|
+
@page_orientation = validator.allowable_values[page_orientation.to_i]
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
233
293
|
# Checks equality by comparing each attribute.
|
234
294
|
# @param [Object] Object to be compared
|
235
295
|
def ==(other)
|
@@ -244,7 +304,9 @@ module GroupDocsConversionCloud
|
|
244
304
|
password == other.password &&
|
245
305
|
zoom == other.zoom &&
|
246
306
|
watermark_options == other.watermark_options &&
|
247
|
-
pdf_recognition_mode == other.pdf_recognition_mode
|
307
|
+
pdf_recognition_mode == other.pdf_recognition_mode &&
|
308
|
+
page_size == other.page_size &&
|
309
|
+
page_orientation == other.page_orientation
|
248
310
|
end
|
249
311
|
|
250
312
|
# @see the `==` method
|
@@ -256,7 +318,7 @@ module GroupDocsConversionCloud
|
|
256
318
|
# Calculates hash code according to all attributes.
|
257
319
|
# @return [Fixnum] Hash code
|
258
320
|
def hash
|
259
|
-
[from_page, pages_count, pages, width, height, dpi, password, zoom, watermark_options, pdf_recognition_mode].hash
|
321
|
+
[from_page, pages_count, pages, width, height, dpi, password, zoom, watermark_options, pdf_recognition_mode, page_size, page_orientation].hash
|
260
322
|
end
|
261
323
|
|
262
324
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="docx_load_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2023 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="dot_convert_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2023 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -60,6 +60,12 @@ module GroupDocsConversionCloud
|
|
60
60
|
|
61
61
|
# Recognition mode when converting from pdf
|
62
62
|
attr_accessor :pdf_recognition_mode
|
63
|
+
|
64
|
+
# Page size
|
65
|
+
attr_accessor :page_size
|
66
|
+
|
67
|
+
# Specifies page orientation
|
68
|
+
attr_accessor :page_orientation
|
63
69
|
class EnumAttributeValidator
|
64
70
|
attr_reader :datatype
|
65
71
|
attr_reader :allowable_values
|
@@ -94,7 +100,9 @@ module GroupDocsConversionCloud
|
|
94
100
|
:'password' => :'Password',
|
95
101
|
:'zoom' => :'Zoom',
|
96
102
|
:'watermark_options' => :'WatermarkOptions',
|
97
|
-
:'pdf_recognition_mode' => :'PdfRecognitionMode'
|
103
|
+
:'pdf_recognition_mode' => :'PdfRecognitionMode',
|
104
|
+
:'page_size' => :'PageSize',
|
105
|
+
:'page_orientation' => :'PageOrientation'
|
98
106
|
}
|
99
107
|
end
|
100
108
|
|
@@ -110,7 +118,9 @@ module GroupDocsConversionCloud
|
|
110
118
|
:'password' => :'String',
|
111
119
|
:'zoom' => :'Integer',
|
112
120
|
:'watermark_options' => :'WatermarkOptions',
|
113
|
-
:'pdf_recognition_mode' => :'String'
|
121
|
+
:'pdf_recognition_mode' => :'String',
|
122
|
+
:'page_size' => :'String',
|
123
|
+
:'page_orientation' => :'String'
|
114
124
|
}
|
115
125
|
end
|
116
126
|
|
@@ -164,6 +174,14 @@ module GroupDocsConversionCloud
|
|
164
174
|
self.pdf_recognition_mode = attributes[:'PdfRecognitionMode']
|
165
175
|
end
|
166
176
|
|
177
|
+
if attributes.key?(:'PageSize')
|
178
|
+
self.page_size = attributes[:'PageSize']
|
179
|
+
end
|
180
|
+
|
181
|
+
if attributes.key?(:'PageOrientation')
|
182
|
+
self.page_orientation = attributes[:'PageOrientation']
|
183
|
+
end
|
184
|
+
|
167
185
|
end
|
168
186
|
|
169
187
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -198,6 +216,14 @@ module GroupDocsConversionCloud
|
|
198
216
|
invalid_properties.push("invalid value for 'pdf_recognition_mode', pdf_recognition_mode cannot be nil.")
|
199
217
|
end
|
200
218
|
|
219
|
+
if @page_size.nil?
|
220
|
+
invalid_properties.push("invalid value for 'page_size', page_size cannot be nil.")
|
221
|
+
end
|
222
|
+
|
223
|
+
if @page_orientation.nil?
|
224
|
+
invalid_properties.push("invalid value for 'page_orientation', page_orientation cannot be nil.")
|
225
|
+
end
|
226
|
+
|
201
227
|
return invalid_properties
|
202
228
|
end
|
203
229
|
|
@@ -213,6 +239,12 @@ module GroupDocsConversionCloud
|
|
213
239
|
return false if @pdf_recognition_mode.nil?
|
214
240
|
pdf_recognition_mode_validator = EnumAttributeValidator.new('String', ["Textbox", "Flow"])
|
215
241
|
return false unless pdf_recognition_mode_validator.valid?(@pdf_recognition_mode)
|
242
|
+
return false if @page_size.nil?
|
243
|
+
page_size_validator = EnumAttributeValidator.new('String', ["Default", "A3", "Statement", "Quarto", "Paper11x17", "Paper10x14", "Letter", "Legal", "Ledger", "Folio", "Executive", "EnvelopeDL", "Custom", "B5", "B4", "A5", "A4", "Tabloid"])
|
244
|
+
return false unless page_size_validator.valid?(@page_size)
|
245
|
+
return false if @page_orientation.nil?
|
246
|
+
page_orientation_validator = EnumAttributeValidator.new('String', ["Default", "Landscape", "Portrait"])
|
247
|
+
return false unless page_orientation_validator.valid?(@page_orientation)
|
216
248
|
return true
|
217
249
|
end
|
218
250
|
|
@@ -230,6 +262,34 @@ module GroupDocsConversionCloud
|
|
230
262
|
end
|
231
263
|
end
|
232
264
|
|
265
|
+
# Custom attribute writer method checking allowed values (enum).
|
266
|
+
# @param [Object] page_size Object to be assigned
|
267
|
+
def page_size=(page_size)
|
268
|
+
validator = EnumAttributeValidator.new('String', ["Default", "A3", "Statement", "Quarto", "Paper11x17", "Paper10x14", "Letter", "Legal", "Ledger", "Folio", "Executive", "EnvelopeDL", "Custom", "B5", "B4", "A5", "A4", "Tabloid"])
|
269
|
+
if page_size.to_i == 0
|
270
|
+
unless validator.valid?(page_size)
|
271
|
+
raise ArgumentError, "invalid value for 'page_size', must be one of #{validator.allowable_values}."
|
272
|
+
end
|
273
|
+
@page_size = page_size
|
274
|
+
else
|
275
|
+
@page_size = validator.allowable_values[page_size.to_i]
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
# Custom attribute writer method checking allowed values (enum).
|
280
|
+
# @param [Object] page_orientation Object to be assigned
|
281
|
+
def page_orientation=(page_orientation)
|
282
|
+
validator = EnumAttributeValidator.new('String', ["Default", "Landscape", "Portrait"])
|
283
|
+
if page_orientation.to_i == 0
|
284
|
+
unless validator.valid?(page_orientation)
|
285
|
+
raise ArgumentError, "invalid value for 'page_orientation', must be one of #{validator.allowable_values}."
|
286
|
+
end
|
287
|
+
@page_orientation = page_orientation
|
288
|
+
else
|
289
|
+
@page_orientation = validator.allowable_values[page_orientation.to_i]
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
233
293
|
# Checks equality by comparing each attribute.
|
234
294
|
# @param [Object] Object to be compared
|
235
295
|
def ==(other)
|
@@ -244,7 +304,9 @@ module GroupDocsConversionCloud
|
|
244
304
|
password == other.password &&
|
245
305
|
zoom == other.zoom &&
|
246
306
|
watermark_options == other.watermark_options &&
|
247
|
-
pdf_recognition_mode == other.pdf_recognition_mode
|
307
|
+
pdf_recognition_mode == other.pdf_recognition_mode &&
|
308
|
+
page_size == other.page_size &&
|
309
|
+
page_orientation == other.page_orientation
|
248
310
|
end
|
249
311
|
|
250
312
|
# @see the `==` method
|
@@ -256,7 +318,7 @@ module GroupDocsConversionCloud
|
|
256
318
|
# Calculates hash code according to all attributes.
|
257
319
|
# @return [Fixnum] Hash code
|
258
320
|
def hash
|
259
|
-
[from_page, pages_count, pages, width, height, dpi, password, zoom, watermark_options, pdf_recognition_mode].hash
|
321
|
+
[from_page, pages_count, pages, width, height, dpi, password, zoom, watermark_options, pdf_recognition_mode, page_size, page_orientation].hash
|
260
322
|
end
|
261
323
|
|
262
324
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="dot_load_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2023 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="dotm_convert_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2023 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -60,6 +60,12 @@ module GroupDocsConversionCloud
|
|
60
60
|
|
61
61
|
# Recognition mode when converting from pdf
|
62
62
|
attr_accessor :pdf_recognition_mode
|
63
|
+
|
64
|
+
# Page size
|
65
|
+
attr_accessor :page_size
|
66
|
+
|
67
|
+
# Specifies page orientation
|
68
|
+
attr_accessor :page_orientation
|
63
69
|
class EnumAttributeValidator
|
64
70
|
attr_reader :datatype
|
65
71
|
attr_reader :allowable_values
|
@@ -94,7 +100,9 @@ module GroupDocsConversionCloud
|
|
94
100
|
:'password' => :'Password',
|
95
101
|
:'zoom' => :'Zoom',
|
96
102
|
:'watermark_options' => :'WatermarkOptions',
|
97
|
-
:'pdf_recognition_mode' => :'PdfRecognitionMode'
|
103
|
+
:'pdf_recognition_mode' => :'PdfRecognitionMode',
|
104
|
+
:'page_size' => :'PageSize',
|
105
|
+
:'page_orientation' => :'PageOrientation'
|
98
106
|
}
|
99
107
|
end
|
100
108
|
|
@@ -110,7 +118,9 @@ module GroupDocsConversionCloud
|
|
110
118
|
:'password' => :'String',
|
111
119
|
:'zoom' => :'Integer',
|
112
120
|
:'watermark_options' => :'WatermarkOptions',
|
113
|
-
:'pdf_recognition_mode' => :'String'
|
121
|
+
:'pdf_recognition_mode' => :'String',
|
122
|
+
:'page_size' => :'String',
|
123
|
+
:'page_orientation' => :'String'
|
114
124
|
}
|
115
125
|
end
|
116
126
|
|
@@ -164,6 +174,14 @@ module GroupDocsConversionCloud
|
|
164
174
|
self.pdf_recognition_mode = attributes[:'PdfRecognitionMode']
|
165
175
|
end
|
166
176
|
|
177
|
+
if attributes.key?(:'PageSize')
|
178
|
+
self.page_size = attributes[:'PageSize']
|
179
|
+
end
|
180
|
+
|
181
|
+
if attributes.key?(:'PageOrientation')
|
182
|
+
self.page_orientation = attributes[:'PageOrientation']
|
183
|
+
end
|
184
|
+
|
167
185
|
end
|
168
186
|
|
169
187
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -198,6 +216,14 @@ module GroupDocsConversionCloud
|
|
198
216
|
invalid_properties.push("invalid value for 'pdf_recognition_mode', pdf_recognition_mode cannot be nil.")
|
199
217
|
end
|
200
218
|
|
219
|
+
if @page_size.nil?
|
220
|
+
invalid_properties.push("invalid value for 'page_size', page_size cannot be nil.")
|
221
|
+
end
|
222
|
+
|
223
|
+
if @page_orientation.nil?
|
224
|
+
invalid_properties.push("invalid value for 'page_orientation', page_orientation cannot be nil.")
|
225
|
+
end
|
226
|
+
|
201
227
|
return invalid_properties
|
202
228
|
end
|
203
229
|
|
@@ -213,6 +239,12 @@ module GroupDocsConversionCloud
|
|
213
239
|
return false if @pdf_recognition_mode.nil?
|
214
240
|
pdf_recognition_mode_validator = EnumAttributeValidator.new('String', ["Textbox", "Flow"])
|
215
241
|
return false unless pdf_recognition_mode_validator.valid?(@pdf_recognition_mode)
|
242
|
+
return false if @page_size.nil?
|
243
|
+
page_size_validator = EnumAttributeValidator.new('String', ["Default", "A3", "Statement", "Quarto", "Paper11x17", "Paper10x14", "Letter", "Legal", "Ledger", "Folio", "Executive", "EnvelopeDL", "Custom", "B5", "B4", "A5", "A4", "Tabloid"])
|
244
|
+
return false unless page_size_validator.valid?(@page_size)
|
245
|
+
return false if @page_orientation.nil?
|
246
|
+
page_orientation_validator = EnumAttributeValidator.new('String', ["Default", "Landscape", "Portrait"])
|
247
|
+
return false unless page_orientation_validator.valid?(@page_orientation)
|
216
248
|
return true
|
217
249
|
end
|
218
250
|
|
@@ -230,6 +262,34 @@ module GroupDocsConversionCloud
|
|
230
262
|
end
|
231
263
|
end
|
232
264
|
|
265
|
+
# Custom attribute writer method checking allowed values (enum).
|
266
|
+
# @param [Object] page_size Object to be assigned
|
267
|
+
def page_size=(page_size)
|
268
|
+
validator = EnumAttributeValidator.new('String', ["Default", "A3", "Statement", "Quarto", "Paper11x17", "Paper10x14", "Letter", "Legal", "Ledger", "Folio", "Executive", "EnvelopeDL", "Custom", "B5", "B4", "A5", "A4", "Tabloid"])
|
269
|
+
if page_size.to_i == 0
|
270
|
+
unless validator.valid?(page_size)
|
271
|
+
raise ArgumentError, "invalid value for 'page_size', must be one of #{validator.allowable_values}."
|
272
|
+
end
|
273
|
+
@page_size = page_size
|
274
|
+
else
|
275
|
+
@page_size = validator.allowable_values[page_size.to_i]
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
# Custom attribute writer method checking allowed values (enum).
|
280
|
+
# @param [Object] page_orientation Object to be assigned
|
281
|
+
def page_orientation=(page_orientation)
|
282
|
+
validator = EnumAttributeValidator.new('String', ["Default", "Landscape", "Portrait"])
|
283
|
+
if page_orientation.to_i == 0
|
284
|
+
unless validator.valid?(page_orientation)
|
285
|
+
raise ArgumentError, "invalid value for 'page_orientation', must be one of #{validator.allowable_values}."
|
286
|
+
end
|
287
|
+
@page_orientation = page_orientation
|
288
|
+
else
|
289
|
+
@page_orientation = validator.allowable_values[page_orientation.to_i]
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
233
293
|
# Checks equality by comparing each attribute.
|
234
294
|
# @param [Object] Object to be compared
|
235
295
|
def ==(other)
|
@@ -244,7 +304,9 @@ module GroupDocsConversionCloud
|
|
244
304
|
password == other.password &&
|
245
305
|
zoom == other.zoom &&
|
246
306
|
watermark_options == other.watermark_options &&
|
247
|
-
pdf_recognition_mode == other.pdf_recognition_mode
|
307
|
+
pdf_recognition_mode == other.pdf_recognition_mode &&
|
308
|
+
page_size == other.page_size &&
|
309
|
+
page_orientation == other.page_orientation
|
248
310
|
end
|
249
311
|
|
250
312
|
# @see the `==` method
|
@@ -256,7 +318,7 @@ module GroupDocsConversionCloud
|
|
256
318
|
# Calculates hash code according to all attributes.
|
257
319
|
# @return [Fixnum] Hash code
|
258
320
|
def hash
|
259
|
-
[from_page, pages_count, pages, width, height, dpi, password, zoom, watermark_options, pdf_recognition_mode].hash
|
321
|
+
[from_page, pages_count, pages, width, height, dpi, password, zoom, watermark_options, pdf_recognition_mode, page_size, page_orientation].hash
|
260
322
|
end
|
261
323
|
|
262
324
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="dotm_load_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2023 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|