cloudmersive-convert-api-client 2.1.3 → 2.1.8

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 +21 -4
  3. data/docs/EditDocumentApi.md +165 -0
  4. data/docs/EditHtmlApi.md +60 -0
  5. data/docs/GetMacrosResponse.md +9 -0
  6. data/docs/HtmlGetLinksResponse.md +9 -0
  7. data/docs/HtmlHyperlink.md +9 -0
  8. data/docs/HtmlSsrfThreatCheckResult.md +10 -0
  9. data/docs/HtmlThreatLink.md +9 -0
  10. data/docs/MergeDocumentApi.md +134 -0
  11. data/docs/ValidateDocumentApi.md +220 -0
  12. data/docs/XxeThreatDetectionResult.md +9 -0
  13. data/docs/ZipArchiveApi.md +62 -0
  14. data/lib/cloudmersive-convert-api-client.rb +6 -0
  15. data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +165 -0
  16. data/lib/cloudmersive-convert-api-client/api/edit_html_api.rb +55 -0
  17. data/lib/cloudmersive-convert-api-client/api/merge_document_api.rb +148 -0
  18. data/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +220 -0
  19. data/lib/cloudmersive-convert-api-client/api/zip_archive_api.rb +63 -0
  20. data/lib/cloudmersive-convert-api-client/models/get_macros_response.rb +196 -0
  21. data/lib/cloudmersive-convert-api-client/models/html_get_links_response.rb +198 -0
  22. data/lib/cloudmersive-convert-api-client/models/html_hyperlink.rb +196 -0
  23. data/lib/cloudmersive-convert-api-client/models/html_ssrf_threat_check_result.rb +208 -0
  24. data/lib/cloudmersive-convert-api-client/models/html_threat_link.rb +196 -0
  25. data/lib/cloudmersive-convert-api-client/models/xxe_threat_detection_result.rb +196 -0
  26. data/lib/cloudmersive-convert-api-client/version.rb +1 -1
  27. data/spec/api/edit_document_api_spec.rb +36 -0
  28. data/spec/api/edit_html_api_spec.rb +14 -0
  29. data/spec/api/merge_document_api_spec.rb +34 -0
  30. data/spec/api/validate_document_api_spec.rb +48 -0
  31. data/spec/api/zip_archive_api_spec.rb +14 -0
  32. data/spec/models/get_macros_response_spec.rb +47 -0
  33. data/spec/models/html_get_links_response_spec.rb +47 -0
  34. data/spec/models/html_hyperlink_spec.rb +47 -0
  35. data/spec/models/html_ssrf_threat_check_result_spec.rb +53 -0
  36. data/spec/models/html_threat_link_spec.rb +47 -0
  37. data/spec/models/xxe_threat_detection_result_spec.rb +47 -0
  38. metadata +20 -2
@@ -130,6 +130,7 @@ require 'cloudmersive-convert-api-client/models/get_docx_tables_request'
130
130
  require 'cloudmersive-convert-api-client/models/get_docx_tables_response'
131
131
  require 'cloudmersive-convert-api-client/models/get_file_type_icon_result'
132
132
  require 'cloudmersive-convert-api-client/models/get_image_info_result'
133
+ require 'cloudmersive-convert-api-client/models/get_macros_response'
133
134
  require 'cloudmersive-convert-api-client/models/get_pdf_annotations_result'
134
135
  require 'cloudmersive-convert-api-client/models/get_xlsx_cell_by_identifier_request'
135
136
  require 'cloudmersive-convert-api-client/models/get_xlsx_cell_by_identifier_response'
@@ -147,10 +148,14 @@ require 'cloudmersive-convert-api-client/models/get_xlsx_styles_request'
147
148
  require 'cloudmersive-convert-api-client/models/get_xlsx_styles_response'
148
149
  require 'cloudmersive-convert-api-client/models/get_xlsx_worksheets_request'
149
150
  require 'cloudmersive-convert-api-client/models/get_xlsx_worksheets_response'
151
+ require 'cloudmersive-convert-api-client/models/html_get_links_response'
152
+ require 'cloudmersive-convert-api-client/models/html_hyperlink'
150
153
  require 'cloudmersive-convert-api-client/models/html_md_result'
154
+ require 'cloudmersive-convert-api-client/models/html_ssrf_threat_check_result'
151
155
  require 'cloudmersive-convert-api-client/models/html_template_application_request'
152
156
  require 'cloudmersive-convert-api-client/models/html_template_application_response'
153
157
  require 'cloudmersive-convert-api-client/models/html_template_operation'
