cloudmersive-convert-api-client 2.0.7 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -4
  3. data/docs/ConvertDataApi.md +117 -3
  4. data/docs/ConvertDocumentApi.md +159 -0
  5. data/docs/DocxMetadataCustomProperty.md +13 -0
  6. data/docs/DocxSetCustomMetadataPropertiesRequest.md +10 -0
  7. data/docs/EditDocumentApi.md +330 -0
  8. data/docs/EditHtmlApi.md +81 -13
  9. data/docs/EditPdfApi.md +227 -0
  10. data/docs/GetDocxMetadataPropertiesResponse.md +16 -0
  11. data/docs/ValidateDocumentApi.md +165 -0
  12. data/docs/ViewerToolsApi.md +8 -2
  13. data/docs/ZipArchiveApi.md +80 -0
  14. data/lib/cloudmersive-convert-api-client.rb +3 -0
  15. data/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +117 -4
  16. data/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +156 -0
  17. data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +329 -0
  18. data/lib/cloudmersive-convert-api-client/api/edit_html_api.rb +81 -12
  19. data/lib/cloudmersive-convert-api-client/api/edit_pdf_api.rb +230 -0
  20. data/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +165 -0
  21. data/lib/cloudmersive-convert-api-client/api/viewer_tools_api.rb +6 -0
  22. data/lib/cloudmersive-convert-api-client/api/zip_archive_api.rb +92 -0
  23. data/lib/cloudmersive-convert-api-client/models/docx_metadata_custom_property.rb +236 -0
  24. data/lib/cloudmersive-convert-api-client/models/docx_set_custom_metadata_properties_request.rb +223 -0
  25. data/lib/cloudmersive-convert-api-client/models/get_docx_metadata_properties_response.rb +268 -0
  26. data/lib/cloudmersive-convert-api-client/version.rb +1 -1
  27. data/spec/api/convert_data_api_spec.rb +26 -1
  28. data/spec/api/convert_document_api_spec.rb +35 -0
  29. data/spec/api/edit_document_api_spec.rb +72 -0
  30. data/spec/api/edit_html_api_spec.rb +24 -6
  31. data/spec/api/edit_pdf_api_spec.rb +50 -0
  32. data/spec/api/validate_document_api_spec.rb +36 -0
  33. data/spec/api/viewer_tools_api_spec.rb +2 -0
  34. data/spec/api/zip_archive_api_spec.rb +23 -0
  35. data/spec/models/docx_metadata_custom_property_spec.rb +71 -0
  36. data/spec/models/docx_set_custom_metadata_properties_request_spec.rb +53 -0
  37. data/spec/models/get_docx_metadata_properties_response_spec.rb +89 -0
  38. metadata +11 -2
@@ -8,7 +8,7 @@ Method | HTTP request | Description
8
8
 
9
9
 
10
10
  # **viewer_tools_create_simple**
11
- > ViewerResponse viewer_tools_create_simple(input_file)
11
+ > ViewerResponse viewer_tools_create_simple(input_file, opts)
12
12
 
13
13
  Create a web-based viewer
14
14
 
@@ -30,10 +30,14 @@ api_instance = CloudmersiveConvertApiClient::ViewerToolsApi.new
30
30
 
31
31
  input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
32
32
 
33
+ opts = {
34
+ width: 56, # Integer | Optional; width of the output viewer in pixels
35
+ height: 56 # Integer | Optional; height of the output viewer in pixels
36
+ }
33
37
 
34
38
  begin
35
39
  #Create a web-based viewer
36
- result = api_instance.viewer_tools_create_simple(input_file)
40
+ result = api_instance.viewer_tools_create_simple(input_file, opts)
37
41
  p result
38
42
  rescue CloudmersiveConvertApiClient::ApiError => e
39
43
  puts "Exception when calling ViewerToolsApi->viewer_tools_create_simple: #{e}"
