cloudmersive-convert-api-client 2.1.0 → 2.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +28 -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 +110 -0
  8. data/docs/EditHtmlApi.md +60 -0
  9. data/docs/EditPdfApi.md +169 -0
  10. data/docs/GetDocxMetadataPropertiesResponse.md +16 -0
  11. data/docs/HtmlGetLinksResponse.md +9 -0
  12. data/docs/HtmlHyperlink.md +9 -0
  13. data/docs/HtmlSsrfThreatCheckResult.md +10 -0
  14. data/docs/HtmlThreatLink.md +9 -0
  15. data/docs/MergeDocumentApi.md +134 -0
  16. data/docs/ValidateDocumentApi.md +220 -0
  17. data/docs/ViewerToolsApi.md +8 -2
  18. data/lib/cloudmersive-convert-api-client.rb +7 -0
  19. data/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +117 -4
  20. data/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +156 -0
  21. data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +109 -0
  22. data/lib/cloudmersive-convert-api-client/api/edit_html_api.rb +55 -0
  23. data/lib/cloudmersive-convert-api-client/api/edit_pdf_api.rb +168 -0
  24. data/lib/cloudmersive-convert-api-client/api/merge_document_api.rb +148 -0
  25. data/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +220 -0
  26. data/lib/cloudmersive-convert-api-client/api/viewer_tools_api.rb +6 -0
  27. data/lib/cloudmersive-convert-api-client/models/docx_metadata_custom_property.rb +236 -0
  28. data/lib/cloudmersive-convert-api-client/models/docx_set_custom_metadata_properties_request.rb +223 -0
  29. data/lib/cloudmersive-convert-api-client/models/get_docx_metadata_properties_response.rb +268 -0
  30. data/lib/cloudmersive-convert-api-client/models/html_get_links_response.rb +198 -0
  31. data/lib/cloudmersive-convert-api-client/models/html_hyperlink.rb +196 -0
  32. data/lib/cloudmersive-convert-api-client/models/html_ssrf_threat_check_result.rb +208 -0
  33. data/lib/cloudmersive-convert-api-client/models/html_threat_link.rb +196 -0
  34. data/lib/cloudmersive-convert-api-client/version.rb +1 -1
  35. data/spec/api/convert_data_api_spec.rb +26 -1
  36. data/spec/api/convert_document_api_spec.rb +35 -0
  37. data/spec/api/edit_document_api_spec.rb +24 -0
  38. data/spec/api/edit_html_api_spec.rb +14 -0
  39. data/spec/api/edit_pdf_api_spec.rb +37 -0
  40. data/spec/api/merge_document_api_spec.rb +34 -0
  41. data/spec/api/validate_document_api_spec.rb +48 -0
  42. data/spec/api/viewer_tools_api_spec.rb +2 -0
  43. data/spec/models/docx_metadata_custom_property_spec.rb +71 -0
  44. data/spec/models/docx_set_custom_metadata_properties_request_spec.rb +53 -0
  45. data/spec/models/get_docx_metadata_properties_response_spec.rb +89 -0
  46. data/spec/models/html_get_links_response_spec.rb +47 -0
  47. data/spec/models/html_hyperlink_spec.rb +47 -0
  48. data/spec/models/html_ssrf_threat_check_result_spec.rb +53 -0
  49. data/spec/models/html_threat_link_spec.rb +47 -0
  50. metadata +23 -2
@@ -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
@@ -73,6 +73,64 @@ module CloudmersiveConvertApiClient
73
73
  end
74
74
  return data, status_code, headers
75
75
  end