158
+ require 'cloudmersive-convert-api-client/models/html_threat_link'
154
159
  require 'cloudmersive-convert-api-client/models/html_to_office_request'
155
160
  require 'cloudmersive-convert-api-client/models/html_to_pdf_request'
156
161
  require 'cloudmersive-convert-api-client/models/html_to_png_request'
@@ -256,6 +261,7 @@ require 'cloudmersive-convert-api-client/models/xml_remove_all_children_with_x_p
256
261
  require 'cloudmersive-convert-api-client/models/xml_remove_with_x_path_result'
257
262
  require 'cloudmersive-convert-api-client/models/xml_replace_with_x_path_result'
258
263
  require 'cloudmersive-convert-api-client/models/xml_set_value_with_x_path_result'
264
+ require 'cloudmersive-convert-api-client/models/xxe_threat_detection_result'
259
265
  require 'cloudmersive-convert-api-client/models/zip_directory'
260
266
  require 'cloudmersive-convert-api-client/models/zip_encryption_advanced_request'
261
267
  require 'cloudmersive-convert-api-client/models/zip_extract_response'
@@ -779,6 +779,61 @@ module CloudmersiveConvertApiClient
779
779
  end
780
780
  return data, status_code, headers
781
781
  end
782
+ # Get macro information from a Word DOCX/DOCM document
783
+ # Returns information about the Macros (e.g. VBA) defined in the Word Document
784
+ # @param input_file Input file to perform the operation on.
785
+ # @param [Hash] opts the optional parameters
786
+ # @return [GetMacrosResponse]
787
+ def edit_document_docx_get_macro_information(input_file, opts = {})
788
+ data, _status_code, _headers = edit_document_docx_get_macro_information_with_http_info(input_file, opts)
789
+ data
790
+ end
791
+
792
+ # Get macro information from a Word DOCX/DOCM document
793
+ # Returns information about the Macros (e.g. VBA) defined in the Word Document
794
+ # @param input_file Input file to perform the operation on.
795
+ # @param [Hash] opts the optional parameters
796
+ # @return [Array<(GetMacrosResponse, Fixnum, Hash)>] GetMacrosResponse data, response status code and response headers
797
+ def edit_document_docx_get_macro_information_with_http_info(input_file, opts = {})
798
+ if @api_client.config.debugging
799
+ @api_client.config.logger.debug 'Calling API: EditDocumentApi.edit_document_docx_get_macro_information ...'
800
+ end
801
+ # verify the required parameter 'input_file' is set
802
+ if @api_client.config.client_side_validation && input_file.nil?
803
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditDocumentApi.edit_document_docx_get_macro_information"
804
+ end
805
+ # resource path
806
+ local_var_path = '/convert/edit/docx/get-macros'
807
+
808
+ # query parameters
809
+ query_params = {}
810
+
811
+ # header parameters
812
+ header_params = {}
813
+ # HTTP header 'Accept' (if needed)
814
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
815
+ # HTTP header 'Content-Type'
816
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
817
+
818
+ # form parameters
819
+ form_params = {}
820
+ form_params['inputFile'] = input_file
821
+
822
+ # http body (model)
823
+ post_body = nil
824
+ auth_names = ['Apikey']
825
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
826
+ :header_params => header_params,
827
+ :query_params => query_params,
828
+ :form_params => form_params,
829
+ :body => post_body,
830
+ :auth_names => auth_names,
831
+ :return_type => 'GetMacrosResponse')
832
+ if @api_client.config.debugging
833
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_get_macro_information\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
834
+ end
835
+ return data, status_code, headers
836
+ end
782
837
  # Get all metadata properties in Word DOCX document
783
838
  # Returns all the metadata properties in an Office Word Document (docx)
784
839
  # @param input_file Input file to perform the operation on.
@@ -2185,6 +2240,61 @@ module CloudmersiveConvertApiClient
2185
2240
  end
2186
2241
  return data, status_code, headers
2187
2242
  end
