cloudmersive-convert-api-client 2.1.1 → 2.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -4
  3. data/docs/DocxMetadataCustomProperty.md +13 -0
  4. data/docs/DocxSetCustomMetadataPropertiesRequest.md +10 -0
  5. data/docs/EditDocumentApi.md +275 -0
  6. data/docs/EditHtmlApi.md +60 -0
  7. data/docs/GetDocxMetadataPropertiesResponse.md +16 -0
  8. data/docs/GetMacrosResponse.md +9 -0
  9. data/docs/HtmlGetLinksResponse.md +9 -0
  10. data/docs/HtmlHyperlink.md +9 -0
  11. data/docs/HtmlSsrfThreatCheckResult.md +10 -0
  12. data/docs/HtmlThreatLink.md +9 -0
  13. data/docs/MergeDocumentApi.md +134 -0
  14. data/docs/ValidateDocumentApi.md +220 -0
  15. data/docs/ViewerToolsApi.md +8 -2
  16. data/lib/cloudmersive-convert-api-client.rb +8 -0
  17. data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +274 -0
  18. data/lib/cloudmersive-convert-api-client/api/edit_html_api.rb +55 -0
  19. data/lib/cloudmersive-convert-api-client/api/merge_document_api.rb +148 -0
  20. data/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +220 -0
  21. data/lib/cloudmersive-convert-api-client/api/viewer_tools_api.rb +6 -0
  22. data/lib/cloudmersive-convert-api-client/models/docx_metadata_custom_property.rb +236 -0
  23. data/lib/cloudmersive-convert-api-client/models/docx_set_custom_metadata_properties_request.rb +223 -0
  24. data/lib/cloudmersive-convert-api-client/models/get_docx_metadata_properties_response.rb +268 -0
  25. data/lib/cloudmersive-convert-api-client/models/get_macros_response.rb +196 -0
  26. data/lib/cloudmersive-convert-api-client/models/html_get_links_response.rb +198 -0
  27. data/lib/cloudmersive-convert-api-client/models/html_hyperlink.rb +196 -0
  28. data/lib/cloudmersive-convert-api-client/models/html_ssrf_threat_check_result.rb +208 -0
  29. data/lib/cloudmersive-convert-api-client/models/html_threat_link.rb +196 -0
  30. data/lib/cloudmersive-convert-api-client/version.rb +1 -1
  31. data/spec/api/edit_document_api_spec.rb +60 -0
  32. data/spec/api/edit_html_api_spec.rb +14 -0
  33. data/spec/api/merge_document_api_spec.rb +34 -0
  34. data/spec/api/validate_document_api_spec.rb +48 -0
  35. data/spec/api/viewer_tools_api_spec.rb +2 -0
  36. data/spec/models/docx_metadata_custom_property_spec.rb +71 -0
  37. data/spec/models/docx_set_custom_metadata_properties_request_spec.rb +53 -0
  38. data/spec/models/get_docx_metadata_properties_response_spec.rb +89 -0
  39. data/spec/models/get_macros_response_spec.rb +47 -0
  40. data/spec/models/html_get_links_response_spec.rb +47 -0
  41. data/spec/models/html_hyperlink_spec.rb +47 -0
  42. data/spec/models/html_ssrf_threat_check_result_spec.rb +53 -0
  43. data/spec/models/html_threat_link_spec.rb +47 -0
  44. metadata +26 -2