76
+ # Convert a PDF file to PDF/A
77
+ # Converts the input PDF file to a PDF/A-1b or PDF/A-2b standardized PDF.
78
+ # @param input_file Input file to perform the operation on.
79
+ # @param [Hash] opts the optional parameters
80
+ # @option opts [String] :conformance_level Optional: Select the conformance level for PDF/A - specify &#39;1b&#39; for PDF/A-1b or specify &#39;2b&#39; for PDF/A-2b; default is PDF/A-1b
81
+ # @return [String]
82
+ def edit_pdf_convert_to_pdf_a(input_file, opts = {})
83
+ data, _status_code, _headers = edit_pdf_convert_to_pdf_a_with_http_info(input_file, opts)
84
+ data
85
+ end
86
+
87
+ # Convert a PDF file to PDF/A
88
+ # Converts the input PDF file to a PDF/A-1b or PDF/A-2b standardized PDF.
89
+ # @param input_file Input file to perform the operation on.
90
+ # @param [Hash] opts the optional parameters
91
+ # @option opts [String] :conformance_level Optional: Select the conformance level for PDF/A - specify &#39;1b&#39; for PDF/A-1b or specify &#39;2b&#39; for PDF/A-2b; default is PDF/A-1b
92
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
93
+ def edit_pdf_convert_to_pdf_a_with_http_info(input_file, opts = {})
94
+ if @api_client.config.debugging
95
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_convert_to_pdf_a ...'
96
+ end
97
+ # verify the required parameter 'input_file' is set
98
+ if @api_client.config.client_side_validation && input_file.nil?
99
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_convert_to_pdf_a"
100
+ end
101
+ # resource path
102
+ local_var_path = '/convert/edit/pdf/optimize/pdf-a'
103
+
104
+ # query parameters
105
+ query_params = {}
106
+
107
+ # header parameters
108
+ header_params = {}
109
+ # HTTP header 'Accept' (if needed)
110
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
111
+ # HTTP header 'Content-Type'
112
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
113
+ header_params[:'conformanceLevel'] = opts[:'conformance_level'] if !opts[:'conformance_level'].nil?
114
+
115
+ # form parameters
116
+ form_params = {}
117
+ form_params['inputFile'] = input_file
118
+
119
+ # http body (model)
120
+ post_body = nil
121
+ auth_names = ['Apikey']
122
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
123
+ :header_params => header_params,
124
+ :query_params => query_params,
125
+ :form_params => form_params,
126
+ :body => post_body,
127
+ :auth_names => auth_names,
128
+ :return_type => 'String')
129
+ if @api_client.config.debugging
130
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_convert_to_pdf_a\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
131
+ end
132
+ return data, status_code, headers
133
+ end
76
134
  # Decrypt and password-protect a PDF
77
135
  # Decrypt a PDF document with a password. Decrypted PDF will no longer require a password to open.
78
136
  # @param password Valid password for the PDF file
@@ -574,6 +632,61 @@ module CloudmersiveConvertApiClient
574
632
  end
575
633
  return data, status_code, headers
576
634
  end
635
+ # Linearize and optimize a PDF for streaming download
636
+ # Linearizes the content of a PDF to optimize it for streaming download, particularly over web streaming.
637
+ # @param input_file Input file to perform the operation on.
638
+ # @param [Hash] opts the optional parameters
639
+ # @return [String]
640
+ def edit_pdf_linearize(input_file, opts = {})
641
+ data, _status_code, _headers = edit_pdf_linearize_with_http_info(input_file, opts)
642
+ data
643
+ end
644
+
645
+ # Linearize and optimize a PDF for streaming download
646
+ # Linearizes the content of a PDF to optimize it for streaming download, particularly over web streaming.
647
+ # @param input_file Input file to perform the operation on.
648
+ # @param [Hash] opts the optional parameters
649
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
650
+ def edit_pdf_linearize_with_http_info(input_file, opts = {})
651
+ if @api_client.config.debugging
652
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_linearize ...'
653
+ end
654
+ # verify the required parameter 'input_file' is set
655
+ if @api_client.config.client_side_validation && input_file.nil?
656
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_linearize"
657
+ end
658
+ # resource path
659
+ local_var_path = '/convert/edit/pdf/optimize/linearize'
660
+
661
+ # query parameters
662
+ query_params = {}
663
+
664
+ # header parameters
665
+ header_params = {}
666
+ # HTTP header 'Accept' (if needed)
667
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
668
+ # HTTP header 'Content-Type'
669
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
670
+
671
+ # form parameters
672
+ form_params = {}
673
+ form_params['inputFile'] = input_file
674
+
675
+ # http body (model)
676
+ post_body = nil
677
+ auth_names = ['Apikey']
678
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
679
+ :header_params => header_params,
680
+ :query_params => query_params,
681
+ :form_params => form_params,
682
+ :body => post_body,
683
+ :auth_names => auth_names,
684
+ :return_type => 'String')
685
+ if @api_client.config.debugging
686
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_linearize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
687
+ end
688
+ return data, status_code, headers
689
+ end
577
690
  # Rasterize a PDF to an image-based PDF
578
691
  # Rasterize a PDF into an image-based PDF. The output is a PDF where each page is comprised of a high-resolution image, with all text, figures and other components removed.
579
692
  # @param input_file Input file to perform the operation on.
@@ -629,6 +742,61 @@ module CloudmersiveConvertApiClient
629
742
  end
630
743
  return data, status_code, headers
631
744
  end