2243
+ # Get macro information from a PowerPoint PPTX/PPTM presentation document
2244
+ # Returns information about the Macros (e.g. VBA) defined in the PowerPoint Document
2245
+ # @param input_file Input file to perform the operation on.
2246
+ # @param [Hash] opts the optional parameters
2247
+ # @return [GetMacrosResponse]
2248
+ def edit_document_pptx_get_macro_information(input_file, opts = {})
2249
+ data, _status_code, _headers = edit_document_pptx_get_macro_information_with_http_info(input_file, opts)
2250
+ data
2251
+ end
2252
+
2253
+ # Get macro information from a PowerPoint PPTX/PPTM presentation document
2254
+ # Returns information about the Macros (e.g. VBA) defined in the PowerPoint Document
2255
+ # @param input_file Input file to perform the operation on.
2256
+ # @param [Hash] opts the optional parameters
2257
+ # @return [Array<(GetMacrosResponse, Fixnum, Hash)>] GetMacrosResponse data, response status code and response headers
2258
+ def edit_document_pptx_get_macro_information_with_http_info(input_file, opts = {})
2259
+ if @api_client.config.debugging
2260
+ @api_client.config.logger.debug 'Calling API: EditDocumentApi.edit_document_pptx_get_macro_information ...'
2261
+ end
2262
+ # verify the required parameter 'input_file' is set
2263
+ if @api_client.config.client_side_validation && input_file.nil?
2264
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditDocumentApi.edit_document_pptx_get_macro_information"
2265
+ end
2266
+ # resource path
2267
+ local_var_path = '/convert/edit/pptx/get-macros'
2268
+
2269
+ # query parameters
2270
+ query_params = {}
2271
+
2272
+ # header parameters
2273
+ header_params = {}
2274
+ # HTTP header 'Accept' (if needed)
2275
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
2276
+ # HTTP header 'Content-Type'
2277
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2278
+
2279
+ # form parameters
2280
+ form_params = {}
2281
+ form_params['inputFile'] = input_file
2282
+
2283
+ # http body (model)
2284
+ post_body = nil
2285
+ auth_names = ['Apikey']
2286
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2287
+ :header_params => header_params,
2288
+ :query_params => query_params,
2289
+ :form_params => form_params,
2290
+ :body => post_body,
2291
+ :auth_names => auth_names,
2292
+ :return_type => 'GetMacrosResponse')
2293
+ if @api_client.config.debugging
2294
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_pptx_get_macro_information\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2295
+ end
2296
+ return data, status_code, headers
2297
+ end
2188
2298
  # Replace string in PowerPoint PPTX presentation
2189
2299
  # Replace all instances of a string in an Office PowerPoint Document (pptx)
2190
2300
  # @param req_config Replacement document configuration input
@@ -2887,6 +2997,61 @@ module CloudmersiveConvertApiClient
2887
2997
  end
2888
2998
  return data, status_code, headers
2889
2999
  end
3000
+ # Get macro information from a Excel XLSX/XLSM spreadsheet, worksheet
3001
+ # Returns information about the Macros (e.g. VBA) defined in the Excel Spreadsheet
3002
+ # @param input_file Input file to perform the operation on.
3003
+ # @param [Hash] opts the optional parameters
3004
+ # @return [GetMacrosResponse]
3005
+ def edit_document_xlsx_get_macro_information(input_file, opts = {})
3006
+ data, _status_code, _headers = edit_document_xlsx_get_macro_information_with_http_info(input_file, opts)
3007
+ data
3008
+ end
3009
+
3010
+ # Get macro information from a Excel XLSX/XLSM spreadsheet, worksheet
3011
+ # Returns information about the Macros (e.g. VBA) defined in the Excel Spreadsheet
3012
+ # @param input_file Input file to perform the operation on.
3013
+ # @param [Hash] opts the optional parameters
3014
+ # @return [Array<(GetMacrosResponse, Fixnum, Hash)>] GetMacrosResponse data, response status code and response headers
3015
+ def edit_document_xlsx_get_macro_information_with_http_info(input_file, opts = {})
3016
+ if @api_client.config.debugging
3017
+ @api_client.config.logger.debug 'Calling API: EditDocumentApi.edit_document_xlsx_get_macro_information ...'
3018
+ end
3019
+ # verify the required parameter 'input_file' is set
3020
+ if @api_client.config.client_side_validation && input_file.nil?
3021
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditDocumentApi.edit_document_xlsx_get_macro_information"
3022
+ end
3023
+ # resource path
3024
+ local_var_path = '/convert/edit/xlsx/get-macros'
3025
+
3026
+ # query parameters
3027
+ query_params = {}
3028
+
3029
+ # header parameters
3030
+ header_params = {}
3031
+ # HTTP header 'Accept' (if needed)
3032
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
3033
+ # HTTP header 'Content-Type'
3034
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3035
+
3036
+ # form parameters
3037
+ form_params = {}
3038
+ form_params['inputFile'] = input_file
3039
+
3040
+ # http body (model)
3041
+ post_body = nil
3042
+ auth_names = ['Apikey']
3043
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3044
+ :header_params => header_params,
3045
+ :query_params => query_params,
3046
+ :form_params => form_params,
3047
+ :body => post_body,
3048
+ :auth_names => auth_names,
3049
+ :return_type => 'GetMacrosResponse')
3050
+ if @api_client.config.debugging
3051
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_xlsx_get_macro_information\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3052
+ end
3053
+ return data, status_code, headers
3054
+ end
2890
3055
  # Get rows and cells from a Excel XLSX spreadsheet, worksheet