@@ -45,6 +49,8 @@ end
45
49
  Name | Type | Description | Notes
46
50
  ------------- | ------------- | ------------- | -------------
47
51
  **input_file** | **File**| Input file to perform the operation on. |
52
+ **width** | **Integer**| Optional; width of the output viewer in pixels | [optional]
53
+ **height** | **Integer**| Optional; height of the output viewer in pixels | [optional]
48
54
 
49
55
  ### Return type
50
56
 
@@ -6,6 +6,7 @@ Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**zip_archive_zip_create**](ZipArchiveApi.md#zip_archive_zip_create) | **POST** /convert/archive/zip/create | Compress files to create a new zip archive
8
8
  [**zip_archive_zip_create_advanced**](ZipArchiveApi.md#zip_archive_zip_create_advanced) | **POST** /convert/archive/zip/create/advanced | Compress files and folders to create a new zip archive with advanced options
9
+ [**zip_archive_zip_create_encrypted**](ZipArchiveApi.md#zip_archive_zip_create_encrypted) | **POST** /convert/archive/zip/create/encrypted | Compress files to create a new, encrypted and password-protected zip archive
9
10
  [**zip_archive_zip_decrypt**](ZipArchiveApi.md#zip_archive_zip_decrypt) | **POST** /convert/archive/zip/decrypt | Decrypt and remove password protection on a zip file
10
11
  [**zip_archive_zip_encrypt_advanced**](ZipArchiveApi.md#zip_archive_zip_encrypt_advanced) | **POST** /convert/archive/zip/encrypt/advanced | Encrypt and password protect a zip file
11
12
  [**zip_archive_zip_extract**](ZipArchiveApi.md#zip_archive_zip_extract) | **POST** /convert/archive/zip/extract | Extract, decompress files and folders from a zip archive
@@ -139,6 +140,85 @@ Name | Type | Description | Notes
139
140
 
140
141
 
141
142
 
143
+ # **zip_archive_zip_create_encrypted**
144
+ > String zip_archive_zip_create_encrypted(password, input_file1, opts)
145
+
146
+ Compress files to create a new, encrypted and password-protected zip archive
147
+
148
+ Create a new zip archive by compressing input files, and also applies encryption and password protection to the zip.
149
+
150
+ ### Example
151
+ ```ruby
152
+ # load the gem
153
+ require 'cloudmersive-convert-api-client'
154
+ # setup authorization
155
+ CloudmersiveConvertApiClient.configure do |config|
156
+ # Configure API key authorization: Apikey
157
+ config.api_key['Apikey'] = 'YOUR API KEY'
158
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
159
+ #config.api_key_prefix['Apikey'] = 'Bearer'
160
+ end
161
+
162
+ api_instance = CloudmersiveConvertApiClient::ZipArchiveApi.new
163
+
164
+ password = 'password_example' # String | Password to place on the Zip file; the longer the password, the more secure
165
+
166
+ input_file1 = File.new('/path/to/file.txt') # File | First input file to perform the operation on.
167
+
168
+ opts = {
169
+ encryption_algorithm: 'encryption_algorithm_example', # String | Encryption algorithm to use; possible values are AES-256 (recommended), AES-128, and PK-Zip (not recommended; legacy, weak encryption algorithm). Default is AES-256.
170
+ input_file2: File.new('/path/to/file.txt'), # File | Second input file to perform the operation on.
171
+ input_file3: File.new('/path/to/file.txt'), # File | Third input file to perform the operation on.
172
+ input_file4: File.new('/path/to/file.txt'), # File | Fourth input file to perform the operation on.
173
+ input_file5: File.new('/path/to/file.txt'), # File | Fifth input file to perform the operation on.
174
+ input_file6: File.new('/path/to/file.txt'), # File | Sixth input file to perform the operation on.
175
+ input_file7: File.new('/path/to/file.txt'), # File | Seventh input file to perform the operation on.
176
+ input_file8: File.new('/path/to/file.txt'), # File | Eighth input file to perform the operation on.
177
+ input_file9: File.new('/path/to/file.txt'), # File | Ninth input file to perform the operation on.
178
+ input_file10: File.new('/path/to/file.txt') # File | Tenth input file to perform the operation on.
179
+ }
180
+
181
+ begin
182
+ #Compress files to create a new, encrypted and password-protected zip archive
183
+ result = api_instance.zip_archive_zip_create_encrypted(password, input_file1, opts)
184
+ p result
185
+ rescue CloudmersiveConvertApiClient::ApiError => e
186
+ puts "Exception when calling ZipArchiveApi->zip_archive_zip_create_encrypted: #{e}"
187
+ end
188
+ ```
189
+
190
+ ### Parameters
191
+
192
+ Name | Type | Description | Notes
193
+ ------------- | ------------- | ------------- | -------------
194
+ **password** | **String**| Password to place on the Zip file; the longer the password, the more secure |
195
+ **input_file1** | **File**| First input file to perform the operation on. |
196
+ **encryption_algorithm** | **String**| Encryption algorithm to use; possible values are AES-256 (recommended), AES-128, and PK-Zip (not recommended; legacy, weak encryption algorithm). Default is AES-256. | [optional]
197
+ **input_file2** | **File**| Second input file to perform the operation on. | [optional]
198
+ **input_file3** | **File**| Third input file to perform the operation on. | [optional]
199
+ **input_file4** | **File**| Fourth input file to perform the operation on. | [optional]
200
+ **input_file5** | **File**| Fifth input file to perform the operation on. | [optional]
201
+ **input_file6** | **File**| Sixth input file to perform the operation on. | [optional]
202
+ **input_file7** | **File**| Seventh input file to perform the operation on. | [optional]
203
+ **input_file8** | **File**| Eighth input file to perform the operation on. | [optional]
204
+ **input_file9** | **File**| Ninth input file to perform the operation on. | [optional]
205
+ **input_file10** | **File**| Tenth input file to perform the operation on. | [optional]
206
+
207
+ ### Return type
208
+
209
+ **String**
210
+
211
+ ### Authorization
212
+
213
+ [Apikey](../README.md#Apikey)
214
+
215
+ ### HTTP request headers
216
+
217
+ - **Content-Type**: multipart/form-data
218
+ - **Accept**: application/octet-stream
219
+
220
+
221
+
142
222
  # **zip_archive_zip_decrypt**
143
223
  > Object zip_archive_zip_decrypt(input_file, zip_password)
144
224
 
@@ -66,12 +66,14 @@ require 'cloudmersive-convert-api-client/models/docx_image'
66
66
  require 'cloudmersive-convert-api-client/models/docx_insert_comment_on_paragraph_request'
67
67
  require 'cloudmersive-convert-api-client/models/docx_insert_image_request'
68
68
  require 'cloudmersive-convert-api-client/models/docx_insert_image_response'
69
+ require 'cloudmersive-convert-api-client/models/docx_metadata_custom_property'
69
70
  require 'cloudmersive-convert-api-client/models/docx_page'
70
71
  require 'cloudmersive-convert-api-client/models/docx_paragraph'
71
72
  require 'cloudmersive-convert-api-client/models/docx_remove_object_request'
72
73
  require 'cloudmersive-convert-api-client/models/docx_remove_object_response'
73
74
  require 'cloudmersive-convert-api-client/models/docx_run'
74
75
  require 'cloudmersive-convert-api-client/models/docx_section'
76
+ require 'cloudmersive-convert-api-client/models/docx_set_custom_metadata_properties_request'
75
77
  require 'cloudmersive-convert-api-client/models/docx_set_footer_add_page_number_request'
76
78
  require 'cloudmersive-convert-api-client/models/docx_set_footer_request'
77
79
  require 'cloudmersive-convert-api-client/models/docx_set_footer_response'
@@ -113,6 +115,7 @@ require 'cloudmersive-convert-api-client/models/get_docx_headers_and_footers_req
113
115
  require 'cloudmersive-convert-api-client/models/get_docx_headers_and_footers_response'
114
116
  require 'cloudmersive-convert-api-client/models/get_docx_images_request'
115
117
  require 'cloudmersive-convert-api-client/models/get_docx_images_response'
118
+ require 'cloudmersive-convert-api-client/models/get_docx_metadata_properties_response'
116
119
  require 'cloudmersive-convert-api-client/models/get_docx_pages_request'
117
120
  require 'cloudmersive-convert-api-client/models/get_docx_pages_response'
118
121
  require 'cloudmersive-convert-api-client/models/get_docx_sections_request'
@@ -77,6 +77,64 @@ module CloudmersiveConvertApiClient
77
77
  end
78
78
  return data, status_code, headers
79
79
  end
80
+ # Convert CSV to XML conversion
81
+ # Convert a CSV file to a XML file
82
+ # @param input_file Input file to perform the operation on.
83
+ # @param [Hash] opts the optional parameters
84
+ # @option opts [BOOLEAN] :column_names_from_first_row Optional; If true, the first row will be used as the labels for the columns; if false, columns will be named Column0, Column1, etc. Default is true. Set to false if you are not using column headings, or have an irregular column structure.
85
+ # @return [String]
86
+ def convert_data_csv_to_xml(input_file, opts = {})
87
+ data, _status_code, _headers = convert_data_csv_to_xml_with_http_info(input_file, opts)
88
+ data
89
+ end
90
+
91
+ # Convert CSV to XML conversion
92
+ # Convert a CSV file to a XML file
93
+ # @param input_file Input file to perform the operation on.
94
+ # @param [Hash] opts the optional parameters
95
+ # @option opts [BOOLEAN] :column_names_from_first_row Optional; If true, the first row will be used as the labels for the columns; if false, columns will be named Column0, Column1, etc. Default is true. Set to false if you are not using column headings, or have an irregular column structure.
96
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
97
+ def convert_data_csv_to_xml_with_http_info(input_file, opts = {})
98
+ if @api_client.config.debugging
99
+ @api_client.config.logger.debug 'Calling API: ConvertDataApi.convert_data_csv_to_xml ...'
100
+ end
101
+ # verify the required parameter 'input_file' is set
102
+ if @api_client.config.client_side_validation && input_file.nil?
103
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDataApi.convert_data_csv_to_xml"
104
+ end
105
+ # resource path
106
+ local_var_path = '/convert/csv/to/xml'
107
+
108
+ # query parameters
109
+ query_params = {}
110
+
111
+ # header parameters
112
+ header_params = {}
113
+ # HTTP header 'Accept' (if needed)
114
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
115
+ # HTTP header 'Content-Type'
116
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
117
+ header_params[:'columnNamesFromFirstRow'] = opts[:'column_names_from_first_row'] if !opts[:'column_names_from_first_row'].nil?
118
+
119
+ # form parameters
120
+ form_params = {}
121
+ form_params['inputFile'] = input_file
122
+
123
+ # http body (model)
124
+ post_body = nil
125
+ auth_names = ['Apikey']
126
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
127
+ :header_params => header_params,
128
+ :query_params => query_params,
129
+ :form_params => form_params,
130
+ :body => post_body,
131
+ :auth_names => auth_names,
132
+ :return_type => 'String')
133
+ if @api_client.config.debugging
134
+ @api_client.config.logger.debug "API called: ConvertDataApi#convert_data_csv_to_xml\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
135
+ end
136
+ return data, status_code, headers
137
+ end
80
138
  # Convert JSON to XML conversion
81
139
  # Convert a JSON object into XML
82
140
  # @param json_object Input JSON to convert to XML
@@ -190,7 +248,7 @@ module CloudmersiveConvertApiClient
190
248
  # Convert an Excel XLSX file to a JSON object array
191
249
  # @param input_file Input file to perform the operation on.
192
250
  # @param [Hash] opts the optional parameters
193
- # @return [Object]
251
+ # @return [String]
194
252
  def convert_data_xlsx_to_json(input_file, opts = {})
195
253
  data, _status_code, _headers = convert_data_xlsx_to_json_with_http_info(input_file, opts)
196
254
  data
@@ -200,7 +258,7 @@ module CloudmersiveConvertApiClient
200
258
  # Convert an Excel XLSX file to a JSON object array
201
259
  # @param input_file Input file to perform the operation on.
202
260
  # @param [Hash] opts the optional parameters
203
- # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
261
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
204
262
  def convert_data_xlsx_to_json_with_http_info(input_file, opts = {})
205
263
  if @api_client.config.debugging
206
264
  @api_client.config.logger.debug 'Calling API: ConvertDataApi.convert_data_xlsx_to_json ...'
@@ -218,7 +276,7 @@ module CloudmersiveConvertApiClient
218
276
  # header parameters
219
277
  header_params = {}
220
278
  # HTTP header 'Accept' (if needed)
221
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
279
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
222
280
  # HTTP header 'Content-Type'
223
281
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
224
282
 
@@ -235,12 +293,67 @@ module CloudmersiveConvertApiClient
235
293
  :form_params => form_params,
236
294
  :body => post_body,
237
295
  :auth_names => auth_names,
238
- :return_type => 'Object')
296
+ :return_type => 'String')
239
297
  if @api_client.config.debugging
240
298
  @api_client.config.logger.debug "API called: ConvertDataApi#convert_data_xlsx_to_json\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
241
299
  end
242
300
  return data, status_code, headers
243
301
  end
302
+ # Convert Excel XLSX to XML conversion
303
+ # Convert an Excel XLSX file to a XML file
304
+ # @param input_file Input file to perform the operation on.
305
+ # @param [Hash] opts the optional parameters
306
+ # @return [String]
307
+ def convert_data_xlsx_to_xml(input_file, opts = {})
308
+ data, _status_code, _headers = convert_data_xlsx_to_xml_with_http_info(input_file, opts)
309
+ data
310
+ end
311
+
312
+ # Convert Excel XLSX to XML conversion
313
+ # Convert an Excel XLSX file to a XML file
314
+ # @param input_file Input file to perform the operation on.
315
+ # @param [Hash] opts the optional parameters
316
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
317
+ def convert_data_xlsx_to_xml_with_http_info(input_file, opts = {})
318
+ if @api_client.config.debugging
319
+ @api_client.config.logger.debug 'Calling API: ConvertDataApi.convert_data_xlsx_to_xml ...'
320
+ end
321
+ # verify the required parameter 'input_file' is set
322
+ if @api_client.config.client_side_validation && input_file.nil?
323
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDataApi.convert_data_xlsx_to_xml"
324
+ end
325
+ # resource path
326
+ local_var_path = '/convert/xlsx/to/xml'
327
+
328
+ # query parameters
329
+ query_params = {}
330
+
331
+ # header parameters
332
+ header_params = {}
333
+ # HTTP header 'Accept' (if needed)
334
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
335
+ # HTTP header 'Content-Type'
336
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
337
+
338
+ # form parameters
339
+ form_params = {}
340
+ form_params['inputFile'] = input_file
341
+
342
+ # http body (model)
343
+ post_body = nil
344
+ auth_names = ['Apikey']
345
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
346
+ :header_params => header_params,
347
+ :query_params => query_params,
348
+ :form_params => form_params,
349
+ :body => post_body,
350
+ :auth_names => auth_names,
351
+ :return_type => 'String')
352
+ if @api_client.config.debugging
353
+ @api_client.config.logger.debug "API called: ConvertDataApi#convert_data_xlsx_to_xml\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
354
+ end
355
+ return data, status_code, headers
356
+ end
244
357
  # Adds an attribute to all XML nodes matching XPath expression
245
358
  # Return the reuslts of editing an XML document by adding an attribute to all of the nodes that match an input XPath expression.
246
359
  # @param input_file Input XML file to perform the operation on.
@@ -850,6 +850,61 @@ module CloudmersiveConvertApiClient
850
850
  end
851
851
  return data, status_code, headers
852
852
  end
853
+ # Convert Word DOCX Document to Legacy Word DOC (97-03)
854
+ # Convert/downgrade modern Office Word DOCX Documents (DOCX) to the legacy Word DOC (97-2003 Format) format
855
+ # @param input_file Input file to perform the operation on.
856
+ # @param [Hash] opts the optional parameters
857
+ # @return [String]
858
+ def convert_document_docx_to_doc(input_file, opts = {})
859
+ data, _status_code, _headers = convert_document_docx_to_doc_with_http_info(input_file, opts)
860
+ data
861
+ end
862
+
863
+ # Convert Word DOCX Document to Legacy Word DOC (97-03)
864
+ # Convert/downgrade modern Office Word DOCX Documents (DOCX) to the legacy Word DOC (97-2003 Format) format
865
+ # @param input_file Input file to perform the operation on.
866
+ # @param [Hash] opts the optional parameters
867
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
868
+ def convert_document_docx_to_doc_with_http_info(input_file, opts = {})
869
+ if @api_client.config.debugging
870
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_docx_to_doc ...'
871
+ end
872
+ # verify the required parameter 'input_file' is set
873
+ if @api_client.config.client_side_validation && input_file.nil?
874
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_docx_to_doc"
875
+ end
876
+ # resource path
877
+ local_var_path = '/convert/docx/to/doc'
878
+
879
+ # query parameters
880
+ query_params = {}
881
+
882
+ # header parameters
883
+ header_params = {}
884
+ # HTTP header 'Accept' (if needed)
885
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
886
+ # HTTP header 'Content-Type'
887
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
888
+
889
+ # form parameters
890
+ form_params = {}
891
+ form_params['inputFile'] = input_file
892
+
893
+ # http body (model)
894
+ post_body = nil
895
+ auth_names = ['Apikey']
896
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
897
+ :header_params => header_params,
898
+ :query_params => query_params,
899
+ :form_params => form_params,
900
+ :body => post_body,
901
+ :auth_names => auth_names,
902
+ :return_type => 'String')
903
+ if @api_client.config.debugging
904
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_docx_to_doc\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
905
+ end
906
+ return data, status_code, headers
907
+ end
853
908
  # Convert Word DOCX Document to HTML Document
854
909
  # Convert Office Word Document (DOCX) to HTML Document
855
910
  # @param input_file Input file to perform the operation on.
@@ -3522,6 +3577,52 @@ module CloudmersiveConvertApiClient
3522
3577
  end
3523
3578
  return data, status_code, headers
3524
3579
  end
3580
+ # Convert PowerPoint PPTX presentation to Legacy PowerPoint PPT (97-03)
3581
+ # Convert/downgrade modern Office PowerPoint PPTX Presentation to the legacy PowerPoint PPT (97-2003 Format) format
3582
+ # @param [Hash] opts the optional parameters
3583
+ # @return [Object]
3584
+ def convert_document_pptx_to_ppt(opts = {})
3585
+ data, _status_code, _headers = convert_document_pptx_to_ppt_with_http_info(opts)
3586
+ data
3587
+ end
3588
+
3589
+ # Convert PowerPoint PPTX presentation to Legacy PowerPoint PPT (97-03)
3590
+ # Convert/downgrade modern Office PowerPoint PPTX Presentation to the legacy PowerPoint PPT (97-2003 Format) format
3591
+ # @param [Hash] opts the optional parameters
3592
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
3593
+ def convert_document_pptx_to_ppt_with_http_info(opts = {})
3594
+ if @api_client.config.debugging
3595
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_pptx_to_ppt ...'
3596
+ end
3597
+ # resource path
3598
+ local_var_path = '/convert/pptx/to/ppt'
3599
+
3600
+ # query parameters
3601
+ query_params = {}
3602
+
3603
+ # header parameters
3604
+ header_params = {}
3605
+ # HTTP header 'Accept' (if needed)
3606
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3607
+
3608
+ # form parameters
3609
+ form_params = {}
3610
+
3611
+ # http body (model)
3612
+ post_body = nil
3613
+ auth_names = ['Apikey']
3614
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3615
+ :header_params => header_params,
3616
+ :query_params => query_params,
3617
+ :form_params => form_params,
3618
+ :body => post_body,
3619
+ :auth_names => auth_names,
3620
+ :return_type => 'Object')
3621
+ if @api_client.config.debugging
3622
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pptx_to_ppt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3623
+ end
3624
+ return data, status_code, headers
3625
+ end
3525
3626
  # Convert PowerPoint PPTX Presentation to Text (txt)
3526
3627
  # Convert Office PowerPoint Documents (pptx) to standard Text
3527
3628
  # @param input_file Input file to perform the operation on.
@@ -4356,5 +4457,60 @@ module CloudmersiveConvertApiClient
4356
4457
  end
4357
4458
  return data, status_code, headers
4358
4459
  end
4460
+ # Convert Excel XLSX Spreadsheet to Legacy Excel XLS (97-03)
4461
+ # Convert/downgrade modern Office Excel XLSX Spreadsheet to the legacy Excel XLS (97-2003 Format) format
4462
+ # @param input_file Input file to perform the operation on.
4463
+ # @param [Hash] opts the optional parameters
4464
+ # @return [String]
4465
+ def convert_document_xlsx_to_xls(input_file, opts = {})
4466
+ data, _status_code, _headers = convert_document_xlsx_to_xls_with_http_info(input_file, opts)
4467
+ data
4468
+ end
4469
+
4470
+ # Convert Excel XLSX Spreadsheet to Legacy Excel XLS (97-03)
4471
+ # Convert/downgrade modern Office Excel XLSX Spreadsheet to the legacy Excel XLS (97-2003 Format) format
4472
+ # @param input_file Input file to perform the operation on.
4473
+ # @param [Hash] opts the optional parameters
4474
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
4475
+ def convert_document_xlsx_to_xls_with_http_info(input_file, opts = {})
4476
+ if @api_client.config.debugging
4477
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_xlsx_to_xls ...'
4478
+ end
4479
+ # verify the required parameter 'input_file' is set
4480
+ if @api_client.config.client_side_validation && input_file.nil?
4481
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xlsx_to_xls"
4482
+ end
4483
+ # resource path
4484
+ local_var_path = '/convert/xlsx/to/xls'
4485
+
4486
+ # query parameters
4487
+ query_params = {}
4488
+
4489
+ # header parameters
4490
+ header_params = {}
4491
+ # HTTP header 'Accept' (if needed)
4492
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
4493
+ # HTTP header 'Content-Type'
4494
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4495
+
4496
+ # form parameters
4497
+ form_params = {}
4498
+ form_params['inputFile'] = input_file
4499
+
4500
+ # http body (model)
4501
+ post_body = nil
4502
+ auth_names = ['Apikey']
4503
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4504
+ :header_params => header_params,
4505
+ :query_params => query_params,
4506
+ :form_params => form_params,
4507
+ :body => post_body,
4508
+ :auth_names => auth_names,
4509
+ :return_type => 'String')
4510
+ if @api_client.config.debugging
4511
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xlsx_to_xls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4512
+ end
4513
+ return data, status_code, headers
4514
+ end
4359
4515
  end
4360
4516
  end