745
+ # Reduce the file size and optimize a PDF
746
+ # Reduces the file size and optimizes the content of a PDF to minimize its file size.
747
+ # @param input_file Input file to perform the operation on.
748
+ # @param [Hash] opts the optional parameters
749
+ # @return [String]
750
+ def edit_pdf_reduce_file_size(input_file, opts = {})
751
+ data, _status_code, _headers = edit_pdf_reduce_file_size_with_http_info(input_file, opts)
752
+ data
753
+ end
754
+
755
+ # Reduce the file size and optimize a PDF
756
+ # Reduces the file size and optimizes the content of a PDF to minimize its file size.
757
+ # @param input_file Input file to perform the operation on.
758
+ # @param [Hash] opts the optional parameters
759
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
760
+ def edit_pdf_reduce_file_size_with_http_info(input_file, opts = {})
761
+ if @api_client.config.debugging
762
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_reduce_file_size ...'
763
+ end
764
+ # verify the required parameter 'input_file' is set
765
+ if @api_client.config.client_side_validation && input_file.nil?
766
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_reduce_file_size"
767
+ end
768
+ # resource path
769
+ local_var_path = '/convert/edit/pdf/optimize/reduce-file-size'
770
+
771
+ # query parameters
772
+ query_params = {}
773
+
774
+ # header parameters
775
+ header_params = {}
776
+ # HTTP header 'Accept' (if needed)
777
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
778
+ # HTTP header 'Content-Type'
779
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
780
+
781
+ # form parameters
782
+ form_params = {}
783
+ form_params['inputFile'] = input_file
784
+
785
+ # http body (model)
786
+ post_body = nil
787
+ auth_names = ['Apikey']
788
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
789
+ :header_params => header_params,
790
+ :query_params => query_params,
791
+ :form_params => form_params,
792
+ :body => post_body,
793
+ :auth_names => auth_names,
794
+ :return_type => 'String')
795
+ if @api_client.config.debugging
796
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_reduce_file_size\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
797
+ end
798
+ return data, status_code, headers
799
+ end
632
800
  # Remove all PDF annotations, including comments in the document
633
801
  # Removes all of the annotations, including comments and notes, in a PDF document.
634
802
  # @param input_file Input file to perform the operation on.
@@ -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.
@@ -789,6 +954,61 @@ module CloudmersiveConvertApiClient
789
954
  end
790
955
  return data, status_code, headers
791
956
  end
957
+ # Validate an TXT file
958
+ # Validate an TXT document file; if the document is not valid, identifies the errors in the document
959
+ # @param input_file Input file to perform the operation on.
960
+ # @param [Hash] opts the optional parameters
961
+ # @return [DocumentValidationResult]
962
+ def validate_document_txt_validation(input_file, opts = {})
963
+ data, _status_code, _headers = validate_document_txt_validation_with_http_info(input_file, opts)
964
+ data
965
+ end
966
+
967
+ # Validate an TXT file
968
+ # Validate an TXT document file; if the document is not valid, identifies the errors in the document
969
+ # @param input_file Input file to perform the operation on.
970
+ # @param [Hash] opts the optional parameters
971
+ # @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
972
+ def validate_document_txt_validation_with_http_info(input_file, opts = {})
973
+ if @api_client.config.debugging
974
+ @api_client.config.logger.debug 'Calling API: ValidateDocumentApi.validate_document_txt_validation ...'
975
+ end
976
+ # verify the required parameter 'input_file' is set
977
+ if @api_client.config.client_side_validation && input_file.nil?
978
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_txt_validation"
979
+ end
980
+ # resource path
981
+ local_var_path = '/convert/validate/txt'
982
+
983
+ # query parameters
984
+ query_params = {}
985
+
986
+ # header parameters
987
+ header_params = {}
988
+ # HTTP header 'Accept' (if needed)
989
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
990
+ # HTTP header 'Content-Type'
991
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
992
+
993
+ # form parameters
994
+ form_params = {}
995
+ form_params['inputFile'] = input_file
996
+
997
+ # http body (model)
998
+ post_body = nil
999
+ auth_names = ['Apikey']
1000
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1001
+ :header_params => header_params,
1002
+ :query_params => query_params,
1003
+ :form_params => form_params,
1004
+ :body => post_body,
1005
+ :auth_names => auth_names,
1006
+ :return_type => 'DocumentValidationResult')
1007
+ if @api_client.config.debugging
1008
+ @api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_txt_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1009
+ end
1010
+ return data, status_code, headers
1011
+ end
792
1012
  # Validate a Excel document (XLSX)
793
1013
  # Validate a Excel document (XLSX); if the document is not valid, identifies the errors in the document
794
1014
  # @param input_file Input file to perform the operation on.