2891
3056
  # Returns the rows and cells defined in the Excel Spreadsheet worksheet
2892
3057
  # @param input Document input request
@@ -335,5 +335,60 @@ module CloudmersiveConvertApiClient
335
335
  end
336
336
  return data, status_code, headers
337
337
  end
338
+ # Extract resolved link URLs from HTML File
339
+ # Extracts the resolved link URLs, fully-qualified if possible, from an input HTML file.
340
+ # @param [Hash] opts the optional parameters
341
+ # @option opts [File] :input_file Optional: Input file to perform the operation on.
342
+ # @option opts [String] :input_file_url Optional: URL of a file to operate on as input.
343
+ # @option opts [String] :base_url Optional: Base URL of the page, such as https://mydomain.com
344
+ # @return [HtmlGetLinksResponse]
345
+ def edit_html_html_get_links(opts = {})
346
+ data, _status_code, _headers = edit_html_html_get_links_with_http_info(opts)
347
+ data
348
+ end
349
+
350
+ # Extract resolved link URLs from HTML File
351
+ # Extracts the resolved link URLs, fully-qualified if possible, from an input HTML file.
352
+ # @param [Hash] opts the optional parameters
353
+ # @option opts [File] :input_file Optional: Input file to perform the operation on.
354
+ # @option opts [String] :input_file_url Optional: URL of a file to operate on as input.
355
+ # @option opts [String] :base_url Optional: Base URL of the page, such as https://mydomain.com
356
+ # @return [Array<(HtmlGetLinksResponse, Fixnum, Hash)>] HtmlGetLinksResponse data, response status code and response headers
357
+ def edit_html_html_get_links_with_http_info(opts = {})
358
+ if @api_client.config.debugging
359
+ @api_client.config.logger.debug 'Calling API: EditHtmlApi.edit_html_html_get_links ...'
360
+ end
361
+ # resource path
362
+ local_var_path = '/convert/edit/html/extract/links'
363
+
364
+ # query parameters
365
+ query_params = {}
366
+
367
+ # header parameters
368
+ header_params = {}
369
+ # HTTP header 'Accept' (if needed)
370
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
371
+ header_params[:'inputFileUrl'] = opts[:'input_file_url'] if !opts[:'input_file_url'].nil?
372
+ header_params[:'baseUrl'] = opts[:'base_url'] if !opts[:'base_url'].nil?
373
+
374
+ # form parameters
375
+ form_params = {}
376
+ form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
377
+
378
+ # http body (model)
379
+ post_body = nil
380
+ auth_names = ['Apikey']
381
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
382
+ :header_params => header_params,
383
+ :query_params => query_params,
384
+ :form_params => form_params,
385
+ :body => post_body,
386
+ :auth_names => auth_names,
387
+ :return_type => 'HtmlGetLinksResponse')
388
+ if @api_client.config.debugging
389
+ @api_client.config.logger.debug "API called: EditHtmlApi#edit_html_html_get_links\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
390
+ end
391
+ return data, status_code, headers
392
+ end
338
393
  end
339
394
  end
@@ -167,6 +167,154 @@ module CloudmersiveConvertApiClient
167
167
  end
168
168
  return data, status_code, headers
169
169
  end
