groupdocs_conversion_cloud 20.3 → 21.9
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 +126 -2
- 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/storage_api.rb +5 -5
- data/lib/groupdocs_conversion_cloud/api_client.rb +1 -1
- data/lib/groupdocs_conversion_cloud/api_error.rb +18 -5
- 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/convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/convert_settings.rb +15 -5
- 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 +1 -1
- data/lib/groupdocs_conversion_cloud/models/doc_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/docm_convert_options.rb +1 -1
- 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 +1 -1
- data/lib/groupdocs_conversion_cloud/models/docx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dot_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dot_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dotm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dotm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dotx_convert_options.rb +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/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 +1 -1
- 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 +32 -2
- 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 +1 -1
- 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 +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ee2e3918b60f653905688319f5fd3733c14256d
|
4
|
+
data.tar.gz: 32824c1cc5393f1f301d3bd6fe2ace0feb8b1ffa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a464eac38085bacdd3073fbd916a8ccba9475ecf47989af0477dd43f94f52eabeb11afb50f7ee0047b42f38e90bf166312ecc432c8ffe7f4b1de10bdddfc9cbc
|
7
|
+
data.tar.gz: bc0052f688054717577b0965c0c1405edb686ca292bc36f8ed3f4359409eeca76b0696868859a7772758860a3556a66ab179d0bc034310181a4b9967cd8dfad1
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="convert.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -117,6 +117,73 @@ module GroupDocsConversionCloud
|
|
117
117
|
end
|
118
118
|
|
119
119
|
|
120
|
+
# Converts input document file to format specified
|
121
|
+
#
|
122
|
+
# @param request convert_document_direct_request
|
123
|
+
# @return [File]
|
124
|
+
def convert_document_direct(request)
|
125
|
+
data, _status_code, _headers = convert_document_direct_with_http_info(request)
|
126
|
+
data
|
127
|
+
end
|
128
|
+
|
129
|
+
# Converts input document file to format specified
|
130
|
+
#
|
131
|
+
# @param request convert_document_direct_request
|
132
|
+
# @return [Array<(File, Fixnum, Hash)>]
|
133
|
+
# File data, response status code and response headers
|
134
|
+
def convert_document_direct_with_http_info(request)
|
135
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? ConvertDocumentDirectRequest
|
136
|
+
|
137
|
+
@api_client.config.logger.debug 'Calling API: ConvertApi.convert_document_direct ...' if @api_client.config.debugging
|
138
|
+
# verify the required parameter 'format' is set
|
139
|
+
raise ArgumentError, 'Missing the required parameter format when calling ConvertApi.convert_document_direct' if @api_client.config.client_side_validation && request.format.nil?
|
140
|
+
# verify the required parameter 'file' is set
|
141
|
+
raise ArgumentError, 'Missing the required parameter file when calling ConvertApi.convert_document_direct' if @api_client.config.client_side_validation && request.file.nil?
|
142
|
+
# resource path
|
143
|
+
local_var_path = '/conversion'
|
144
|
+
|
145
|
+
# query parameters
|
146
|
+
query_params = {}
|
147
|
+
query_params[downcase_first_letter('format')] = request.format
|
148
|
+
|
149
|
+
if local_var_path.include? ('{' + downcase_first_letter('fromPage') + '}')
|
150
|
+
local_var_path = local_var_path.sub('{' + downcase_first_letter('fromPage') + '}', request.from_page.to_s)
|
151
|
+
else
|
152
|
+
query_params[downcase_first_letter('fromPage')] = request.from_page unless request.from_page.nil?
|
153
|
+
end
|
154
|
+
if local_var_path.include? ('{' + downcase_first_letter('pagesCount') + '}')
|
155
|
+
local_var_path = local_var_path.sub('{' + downcase_first_letter('pagesCount') + '}', request.pages_count.to_s)
|
156
|
+
else
|
157
|
+
query_params[downcase_first_letter('pagesCount')] = request.pages_count unless request.pages_count.nil?
|
158
|
+
end
|
159
|
+
|
160
|
+
# header parameters
|
161
|
+
header_params = {}
|
162
|
+
# HTTP header 'Accept' (if needed)
|
163
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
164
|
+
# HTTP header 'Content-Type'
|
165
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
166
|
+
|
167
|
+
# form parameters
|
168
|
+
form_params = {}
|
169
|
+
form_params[downcase_first_letter('File')] = request.file
|
170
|
+
|
171
|
+
# http body (model)
|
172
|
+
post_body = nil
|
173
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
174
|
+
header_params: header_params,
|
175
|
+
query_params: query_params,
|
176
|
+
form_params: form_params,
|
177
|
+
body: post_body,
|
178
|
+
access_token: get_access_token,
|
179
|
+
return_type: 'File')
|
180
|
+
if @api_client.config.debugging
|
181
|
+
@api_client.config.logger.debug "API called:
|
182
|
+
ConvertApi#convert_document_direct\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
183
|
+
end
|
184
|
+
[data, status_code, headers]
|
185
|
+
end
|
186
|
+
|
120
187
|
#
|
121
188
|
# Helper method to convert first letter to downcase
|
122
189
|
#
|
@@ -174,7 +241,7 @@ end
|
|
174
241
|
#
|
175
242
|
# --------------------------------------------------------------------------------------------------------------------
|
176
243
|
# <copyright company="Aspose Pty Ltd" file="convert_document_request.rb">
|
177
|
-
# Copyright (c) 2003-
|
244
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
178
245
|
# </copyright>
|
179
246
|
# <summary>
|
180
247
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -216,3 +283,60 @@ module GroupDocsConversionCloud
|
|
216
283
|
end
|
217
284
|
end
|
218
285
|
end
|
286
|
+
#
|
287
|
+
# --------------------------------------------------------------------------------------------------------------------
|
288
|
+
# <copyright company="Aspose Pty Ltd" file="convert_document_direct_request.rb">
|
289
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
290
|
+
# </copyright>
|
291
|
+
# <summary>
|
292
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
293
|
+
# of this software and associated documentation files (the "Software"), to deal
|
294
|
+
# in the Software without restriction, including without limitation the rights
|
295
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
296
|
+
# copies of the Software, and to permit persons to whom the Software is
|
297
|
+
# furnished to do so, subject to the following conditions:
|
298
|
+
#
|
299
|
+
# The above copyright notice and this permission notice shall be included in all
|
300
|
+
# copies or substantial portions of the Software.
|
301
|
+
#
|
302
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
303
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
304
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
305
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
306
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
307
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
308
|
+
# SOFTWARE.
|
309
|
+
# </summary>
|
310
|
+
# --------------------------------------------------------------------------------------------------------------------
|
311
|
+
#
|
312
|
+
|
313
|
+
module GroupDocsConversionCloud
|
314
|
+
|
315
|
+
#
|
316
|
+
# Request model for convert_document_direct operation.
|
317
|
+
#
|
318
|
+
class ConvertDocumentDirectRequest
|
319
|
+
|
320
|
+
# Requested conversion format
|
321
|
+
attr_accessor :format
|
322
|
+
# Input file to convert
|
323
|
+
attr_accessor :file
|
324
|
+
# Page start conversion from
|
325
|
+
attr_accessor :from_page
|
326
|
+
# Number of pages to convert
|
327
|
+
attr_accessor :pages_count
|
328
|
+
|
329
|
+
#
|
330
|
+
# Initializes a new instance.
|
331
|
+
# @param format Requested conversion format
|
332
|
+
# @param file Input file to convert
|
333
|
+
# @param from_page Page start conversion from
|
334
|
+
# @param pages_count Number of pages to convert
|
335
|
+
def initialize(format, file, from_page = nil, pages_count = nil)
|
336
|
+
self.format = format
|
337
|
+
self.file = file
|
338
|
+
self.from_page = from_page
|
339
|
+
self.pages_count = pages_count
|
340
|
+
end
|
341
|
+
end
|
342
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="file.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -449,7 +449,7 @@ end
|
|
449
449
|
#
|
450
450
|
# --------------------------------------------------------------------------------------------------------------------
|
451
451
|
# <copyright company="Aspose Pty Ltd" file="copy_file_request.rb">
|
452
|
-
# Copyright (c) 2003-
|
452
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
453
453
|
# </copyright>
|
454
454
|
# <summary>
|
455
455
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -510,7 +510,7 @@ end
|
|
510
510
|
#
|
511
511
|
# --------------------------------------------------------------------------------------------------------------------
|
512
512
|
# <copyright company="Aspose Pty Ltd" file="delete_file_request.rb">
|
513
|
-
# Copyright (c) 2003-
|
513
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
514
514
|
# </copyright>
|
515
515
|
# <summary>
|
516
516
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -563,7 +563,7 @@ end
|
|
563
563
|
#
|
564
564
|
# --------------------------------------------------------------------------------------------------------------------
|
565
565
|
# <copyright company="Aspose Pty Ltd" file="download_file_request.rb">
|
566
|
-
# Copyright (c) 2003-
|
566
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
567
567
|
# </copyright>
|
568
568
|
# <summary>
|
569
569
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -616,7 +616,7 @@ end
|
|
616
616
|
#
|
617
617
|
# --------------------------------------------------------------------------------------------------------------------
|
618
618
|
# <copyright company="Aspose Pty Ltd" file="move_file_request.rb">
|
619
|
-
# Copyright (c) 2003-
|
619
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
620
620
|
# </copyright>
|
621
621
|
# <summary>
|
622
622
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -677,7 +677,7 @@ end
|
|
677
677
|
#
|
678
678
|
# --------------------------------------------------------------------------------------------------------------------
|
679
679
|
# <copyright company="Aspose Pty Ltd" file="upload_file_request.rb">
|
680
|
-
# Copyright (c) 2003-
|
680
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
681
681
|
# </copyright>
|
682
682
|
# <summary>
|
683
683
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="folder.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -430,7 +430,7 @@ end
|
|
430
430
|
#
|
431
431
|
# --------------------------------------------------------------------------------------------------------------------
|
432
432
|
# <copyright company="Aspose Pty Ltd" file="copy_folder_request.rb">
|
433
|
-
# Copyright (c) 2003-
|
433
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
434
434
|
# </copyright>
|
435
435
|
# <summary>
|
436
436
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -487,7 +487,7 @@ end
|
|
487
487
|
#
|
488
488
|
# --------------------------------------------------------------------------------------------------------------------
|
489
489
|
# <copyright company="Aspose Pty Ltd" file="create_folder_request.rb">
|
490
|
-
# Copyright (c) 2003-
|
490
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
491
491
|
# </copyright>
|
492
492
|
# <summary>
|
493
493
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -536,7 +536,7 @@ end
|
|
536
536
|
#
|
537
537
|
# --------------------------------------------------------------------------------------------------------------------
|
538
538
|
# <copyright company="Aspose Pty Ltd" file="delete_folder_request.rb">
|
539
|
-
# Copyright (c) 2003-
|
539
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
540
540
|
# </copyright>
|
541
541
|
# <summary>
|
542
542
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -589,7 +589,7 @@ end
|
|
589
589
|
#
|
590
590
|
# --------------------------------------------------------------------------------------------------------------------
|
591
591
|
# <copyright company="Aspose Pty Ltd" file="get_files_list_request.rb">
|
592
|
-
# Copyright (c) 2003-
|
592
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
593
593
|
# </copyright>
|
594
594
|
# <summary>
|
595
595
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -638,7 +638,7 @@ end
|
|
638
638
|
#
|
639
639
|
# --------------------------------------------------------------------------------------------------------------------
|
640
640
|
# <copyright company="Aspose Pty Ltd" file="move_folder_request.rb">
|
641
|
-
# Copyright (c) 2003-
|
641
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
642
642
|
# </copyright>
|
643
643
|
# <summary>
|
644
644
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="info.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -246,7 +246,7 @@ end
|
|
246
246
|
#
|
247
247
|
# --------------------------------------------------------------------------------------------------------------------
|
248
248
|
# <copyright company="Aspose Pty Ltd" file="get_document_metadata_request.rb">
|
249
|
-
# Copyright (c) 2003-
|
249
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
250
250
|
# </copyright>
|
251
251
|
# <summary>
|
252
252
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -295,7 +295,7 @@ end
|
|
295
295
|
#
|
296
296
|
# --------------------------------------------------------------------------------------------------------------------
|
297
297
|
# <copyright company="Aspose Pty Ltd" file="get_supported_conversion_types_request.rb">
|
298
|
-
# Copyright (c) 2003-
|
298
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
299
299
|
# </copyright>
|
300
300
|
# <summary>
|
301
301
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="storage.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -350,7 +350,7 @@ end
|
|
350
350
|
#
|
351
351
|
# --------------------------------------------------------------------------------------------------------------------
|
352
352
|
# <copyright company="Aspose Pty Ltd" file="get_disc_usage_request.rb">
|
353
|
-
# Copyright (c) 2003-
|
353
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
354
354
|
# </copyright>
|
355
355
|
# <summary>
|
356
356
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -395,7 +395,7 @@ end
|
|
395
395
|
#
|
396
396
|
# --------------------------------------------------------------------------------------------------------------------
|
397
397
|
# <copyright company="Aspose Pty Ltd" file="get_file_versions_request.rb">
|
398
|
-
# Copyright (c) 2003-
|
398
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
399
399
|
# </copyright>
|
400
400
|
# <summary>
|
401
401
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -444,7 +444,7 @@ end
|
|
444
444
|
#
|
445
445
|
# --------------------------------------------------------------------------------------------------------------------
|
446
446
|
# <copyright company="Aspose Pty Ltd" file="object_exists_request.rb">
|
447
|
-
# Copyright (c) 2003-
|
447
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
448
448
|
# </copyright>
|
449
449
|
# <summary>
|
450
450
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -497,7 +497,7 @@ end
|
|
497
497
|
#
|
498
498
|
# --------------------------------------------------------------------------------------------------------------------
|
499
499
|
# <copyright company="Aspose Pty Ltd" file="storage_exists_request.rb">
|
500
|
-
# Copyright (c) 2003-
|
500
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
501
501
|
# </copyright>
|
502
502
|
# <summary>
|
503
503
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="api_client.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="api_error.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -39,10 +39,23 @@ module GroupDocsConversionCloud
|
|
39
39
|
|
40
40
|
if arg.key?(:response_body) then
|
41
41
|
data = JSON.parse(arg[:response_body], :symbolize_names => true)
|
42
|
-
if !data.nil?
|
43
|
-
|
44
|
-
|
45
|
-
|
42
|
+
if !data.nil? then
|
43
|
+
if !data[:error].nil? then
|
44
|
+
error = data[:error]
|
45
|
+
if error.kind_of?(String) then
|
46
|
+
@message = error
|
47
|
+
else
|
48
|
+
@message = error[:message]
|
49
|
+
end
|
50
|
+
else
|
51
|
+
message = data[:message]
|
52
|
+
if !message.nil? && message.kind_of?(String) then
|
53
|
+
@message = message
|
54
|
+
@code = data[:code]
|
55
|
+
else
|
56
|
+
@message = data
|
57
|
+
end
|
58
|
+
end
|
46
59
|
end
|
47
60
|
end
|
48
61
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ------------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="configuration.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# 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="bmp_convert_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 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="bmp_load_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 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="cad_load_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 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="cgm_convert_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 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="convert_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 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="convert_settings.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -49,6 +49,9 @@ module GroupDocsConversionCloud
|
|
49
49
|
# Gets or sets converted file save path
|
50
50
|
attr_accessor :output_path
|
51
51
|
|
52
|
+
# The path to directory containing custom fonts in storage
|
53
|
+
attr_accessor :fonts_path
|
54
|
+
|
52
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
56
|
def self.attribute_map
|
54
57
|
{
|
@@ -57,7 +60,8 @@ module GroupDocsConversionCloud
|
|
57
60
|
:'format' => :'Format',
|
58
61
|
:'load_options' => :'LoadOptions',
|
59
62
|
:'convert_options' => :'ConvertOptions',
|
60
|
-
:'output_path' => :'OutputPath'
|
63
|
+
:'output_path' => :'OutputPath',
|
64
|
+
:'fonts_path' => :'FontsPath'
|
61
65
|
}
|
62
66
|
end
|
63
67
|
|
@@ -69,7 +73,8 @@ module GroupDocsConversionCloud
|
|
69
73
|
:'format' => :'String',
|
70
74
|
:'load_options' => :'LoadOptions',
|
71
75
|
:'convert_options' => :'ConvertOptions',
|
72
|
-
:'output_path' => :'String'
|
76
|
+
:'output_path' => :'String',
|
77
|
+
:'fonts_path' => :'String'
|
73
78
|
}
|
74
79
|
end
|
75
80
|
|
@@ -105,6 +110,10 @@ module GroupDocsConversionCloud
|
|
105
110
|
self.output_path = attributes[:'OutputPath']
|
106
111
|
end
|
107
112
|
|
113
|
+
if attributes.key?(:'FontsPath')
|
114
|
+
self.fonts_path = attributes[:'FontsPath']
|
115
|
+
end
|
116
|
+
|
108
117
|
end
|
109
118
|
|
110
119
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -178,7 +187,8 @@ module GroupDocsConversionCloud
|
|
178
187
|
format == other.format &&
|
179
188
|
load_options == other.load_options &&
|
180
189
|
convert_options == other.convert_options &&
|
181
|
-
output_path == other.output_path
|
190
|
+
output_path == other.output_path &&
|
191
|
+
fonts_path == other.fonts_path
|
182
192
|
end
|
183
193
|
|
184
194
|
# @see the `==` method
|
@@ -190,7 +200,7 @@ module GroupDocsConversionCloud
|
|
190
200
|
# Calculates hash code according to all attributes.
|
191
201
|
# @return [Fixnum] Hash code
|
192
202
|
def hash
|
193
|
-
[storage_name, file_path, format, load_options, convert_options, output_path].hash
|
203
|
+
[storage_name, file_path, format, load_options, convert_options, output_path, fonts_path].hash
|
194
204
|
end
|
195
205
|
|
196
206
|
# Downcases first letter.
|