data/docs/EditHtmlApi.md CHANGED
@@ -9,6 +9,7 @@ Method | HTTP request | Description
9
9
  [**edit_html_html_append_image_inline**](EditHtmlApi.md#edit_html_html_append_image_inline) | **POST** /convert/edit/html/append/image/inline | Append a Base64 Inline Image to an HTML Document
10
10
  [**edit_html_html_append_paragraph**](EditHtmlApi.md#edit_html_html_append_paragraph) | **POST** /convert/edit/html/append/paragraph | Append a Paragraph to an HTML Document
11
11
  [**edit_html_html_create_blank_document**](EditHtmlApi.md#edit_html_html_create_blank_document) | **POST** /convert/edit/html/create/blank | Create a Blank HTML Document
12
+ [**edit_html_html_get_links**](EditHtmlApi.md#edit_html_html_get_links) | **POST** /convert/edit/html/extract/links | Extract resolved link URLs from HTML File
12
13
 
13
14
 
14
15
  # **edit_html_html_append_heading**
@@ -327,3 +328,62 @@ Name | Type | Description | Notes
327
328
 
328
329
 
329
330
 
331
+ # **edit_html_html_get_links**
332
+ > HtmlGetLinksResponse edit_html_html_get_links(opts)
333
+
334
+ Extract resolved link URLs from HTML File
335
+
336
+ Extracts the resolved link URLs, fully-qualified if possible, from an input HTML file.
337
+
338
+ ### Example
339
+ ```ruby
340
+ # load the gem
341
+ require 'cloudmersive-convert-api-client'
342
+ # setup authorization
343
+ CloudmersiveConvertApiClient.configure do |config|
344
+ # Configure API key authorization: Apikey
345
+ config.api_key['Apikey'] = 'YOUR API KEY'
346
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
347
+ #config.api_key_prefix['Apikey'] = 'Bearer'
348
+ end
349
+
350
+ api_instance = CloudmersiveConvertApiClient::EditHtmlApi.new
351
+
352
+ opts = {
353
+ input_file: File.new('/path/to/file.txt'), # File | Optional: Input file to perform the operation on.
354
+ input_file_url: 'input_file_url_example', # String | Optional: URL of a file to operate on as input.
355
+ base_url: 'base_url_example' # String | Optional: Base URL of the page, such as https://mydomain.com
356
+ }
357
+
358
+ begin
359
+ #Extract resolved link URLs from HTML File
360
+ result = api_instance.edit_html_html_get_links(opts)
361
+ p result
362
+ rescue CloudmersiveConvertApiClient::ApiError => e
363
+ puts "Exception when calling EditHtmlApi->edit_html_html_get_links: #{e}"
364
+ end
365
+ ```
366
+
367
+ ### Parameters
368
+
369
+ Name | Type | Description | Notes
370
+ ------------- | ------------- | ------------- | -------------
371
+ **input_file** | **File**| Optional: Input file to perform the operation on. | [optional]
372
+ **input_file_url** | **String**| Optional: URL of a file to operate on as input. | [optional]
373
+ **base_url** | **String**| Optional: Base URL of the page, such as https://mydomain.com | [optional]
374
+
375
+ ### Return type
376
+
377
+ [**HtmlGetLinksResponse**](HtmlGetLinksResponse.md)
378
+
379
+ ### Authorization
380
+
381
+ [Apikey](../README.md#Apikey)
382
+
383
+ ### HTTP request headers
384
+
385
+ - **Content-Type**: Not defined
386
+ - **Accept**: application/json, text/json, application/xml, text/xml
387
+
388
+
389
+
@@ -0,0 +1,16 @@
1
+ # CloudmersiveConvertApiClient::GetDocxMetadataPropertiesResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **company** | **String** | Name of the Company that authored the document, if available | [optional]
7
+ **manager** | **String** | Name of the Manager that authored the document, if available | [optional]
8
+ **application_version** | **String** | Application version that authored the document, if available | [optional]
9
+ **word_count** | **Integer** | Word count of the document | [optional]
10
+ **line_count** | **Integer** | Line count of the document | [optional]
11
+ **paragraph_count** | **Integer** | Paragraph count of the document | [optional]
12
+ **page_count** | **Integer** | Page count of the document | [optional]
13
+ **custom_properties** | [**Array<DocxMetadataCustomProperty>**](DocxMetadataCustomProperty.md) | Custom properties applied to the document | [optional]
14
+ **successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
15
+
16
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveConvertApiClient::GetMacrosResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
7
+ **contains_vba_macros** | **BOOLEAN** | True if the document contains VBA macros, false otherwise | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveConvertApiClient::HtmlGetLinksResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
7
+ **links** | [**Array<HtmlHyperlink>**](HtmlHyperlink.md) | All hyperlinks in the HTML document | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveConvertApiClient::HtmlHyperlink
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **anchortext** | **String** | Anchor text of the hyperlink, e.g. Click Here | [optional]
7
+ **url** | **String** | URL of the hyperlink; fully-qualified if possible, otherwise relative | [optional]
8
+
9
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveConvertApiClient::HtmlSsrfThreatCheckResult
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **is_valid** | **BOOLEAN** | True if the document is valid and has no errors, false otherwise | [optional]
7
+ **is_threat** | **BOOLEAN** | True if the document contains an SSRF threat, false otherwise | [optional]
8
+ **threat_links** | [**Array<HtmlThreatLink>**](HtmlThreatLink.md) | Links found in the input HTML that contains threats | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveConvertApiClient::HtmlThreatLink
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **link_url** | **String** | URL of the link | [optional]
7
+ **threat_level** | **String** | Threat assessment level; possible values are None, Low, Medium and High | [optional]
8
+
9
+
@@ -6,6 +6,8 @@ Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**merge_document_docx**](MergeDocumentApi.md#merge_document_docx) | **POST** /convert/merge/docx | Merge Two Word DOCX Together
8
8
  [**merge_document_docx_multi**](MergeDocumentApi.md#merge_document_docx_multi) | **POST** /convert/merge/docx/multi | Merge Multple Word DOCX Together
9
+ [**merge_document_html**](MergeDocumentApi.md#merge_document_html) | **POST** /convert/merge/html | Merge Two HTML (HTM) Files Together
10
+ [**merge_document_html_multi**](MergeDocumentApi.md#merge_document_html_multi) | **POST** /convert/merge/html/multi | Merge Multple HTML (HTM) Files Together
9
11
  [**merge_document_pdf**](MergeDocumentApi.md#merge_document_pdf) | **POST** /convert/merge/pdf | Merge Two PDF Files Together
10
12
  [**merge_document_pdf_multi**](MergeDocumentApi.md#merge_document_pdf_multi) | **POST** /convert/merge/pdf/multi | Merge Multple PDF Files Together
11
13
  [**merge_document_png**](MergeDocumentApi.md#merge_document_png) | **POST** /convert/merge/png/vertical | Merge Two PNG Files Together
@@ -150,6 +152,138 @@ Name | Type | Description | Notes
150
152
 
151
153
 
152
154
 
155
+ # **merge_document_html**
156
+ > Object merge_document_html(input_file1, input_file2)
157
+
158
+ Merge Two HTML (HTM) Files Together
159
+
160
+ 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.
161
+
162
+ ### Example
163
+ ```ruby
164
+ # load the gem
165
+ require 'cloudmersive-convert-api-client'
166
+ # setup authorization
167
+ CloudmersiveConvertApiClient.configure do |config|
168
+ # Configure API key authorization: Apikey
169
+ config.api_key['Apikey'] = 'YOUR API KEY'
170
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
171
+ #config.api_key_prefix['Apikey'] = 'Bearer'
172
+ end
173
+
174
+ api_instance = CloudmersiveConvertApiClient::MergeDocumentApi.new
175
+
176
+ input_file1 = File.new('/path/to/file.txt') # File | First input file to perform the operation on.
177
+
178
+ input_file2 = File.new('/path/to/file.txt') # File | Second input file to perform the operation on (more than 2 can be supplied).
179
+
180
+
181
+ begin
182
+ #Merge Two HTML (HTM) Files Together
183
+ result = api_instance.merge_document_html(input_file1, input_file2)
184
+ p result
185
+ rescue CloudmersiveConvertApiClient::ApiError => e
186
+ puts "Exception when calling MergeDocumentApi->merge_document_html: #{e}"
187
+ end
188
+ ```
189
+
190
+ ### Parameters
191
+
192
+ Name | Type | Description | Notes
193
+ ------------- | ------------- | ------------- | -------------
194
+ **input_file1** | **File**| First input file to perform the operation on. |
195
+ **input_file2** | **File**| Second input file to perform the operation on (more than 2 can be supplied). |
196
+
197
+ ### Return type
198
+
199
+ **Object**
200
+
201
+ ### Authorization
202
+
203
+ [Apikey](../README.md#Apikey)
204
+
205
+ ### HTTP request headers
206
+
207
+ - **Content-Type**: multipart/form-data
208
+ - **Accept**: application/octet-stream
209
+
210
+
211
+
212
+ # **merge_document_html_multi**
213
+ > String merge_document_html_multi(input_file1, input_file2, opts)
214
+
215
+ Merge Multple HTML (HTM) Files Together
216
+
217
+ 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.
218
+
219
+ ### Example
220
+ ```ruby
221
+ # load the gem
222
+ require 'cloudmersive-convert-api-client'
223
+ # setup authorization
224
+ CloudmersiveConvertApiClient.configure do |config|
225
+ # Configure API key authorization: Apikey
226
+ config.api_key['Apikey'] = 'YOUR API KEY'
227
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
228
+ #config.api_key_prefix['Apikey'] = 'Bearer'
229
+ end
230
+
231
+ api_instance = CloudmersiveConvertApiClient::MergeDocumentApi.new
232
+
233
+ input_file1 = File.new('/path/to/file.txt') # File | First input file to perform the operation on.
234
+
235
+ input_file2 = File.new('/path/to/file.txt') # File | Second input file to perform the operation on.
236
+
237
+ opts = {
238
+ input_file3: File.new('/path/to/file.txt'), # File | Third input file to perform the operation on.
239
+ input_file4: File.new('/path/to/file.txt'), # File | Fourth input file to perform the operation on.
240
+ input_file5: File.new('/path/to/file.txt'), # File | Fifth input file to perform the operation on.
241
+ input_file6: File.new('/path/to/file.txt'), # File | Sixth input file to perform the operation on.
242
+ input_file7: File.new('/path/to/file.txt'), # File | Seventh input file to perform the operation on.
243
+ input_file8: File.new('/path/to/file.txt'), # File | Eighth input file to perform the operation on.
244
+ input_file9: File.new('/path/to/file.txt'), # File | Ninth input file to perform the operation on.
245
+ input_file10: File.new('/path/to/file.txt') # File | Tenth input file to perform the operation on.
246
+ }
247
+
248
+ begin
249
+ #Merge Multple HTML (HTM) Files Together
250
+ result = api_instance.merge_document_html_multi(input_file1, input_file2, opts)
251
+ p result
252
+ rescue CloudmersiveConvertApiClient::ApiError => e
253
+ puts "Exception when calling MergeDocumentApi->merge_document_html_multi: #{e}"
254
+ end
255
+ ```
256
+
257
+ ### Parameters
258
+
259
+ Name | Type | Description | Notes
260
+ ------------- | ------------- | ------------- | -------------
261
+ **input_file1** | **File**| First input file to perform the operation on. |
262
+ **input_file2** | **File**| Second input file to perform the operation on. |
263
+ **input_file3** | **File**| Third input file to perform the operation on. | [optional]
264
+ **input_file4** | **File**| Fourth input file to perform the operation on. | [optional]
265
+ **input_file5** | **File**| Fifth input file to perform the operation on. | [optional]
266
+ **input_file6** | **File**| Sixth input file to perform the operation on. | [optional]
267
+ **input_file7** | **File**| Seventh input file to perform the operation on. | [optional]
268
+ **input_file8** | **File**| Eighth input file to perform the operation on. | [optional]
269
+ **input_file9** | **File**| Ninth input file to perform the operation on. | [optional]
270
+ **input_file10** | **File**| Tenth input file to perform the operation on. | [optional]
271
+
272
+ ### Return type
273
+
274
+ **String**
275
+
276
+ ### Authorization
277
+
278
+ [Apikey](../README.md#Apikey)
279
+
280
+ ### HTTP request headers
281
+
282
+ - **Content-Type**: multipart/form-data
283
+ - **Accept**: application/octet-stream
284
+
285
+
286
+
153
287
  # **merge_document_pdf**
154
288
  > String merge_document_pdf(input_file1, input_file2)
155
289
 
@@ -10,14 +10,18 @@ Method | HTTP request | Description
10
10
  [**validate_document_eml_validation**](ValidateDocumentApi.md#validate_document_eml_validation) | **POST** /convert/validate/eml | Validate if an EML file is executable
11
11
  [**validate_document_executable_validation**](ValidateDocumentApi.md#validate_document_executable_validation) | **POST** /convert/validate/executable | Validate if a file is executable
12
12
  [**validate_document_g_zip_validation**](ValidateDocumentApi.md#validate_document_g_zip_validation) | **POST** /convert/validate/gzip | Validate a GZip Archive file (gzip or gz)
13
+ [**validate_document_html_ssrf_validation**](ValidateDocumentApi.md#validate_document_html_ssrf_validation) | **POST** /convert/validate/html/ssrf-threat-check | Validate an HTML file and checks for SSRF threats
13
14
  [**validate_document_html_validation**](ValidateDocumentApi.md#validate_document_html_validation) | **POST** /convert/validate/html | Validate an HTML file
14
15
  [**validate_document_image_validation**](ValidateDocumentApi.md#validate_document_image_validation) | **POST** /convert/validate/image | Validate an Image File
16
+ [**validate_document_jpg_validation**](ValidateDocumentApi.md#validate_document_jpg_validation) | **POST** /convert/validate/jpg | Validate a JPG File
15
17
  [**validate_document_json_validation**](ValidateDocumentApi.md#validate_document_json_validation) | **POST** /convert/validate/json | Validate a JSON file
16
18
  [**validate_document_msg_validation**](ValidateDocumentApi.md#validate_document_msg_validation) | **POST** /convert/validate/msg | Validate if an MSG file is executable
17
19
  [**validate_document_pdf_validation**](ValidateDocumentApi.md#validate_document_pdf_validation) | **POST** /convert/validate/pdf | Validate a PDF document file
20
+ [**validate_document_png_validation**](ValidateDocumentApi.md#validate_document_png_validation) | **POST** /convert/validate/png | Validate a PNG File
18
21
  [**validate_document_pptx_validation**](ValidateDocumentApi.md#validate_document_pptx_validation) | **POST** /convert/validate/pptx | Validate a PowerPoint presentation (PPTX)
19
22
  [**validate_document_rar_validation**](ValidateDocumentApi.md#validate_document_rar_validation) | **POST** /convert/validate/rar | Validate a RAR Archive file (RAR)
20
23
  [**validate_document_tar_validation**](ValidateDocumentApi.md#validate_document_tar_validation) | **POST** /convert/validate/tar | Validate a TAR Tarball Archive file (TAR)
24
+ [**validate_document_txt_validation**](ValidateDocumentApi.md#validate_document_txt_validation) | **POST** /convert/validate/txt | Validate an TXT file
21
25
  [**validate_document_xlsx_validation**](ValidateDocumentApi.md#validate_document_xlsx_validation) | **POST** /convert/validate/xlsx | Validate a Excel document (XLSX)
22
26
  [**validate_document_xml_validation**](ValidateDocumentApi.md#validate_document_xml_validation) | **POST** /convert/validate/xml | Validate an XML file
23
27
  [**validate_document_zip_validation**](ValidateDocumentApi.md#validate_document_zip_validation) | **POST** /convert/validate/zip | Validate a Zip Archive file (zip)
@@ -347,6 +351,60 @@ Name | Type | Description | Notes
347
351
 
348
352
 
349
353
 
354
+ # **validate_document_html_ssrf_validation**
355
+ > HtmlSsrfThreatCheckResult validate_document_html_ssrf_validation(input_file)
356
+
357
+ Validate an HTML file and checks for SSRF threats
358
+
359
+ 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
360
+
361
+ ### Example
362
+ ```ruby
363
+ # load the gem
364
+ require 'cloudmersive-convert-api-client'
365
+ # setup authorization
366
+ CloudmersiveConvertApiClient.configure do |config|
367
+ # Configure API key authorization: Apikey
368
+ config.api_key['Apikey'] = 'YOUR API KEY'
369
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
370
+ #config.api_key_prefix['Apikey'] = 'Bearer'
371
+ end
372
+
373
+ api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
374
+
375
+ input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
376
+
377
+
378
+ begin
379
+ #Validate an HTML file and checks for SSRF threats
380
+ result = api_instance.validate_document_html_ssrf_validation(input_file)
381
+ p result
382
+ rescue CloudmersiveConvertApiClient::ApiError => e
383
+ puts "Exception when calling ValidateDocumentApi->validate_document_html_ssrf_validation: #{e}"
384
+ end
385
+ ```
386
+
387
+ ### Parameters
388
+
389
+ Name | Type | Description | Notes
390
+ ------------- | ------------- | ------------- | -------------
391
+ **input_file** | **File**| Input file to perform the operation on. |
392
+
393
+ ### Return type
394
+
395
+ [**HtmlSsrfThreatCheckResult**](HtmlSsrfThreatCheckResult.md)
396
+
397
+ ### Authorization
398
+
399
+ [Apikey](../README.md#Apikey)
400
+
401
+ ### HTTP request headers
402
+
403
+ - **Content-Type**: multipart/form-data
404
+ - **Accept**: application/json, text/json, application/xml, text/xml
405
+
406
+
407
+
350
408
  # **validate_document_html_validation**
351
409
  > DocumentValidationResult validate_document_html_validation(input_file)
352
410
 
@@ -455,6 +513,60 @@ Name | Type | Description | Notes
455
513
 
456
514
 
457
515
 
516
+ # **validate_document_jpg_validation**
517
+ > DocumentValidationResult validate_document_jpg_validation(input_file)
518
+
519
+ Validate a JPG File
520
+
521
+ Validate a JPEG image file; if the document is not valid, identifies the errors in the document..
522
+
523
+ ### Example
524
+ ```ruby
525
+ # load the gem
526
+ require 'cloudmersive-convert-api-client'
527
+ # setup authorization
528
+ CloudmersiveConvertApiClient.configure do |config|
529
+ # Configure API key authorization: Apikey
530
+ config.api_key['Apikey'] = 'YOUR API KEY'
531
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
532
+ #config.api_key_prefix['Apikey'] = 'Bearer'
533
+ end
534
+
535
+ api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
536
+
537
+ input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
538
+
539
+
540
+ begin
541
+ #Validate a JPG File
542
+ result = api_instance.validate_document_jpg_validation(input_file)
543
+ p result
544
+ rescue CloudmersiveConvertApiClient::ApiError => e
545
+ puts "Exception when calling ValidateDocumentApi->validate_document_jpg_validation: #{e}"
546
+ end
547
+ ```
548
+
549
+ ### Parameters
550
+
551
+ Name | Type | Description | Notes
552
+ ------------- | ------------- | ------------- | -------------
553
+ **input_file** | **File**| Input file to perform the operation on. |
554
+
555
+ ### Return type
556
+
557
+ [**DocumentValidationResult**](DocumentValidationResult.md)
558
+
559
+ ### Authorization
560
+
561
+ [Apikey](../README.md#Apikey)
562
+
563
+ ### HTTP request headers
564
+
565
+ - **Content-Type**: multipart/form-data
566
+ - **Accept**: application/json, text/json, application/xml, text/xml
567
+
568
+
569
+
458
570
  # **validate_document_json_validation**
459
571
  > DocumentValidationResult validate_document_json_validation(input_file)
460
572
 
@@ -617,6 +729,60 @@ Name | Type | Description | Notes
617
729
 
618
730
 
619
731
 
732
+ # **validate_document_png_validation**
733
+ > DocumentValidationResult validate_document_png_validation(input_file)
734
+
735
+ Validate a PNG File
736
+
737
+ Validate a PNG image file; if the document is not valid, identifies the errors in the document.
738
+
739
+ ### Example
740
+ ```ruby
741
+ # load the gem
742
+ require 'cloudmersive-convert-api-client'
743
+ # setup authorization
744
+ CloudmersiveConvertApiClient.configure do |config|
745
+ # Configure API key authorization: Apikey
746
+ config.api_key['Apikey'] = 'YOUR API KEY'
747
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
748
+ #config.api_key_prefix['Apikey'] = 'Bearer'
749
+ end
750
+
751
+ api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
752
+
753
+ input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
754
+
755
+
756
+ begin
757
+ #Validate a PNG File
758
+ result = api_instance.validate_document_png_validation(input_file)
759
+ p result
760
+ rescue CloudmersiveConvertApiClient::ApiError => e
761
+ puts "Exception when calling ValidateDocumentApi->validate_document_png_validation: #{e}"
762
+ end
763
+ ```
764
+
765
+ ### Parameters
766
+
767
+ Name | Type | Description | Notes
768
+ ------------- | ------------- | ------------- | -------------
769
+ **input_file** | **File**| Input file to perform the operation on. |
770
+
771
+ ### Return type
772
+
773
+ [**DocumentValidationResult**](DocumentValidationResult.md)
774
+
775
+ ### Authorization
776
+
777
+ [Apikey](../README.md#Apikey)
778
+
779
+ ### HTTP request headers
780
+
781
+ - **Content-Type**: multipart/form-data
782
+ - **Accept**: application/json, text/json, application/xml, text/xml
783
+
784
+
785
+
620
786
  # **validate_document_pptx_validation**
621
787
  > DocumentValidationResult validate_document_pptx_validation(input_file)
622
788
 
@@ -779,6 +945,60 @@ Name | Type | Description | Notes
779
945
 
780
946
 
781
947
 
948
+ # **validate_document_txt_validation**
949
+ > DocumentValidationResult validate_document_txt_validation(input_file)
950
+
951
+ Validate an TXT file
952
+
953
+ Validate an TXT document file; if the document is not valid, identifies the errors in the document
954
+
955
+ ### Example
956
+ ```ruby
957
+ # load the gem
958
+ require 'cloudmersive-convert-api-client'
959
+ # setup authorization
960
+ CloudmersiveConvertApiClient.configure do |config|
961
+ # Configure API key authorization: Apikey
962
+ config.api_key['Apikey'] = 'YOUR API KEY'
963
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
964
+ #config.api_key_prefix['Apikey'] = 'Bearer'
965
+ end
966
+
967
+ api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
968
+
969
+ input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
970
+
971
+
972
+ begin
973
+ #Validate an TXT file
974
+ result = api_instance.validate_document_txt_validation(input_file)
975
+ p result
976
+ rescue CloudmersiveConvertApiClient::ApiError => e
977
+ puts "Exception when calling ValidateDocumentApi->validate_document_txt_validation: #{e}"
978
+ end
979
+ ```
980
+
981
+ ### Parameters
982
+
983
+ Name | Type | Description | Notes
984
+ ------------- | ------------- | ------------- | -------------
985
+ **input_file** | **File**| Input file to perform the operation on. |
986
+
987
+ ### Return type
988
+
989
+ [**DocumentValidationResult**](DocumentValidationResult.md)
990
+
991
+ ### Authorization
992
+
993
+ [Apikey](../README.md#Apikey)
994
+
995
+ ### HTTP request headers
996
+
997
+ - **Content-Type**: multipart/form-data
998
+ - **Accept**: application/json, text/json, application/xml, text/xml
999
+
1000
+
1001
+
782
1002
  # **validate_document_xlsx_validation**
783
1003
  > DocumentValidationResult validate_document_xlsx_validation(input_file)
784
1004