170
+ # Merge Two HTML (HTM) Files Together
171
+ # Combine two HTML (.HTM) files into a single text document, preserving the order of the input documents in the combined document by stacking them vertically. The title will be taken from the first document.
172
+ # @param input_file1 First input file to perform the operation on.
173
+ # @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
174
+ # @param [Hash] opts the optional parameters
175
+ # @return [Object]
176
+ def merge_document_html(input_file1, input_file2, opts = {})
177
+ data, _status_code, _headers = merge_document_html_with_http_info(input_file1, input_file2, opts)
178
+ data
179
+ end
180
+
181
+ # Merge Two HTML (HTM) Files Together
182
+ # Combine two HTML (.HTM) files into a single text document, preserving the order of the input documents in the combined document by stacking them vertically. The title will be taken from the first document.
183
+ # @param input_file1 First input file to perform the operation on.
184
+ # @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
185
+ # @param [Hash] opts the optional parameters
186
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
187
+ def merge_document_html_with_http_info(input_file1, input_file2, opts = {})
188
+ if @api_client.config.debugging
189
+ @api_client.config.logger.debug 'Calling API: MergeDocumentApi.merge_document_html ...'
190
+ end
191
+ # verify the required parameter 'input_file1' is set
192
+ if @api_client.config.client_side_validation && input_file1.nil?
193
+ fail ArgumentError, "Missing the required parameter 'input_file1' when calling MergeDocumentApi.merge_document_html"
194
+ end
195
+ # verify the required parameter 'input_file2' is set
196
+ if @api_client.config.client_side_validation && input_file2.nil?
197
+ fail ArgumentError, "Missing the required parameter 'input_file2' when calling MergeDocumentApi.merge_document_html"
198
+ end
199
+ # resource path
200
+ local_var_path = '/convert/merge/html'
201
+
202
+ # query parameters
203
+ query_params = {}
204
+
205
+ # header parameters
206
+ header_params = {}
207
+ # HTTP header 'Accept' (if needed)
208
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
209
+ # HTTP header 'Content-Type'
210
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
211
+
212
+ # form parameters
213
+ form_params = {}
214
+ form_params['inputFile1'] = input_file1
215
+ form_params['inputFile2'] = input_file2
216
+
217
+ # http body (model)
218
+ post_body = nil
219
+ auth_names = ['Apikey']
220
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
221
+ :header_params => header_params,
222
+ :query_params => query_params,
223
+ :form_params => form_params,
224
+ :body => post_body,
225
+ :auth_names => auth_names,
226
+ :return_type => 'Object')
227
+ if @api_client.config.debugging
228
+ @api_client.config.logger.debug "API called: MergeDocumentApi#merge_document_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
229
+ end
230
+ return data, status_code, headers
231
+ end
232
+ # Merge Multple HTML (HTM) Files Together
233
+ # Combine multiple HTML (.HTM) files into a single text document, preserving the order of the input documents in the combined document by stacking them vertically. The title will be taken from the first document.
234
+ # @param input_file1 First input file to perform the operation on.
235
+ # @param input_file2 Second input file to perform the operation on.
236
+ # @param [Hash] opts the optional parameters
237
+ # @option opts [File] :input_file3 Third input file to perform the operation on.
238
+ # @option opts [File] :input_file4 Fourth input file to perform the operation on.
239
+ # @option opts [File] :input_file5 Fifth input file to perform the operation on.
240
+ # @option opts [File] :input_file6 Sixth input file to perform the operation on.
241
+ # @option opts [File] :input_file7 Seventh input file to perform the operation on.
242
+ # @option opts [File] :input_file8 Eighth input file to perform the operation on.
243
+ # @option opts [File] :input_file9 Ninth input file to perform the operation on.
244
+ # @option opts [File] :input_file10 Tenth input file to perform the operation on.
245
+ # @return [String]
246
+ def merge_document_html_multi(input_file1, input_file2, opts = {})
247
+ data, _status_code, _headers = merge_document_html_multi_with_http_info(input_file1, input_file2, opts)
248
+ data
249
+ end
250
+
251
+ # Merge Multple HTML (HTM) Files Together
252
+ # Combine multiple HTML (.HTM) files into a single text document, preserving the order of the input documents in the combined document by stacking them vertically. The title will be taken from the first document.
253
+ # @param input_file1 First input file to perform the operation on.
254
+ # @param input_file2 Second input file to perform the operation on.
255
+ # @param [Hash] opts the optional parameters
256
+ # @option opts [File] :input_file3 Third input file to perform the operation on.
257
+ # @option opts [File] :input_file4 Fourth input file to perform the operation on.
258
+ # @option opts [File] :input_file5 Fifth input file to perform the operation on.
259
+ # @option opts [File] :input_file6 Sixth input file to perform the operation on.
260
+ # @option opts [File] :input_file7 Seventh input file to perform the operation on.
261
+ # @option opts [File] :input_file8 Eighth input file to perform the operation on.
262
+ # @option opts [File] :input_file9 Ninth input file to perform the operation on.
263
+ # @option opts [File] :input_file10 Tenth input file to perform the operation on.
264
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
265
+ def merge_document_html_multi_with_http_info(input_file1, input_file2, opts = {})
266
+ if @api_client.config.debugging
267
+ @api_client.config.logger.debug 'Calling API: MergeDocumentApi.merge_document_html_multi ...'
268
+ end
269
+ # verify the required parameter 'input_file1' is set
270
+ if @api_client.config.client_side_validation && input_file1.nil?
271
+ fail ArgumentError, "Missing the required parameter 'input_file1' when calling MergeDocumentApi.merge_document_html_multi"
272
+ end
273
+ # verify the required parameter 'input_file2' is set
274
+ if @api_client.config.client_side_validation && input_file2.nil?
275
+ fail ArgumentError, "Missing the required parameter 'input_file2' when calling MergeDocumentApi.merge_document_html_multi"
276
+ end
277
+ # resource path
278
+ local_var_path = '/convert/merge/html/multi'
279
+
280
+ # query parameters
281
+ query_params = {}
282
+
283
+ # header parameters
284
+ header_params = {}
285
+ # HTTP header 'Accept' (if needed)
286
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
287
+ # HTTP header 'Content-Type'
288
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
289
+
290
+ # form parameters
291
+ form_params = {}
292
+ form_params['inputFile1'] = input_file1
293
+ form_params['inputFile2'] = input_file2
294
+ form_params['inputFile3'] = opts[:'input_file3'] if !opts[:'input_file3'].nil?
295
+ form_params['inputFile4'] = opts[:'input_file4'] if !opts[:'input_file4'].nil?
296
+ form_params['inputFile5'] = opts[:'input_file5'] if !opts[:'input_file5'].nil?
297
+ form_params['inputFile6'] = opts[:'input_file6'] if !opts[:'input_file6'].nil?
298
+ form_params['inputFile7'] = opts[:'input_file7'] if !opts[:'input_file7'].nil?
299
+ form_params['inputFile8'] = opts[:'input_file8'] if !opts[:'input_file8'].nil?
300
+ form_params['inputFile9'] = opts[:'input_file9'] if !opts[:'input_file9'].nil?
301
+ form_params['inputFile10'] = opts[:'input_file10'] if !opts[:'input_file10'].nil?
302
+
303
+ # http body (model)
304
+ post_body = nil
305
+ auth_names = ['Apikey']
306
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
307
+ :header_params => header_params,
308
+ :query_params => query_params,
309
+ :form_params => form_params,
310
+ :body => post_body,
311
+ :auth_names => auth_names,
312
+ :return_type => 'String')
313
+ if @api_client.config.debugging
314
+ @api_client.config.logger.debug "API called: MergeDocumentApi#merge_document_html_multi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
315
+ end
316
+ return data, status_code, headers
317
+ end
170
318
  # Merge Two PDF Files Together
171
319
  # Combine two PDF files (pdf) into a single PDF document, preserving the order of the input documents in the combined document
172
320
  # @param input_file1 First input file to perform the operation on.
@@ -349,6 +349,61 @@ module CloudmersiveConvertApiClient
349
349
  end
350
350
  return data, status_code, headers
351
351
  end
352
+ # Validate an HTML file and checks for SSRF threats
353
+ # Validate an HTML document file and checks for SSRF (Server-side Request Forgery) threats in the file; if the document is not valid, identifies the errors in the document
354
+ # @param input_file Input file to perform the operation on.
355
+ # @param [Hash] opts the optional parameters
356
+ # @return [HtmlSsrfThreatCheckResult]
357
+ def validate_document_html_ssrf_validation(input_file, opts = {})
358
+ data, _status_code, _headers = validate_document_html_ssrf_validation_with_http_info(input_file, opts)
359
+ data
360
+ end
361
+
362
+ # Validate an HTML file and checks for SSRF threats
363
+ # Validate an HTML document file and checks for SSRF (Server-side Request Forgery) threats in the file; if the document is not valid, identifies the errors in the document
364
+ # @param input_file Input file to perform the operation on.
365
+ # @param [Hash] opts the optional parameters
366
+ # @return [Array<(HtmlSsrfThreatCheckResult, Fixnum, Hash)>] HtmlSsrfThreatCheckResult data, response status code and response headers
367
+ def validate_document_html_ssrf_validation_with_http_info(input_file, opts = {})
368
+ if @api_client.config.debugging
369
+ @api_client.config.logger.debug 'Calling API: ValidateDocumentApi.validate_document_html_ssrf_validation ...'
370
+ end
371
+ # verify the required parameter 'input_file' is set
372
+ if @api_client.config.client_side_validation && input_file.nil?
373
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_html_ssrf_validation"
374
+ end
375
+ # resource path
376
+ local_var_path = '/convert/validate/html/ssrf-threat-check'
377
+
378
+ # query parameters
379
+ query_params = {}
380
+
381
+ # header parameters
382
+ header_params = {}
383
+ # HTTP header 'Accept' (if needed)
384
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
385
+ # HTTP header 'Content-Type'
386
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
387
+
388
+ # form parameters
389
+ form_params = {}
390
+ form_params['inputFile'] = input_file
391
+
392
+ # http body (model)
393
+ post_body = nil
394
+ auth_names = ['Apikey']
395
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
396
+ :header_params => header_params,
397
+ :query_params => query_params,
398
+ :form_params => form_params,
399
+ :body => post_body,
400
+ :auth_names => auth_names,
401
+ :return_type => 'HtmlSsrfThreatCheckResult')
402
+ if @api_client.config.debugging
403
+ @api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_html_ssrf_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
404
+ end
405
+ return data, status_code, headers
406
+ end
352
407
  # Validate an HTML file
353
408
  # Validate an HTML document file; if the document is not valid, identifies the errors in the document
354
409
  # @param input_file Input file to perform the operation on.
@@ -459,6 +514,61 @@ module CloudmersiveConvertApiClient
459
514
  end
460
515
  return data, status_code, headers
461
516
  end
517
+ # Validate a JPG File
518
+ # Validate a JPEG image file; if the document is not valid, identifies the errors in the document..
519
+ # @param input_file Input file to perform the operation on.
520
+ # @param [Hash] opts the optional parameters
521
+ # @return [DocumentValidationResult]
522
+ def validate_document_jpg_validation(input_file, opts = {})
523
+ data, _status_code, _headers = validate_document_jpg_validation_with_http_info(input_file, opts)
524
+ data
525
+ end
526
+
527
+ # Validate a JPG File
528
+ # Validate a JPEG image file; if the document is not valid, identifies the errors in the document..
529
+ # @param input_file Input file to perform the operation on.
530
+ # @param [Hash] opts the optional parameters
531
+ # @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
532
+ def validate_document_jpg_validation_with_http_info(input_file, opts = {})
533
+ if @api_client.config.debugging
534
+ @api_client.config.logger.debug 'Calling API: ValidateDocumentApi.validate_document_jpg_validation ...'
535
+ end
536
+ # verify the required parameter 'input_file' is set
537
+ if @api_client.config.client_side_validation && input_file.nil?
538
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_jpg_validation"
539
+ end
540
+ # resource path
541
+ local_var_path = '/convert/validate/jpg'
542
+
543
+ # query parameters
544
+ query_params = {}
545
+
546
+ # header parameters
547
+ header_params = {}
548
+ # HTTP header 'Accept' (if needed)
549
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
550
+ # HTTP header 'Content-Type'
551
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
552
+
553
+ # form parameters
554
+ form_params = {}
555
+ form_params['inputFile'] = input_file
556
+
557
+ # http body (model)
558
+ post_body = nil
559
+ auth_names = ['Apikey']
560
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
561
+ :header_params => header_params,
562
+ :query_params => query_params,
563
+ :form_params => form_params,
564
+ :body => post_body,
565
+ :auth_names => auth_names,
566
+ :return_type => 'DocumentValidationResult')
567
+ if @api_client.config.debugging
568
+ @api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_jpg_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
569
+ end
570
+ return data, status_code, headers
571
+ end
462
572
  # Validate a JSON file
463
573
  # Validate a JSON (JavaScript Object Notation) document file; if the document is not valid, identifies the errors in the document
464
574
  # @param input_file Input file to perform the operation on.
@@ -624,6 +734,61 @@ module CloudmersiveConvertApiClient
624
734
  end
625
735
  return data, status_code, headers
626
736
  end
737
+ # Validate a PNG File
738
+ # Validate a PNG image file; if the document is not valid, identifies the errors in the document.
739
+ # @param input_file Input file to perform the operation on.
740
+ # @param [Hash] opts the optional parameters
741
+ # @return [DocumentValidationResult]
742
+ def validate_document_png_validation(input_file, opts = {})
743
+ data, _status_code, _headers = validate_document_png_validation_with_http_info(input_file, opts)
744
+ data
745
+ end
746
+
747
+ # Validate a PNG File
748
+ # Validate a PNG image file; if the document is not valid, identifies the errors in the document.
749
+ # @param input_file Input file to perform the operation on.
750
+ # @param [Hash] opts the optional parameters
751
+ # @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
752
+ def validate_document_png_validation_with_http_info(input_file, opts = {})
753
+ if @api_client.config.debugging
754
+ @api_client.config.logger.debug 'Calling API: ValidateDocumentApi.validate_document_png_validation ...'
755
+ end
756
+ # verify the required parameter 'input_file' is set
757
+ if @api_client.config.client_side_validation && input_file.nil?
758
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_png_validation"
759
+ end
760
+ # resource path
761
+ local_var_path = '/convert/validate/png'
762
+
763
+ # query parameters
764
+ query_params = {}
765
+
766
+ # header parameters
767
+ header_params = {}
768
+ # HTTP header 'Accept' (if needed)
769
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
770
+ # HTTP header 'Content-Type'
771
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
772
+
773
+ # form parameters
774
+ form_params = {}
775
+ form_params['inputFile'] = input_file
776
+
777
+ # http body (model)
778
+ post_body = nil
779
+ auth_names = ['Apikey']
780
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
781
+ :header_params => header_params,
782
+ :query_params => query_params,
783
+ :form_params => form_params,
784
+ :body => post_body,
785
+ :auth_names => auth_names,
786
+ :return_type => 'DocumentValidationResult')
787
+ if @api_client.config.debugging
788
+ @api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_png_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
789
+ end
790
+ return data, status_code, headers
791
+ end
627
792
  # Validate a PowerPoint presentation (PPTX)
628
793
  # Validate a PowerPoint presentation (PPTX); if the document is not valid, identifies the errors in the document
629
794
  # @param input_file Input file to perform the operation on.
@@ -954,6 +1119,61 @@ module CloudmersiveConvertApiClient
954
1119
  end
955
1120
  return data, status_code, headers
956
1121
  end
1122
+ # Validate an XML file for XML External Entity (XXE) threats
1123
+ # Validate an XML document file for XML External Entity (XXE) threats; if the document is not valid, identifies the errors in the document. XXE threats are a type of threat that exploits vulnerabilities in the XML standard relating to external or local entity URIs in XML documents.
1124
+ # @param input_file Input file to perform the operation on.
1125
+ # @param [Hash] opts the optional parameters
1126
+ # @return [XxeThreatDetectionResult]
1127
+ def validate_document_xml_xxe_threat_validation(input_file, opts = {})
1128
+ data, _status_code, _headers = validate_document_xml_xxe_threat_validation_with_http_info(input_file, opts)
1129
+ data
1130
+ end
1131
+
1132
+ # Validate an XML file for XML External Entity (XXE) threats
1133
+ # Validate an XML document file for XML External Entity (XXE) threats; if the document is not valid, identifies the errors in the document. XXE threats are a type of threat that exploits vulnerabilities in the XML standard relating to external or local entity URIs in XML documents.
1134
+ # @param input_file Input file to perform the operation on.
1135
+ # @param [Hash] opts the optional parameters
1136
+ # @return [Array<(XxeThreatDetectionResult, Fixnum, Hash)>] XxeThreatDetectionResult data, response status code and response headers
1137
+ def validate_document_xml_xxe_threat_validation_with_http_info(input_file, opts = {})
1138
+ if @api_client.config.debugging
1139
+ @api_client.config.logger.debug 'Calling API: ValidateDocumentApi.validate_document_xml_xxe_threat_validation ...'
1140
+ end
1141
+ # verify the required parameter 'input_file' is set
1142
+ if @api_client.config.client_side_validation && input_file.nil?
1143
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_xml_xxe_threat_validation"
1144
+ end
1145
+ # resource path
1146
+ local_var_path = '/convert/validate/xml/xxe-threats'
1147
+
1148
+ # query parameters
1149
+ query_params = {}
1150
+
1151
+ # header parameters
1152
+ header_params = {}
1153
+ # HTTP header 'Accept' (if needed)
1154
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
1155
+ # HTTP header 'Content-Type'
1156
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1157
+
1158
+ # form parameters
1159
+ form_params = {}
1160
+ form_params['inputFile'] = input_file
1161
+
1162
+ # http body (model)
1163
+ post_body = nil
1164
+ auth_names = ['Apikey']
1165
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1166
+ :header_params => header_params,
1167
+ :query_params => query_params,
1168
+ :form_params => form_params,
1169
+ :body => post_body,
1170
+ :auth_names => auth_names,
1171
+ :return_type => 'XxeThreatDetectionResult')
1172
+ if @api_client.config.debugging
1173
+ @api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_xml_xxe_threat_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1174
+ end
1175
+ return data, status_code, headers
1176
+ end
957
1177
  # Validate a Zip Archive file (zip)
958
1178
  # Validate a Zip archive file (ZIP)
959
1179
  # @param input_file Input file to perform the operation on.