cloudmersive-convert-api-client 2.2.5 → 2.2.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aabaa1e2ce9972df803288c696954a0effd34c4e88aa499056783cb1aeed4100
|
4
|
+
data.tar.gz: b74b4ab236f9b7f26a4a812c663eaeb8bcd11d8de5f741d12153f5d7cbb4da9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '050068f0b54b771d9807a1796fd465c148300865f2e5ee348db6f8f52ed143caae41a17585e85e8a8de16d08a810ff1cf3afe71d14ee1a7efcca2b114ee48c69'
|
7
|
+
data.tar.gz: c7e750d4475a41e93778fe3521539d1c1b9d9a370eac4a07f62420d9ae2d27103a62db0684ede7343170dfbd38d556b521f4124f6e91e67b5ba594eab91030d2
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Convert API lets you effortlessly convert file formats and types.
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: v1
|
10
|
-
- Package version: 2.2.
|
10
|
+
- Package version: 2.2.6
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build cloudmersive-convert-api-client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./cloudmersive-convert-api-client-2.2.
|
26
|
+
gem install ./cloudmersive-convert-api-client-2.2.6.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./cloudmersive-convert-api-client-2.2.
|
28
|
+
(for development, run `gem install --dev ./cloudmersive-convert-api-client-2.2.6.gem` to install the development dependencies)
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'cloudmersive-convert-api-client', '~> 2.2.
|
34
|
+
gem 'cloudmersive-convert-api-client', '~> 2.2.6'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -340,6 +340,7 @@ Class | Method | HTTP request | Description
|
|
340
340
|
*CloudmersiveConvertApiClient::TransformDocumentApi* | [**transform_document_pptx_replace**](docs/TransformDocumentApi.md#transform_document_pptx_replace) | **POST** /convert/transform/pptx/replace-all | Replace string in PowerPoint PPTX presentation, return result
|
341
341
|
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_autodetect_validation**](docs/ValidateDocumentApi.md#validate_document_autodetect_validation) | **POST** /convert/validate/autodetect | Autodetect content type and validate
|
342
342
|
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_csv_validation**](docs/ValidateDocumentApi.md#validate_document_csv_validation) | **POST** /convert/validate/csv | Validate a CSV file document (CSV)
|
343
|
+
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_doc_validation**](docs/ValidateDocumentApi.md#validate_document_doc_validation) | **POST** /convert/validate/doc | Validate a Word 97-2003 Legacy document (DOC)
|
343
344
|
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_docx_validation**](docs/ValidateDocumentApi.md#validate_document_docx_validation) | **POST** /convert/validate/docx | Validate a Word document (DOCX)
|
344
345
|
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_eml_validation**](docs/ValidateDocumentApi.md#validate_document_eml_validation) | **POST** /convert/validate/eml | Validate if an EML file is executable
|
345
346
|
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_executable_validation**](docs/ValidateDocumentApi.md#validate_document_executable_validation) | **POST** /convert/validate/executable | Validate if a file is executable
|
@@ -352,10 +353,13 @@ Class | Method | HTTP request | Description
|
|
352
353
|
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_msg_validation**](docs/ValidateDocumentApi.md#validate_document_msg_validation) | **POST** /convert/validate/msg | Validate if an MSG file is executable
|
353
354
|
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_pdf_validation**](docs/ValidateDocumentApi.md#validate_document_pdf_validation) | **POST** /convert/validate/pdf | Validate a PDF document file
|
354
355
|
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_png_validation**](docs/ValidateDocumentApi.md#validate_document_png_validation) | **POST** /convert/validate/png | Validate a PNG File
|
356
|
+
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_ppt_validation**](docs/ValidateDocumentApi.md#validate_document_ppt_validation) | **POST** /convert/validate/ppt | Validate a PowerPoint 97-2003 Legacy presentation (PPT)
|
355
357
|
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_pptx_validation**](docs/ValidateDocumentApi.md#validate_document_pptx_validation) | **POST** /convert/validate/pptx | Validate a PowerPoint presentation (PPTX)
|
356
358
|
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_rar_validation**](docs/ValidateDocumentApi.md#validate_document_rar_validation) | **POST** /convert/validate/rar | Validate a RAR Archive file (RAR)
|
359
|
+
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_rtf_validation**](docs/ValidateDocumentApi.md#validate_document_rtf_validation) | **POST** /convert/validate/rtf | Validate a Rich Text Format document (RTF)
|
357
360
|
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_tar_validation**](docs/ValidateDocumentApi.md#validate_document_tar_validation) | **POST** /convert/validate/tar | Validate a TAR Tarball Archive file (TAR)
|
358
361
|
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_txt_validation**](docs/ValidateDocumentApi.md#validate_document_txt_validation) | **POST** /convert/validate/txt | Validate an TXT file
|
362
|
+
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_xls_validation**](docs/ValidateDocumentApi.md#validate_document_xls_validation) | **POST** /convert/validate/xls | Validate a Excel 97-2003 Legacy spreadsheet (XLS)
|
359
363
|
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_xlsx_validation**](docs/ValidateDocumentApi.md#validate_document_xlsx_validation) | **POST** /convert/validate/xlsx | Validate a Excel document (XLSX)
|
360
364
|
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_xml_validation**](docs/ValidateDocumentApi.md#validate_document_xml_validation) | **POST** /convert/validate/xml | Validate an XML file
|
361
365
|
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_xml_xxe_threat_validation**](docs/ValidateDocumentApi.md#validate_document_xml_xxe_threat_validation) | **POST** /convert/validate/xml/xxe-threats | Validate an XML file for XML External Entity (XXE) threats
|
data/docs/ValidateDocumentApi.md
CHANGED
@@ -6,6 +6,7 @@ Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**validate_document_autodetect_validation**](ValidateDocumentApi.md#validate_document_autodetect_validation) | **POST** /convert/validate/autodetect | Autodetect content type and validate
|
8
8
|
[**validate_document_csv_validation**](ValidateDocumentApi.md#validate_document_csv_validation) | **POST** /convert/validate/csv | Validate a CSV file document (CSV)
|
9
|
+
[**validate_document_doc_validation**](ValidateDocumentApi.md#validate_document_doc_validation) | **POST** /convert/validate/doc | Validate a Word 97-2003 Legacy document (DOC)
|
9
10
|
[**validate_document_docx_validation**](ValidateDocumentApi.md#validate_document_docx_validation) | **POST** /convert/validate/docx | Validate a Word document (DOCX)
|
10
11
|
[**validate_document_eml_validation**](ValidateDocumentApi.md#validate_document_eml_validation) | **POST** /convert/validate/eml | Validate if an EML file is executable
|
11
12
|
[**validate_document_executable_validation**](ValidateDocumentApi.md#validate_document_executable_validation) | **POST** /convert/validate/executable | Validate if a file is executable
|
@@ -18,10 +19,13 @@ Method | HTTP request | Description
|
|
18
19
|
[**validate_document_msg_validation**](ValidateDocumentApi.md#validate_document_msg_validation) | **POST** /convert/validate/msg | Validate if an MSG file is executable
|
19
20
|
[**validate_document_pdf_validation**](ValidateDocumentApi.md#validate_document_pdf_validation) | **POST** /convert/validate/pdf | Validate a PDF document file
|
20
21
|
[**validate_document_png_validation**](ValidateDocumentApi.md#validate_document_png_validation) | **POST** /convert/validate/png | Validate a PNG File
|
22
|
+
[**validate_document_ppt_validation**](ValidateDocumentApi.md#validate_document_ppt_validation) | **POST** /convert/validate/ppt | Validate a PowerPoint 97-2003 Legacy presentation (PPT)
|
21
23
|
[**validate_document_pptx_validation**](ValidateDocumentApi.md#validate_document_pptx_validation) | **POST** /convert/validate/pptx | Validate a PowerPoint presentation (PPTX)
|
22
24
|
[**validate_document_rar_validation**](ValidateDocumentApi.md#validate_document_rar_validation) | **POST** /convert/validate/rar | Validate a RAR Archive file (RAR)
|
25
|
+
[**validate_document_rtf_validation**](ValidateDocumentApi.md#validate_document_rtf_validation) | **POST** /convert/validate/rtf | Validate a Rich Text Format document (RTF)
|
23
26
|
[**validate_document_tar_validation**](ValidateDocumentApi.md#validate_document_tar_validation) | **POST** /convert/validate/tar | Validate a TAR Tarball Archive file (TAR)
|
24
27
|
[**validate_document_txt_validation**](ValidateDocumentApi.md#validate_document_txt_validation) | **POST** /convert/validate/txt | Validate an TXT file
|
28
|
+
[**validate_document_xls_validation**](ValidateDocumentApi.md#validate_document_xls_validation) | **POST** /convert/validate/xls | Validate a Excel 97-2003 Legacy spreadsheet (XLS)
|
25
29
|
[**validate_document_xlsx_validation**](ValidateDocumentApi.md#validate_document_xlsx_validation) | **POST** /convert/validate/xlsx | Validate a Excel document (XLSX)
|
26
30
|
[**validate_document_xml_validation**](ValidateDocumentApi.md#validate_document_xml_validation) | **POST** /convert/validate/xml | Validate an XML file
|
27
31
|
[**validate_document_xml_xxe_threat_validation**](ValidateDocumentApi.md#validate_document_xml_xxe_threat_validation) | **POST** /convert/validate/xml/xxe-threats | Validate an XML file for XML External Entity (XXE) threats
|
@@ -136,6 +140,60 @@ Name | Type | Description | Notes
|
|
136
140
|
|
137
141
|
|
138
142
|
|
143
|
+
# **validate_document_doc_validation**
|
144
|
+
> DocumentValidationResult validate_document_doc_validation(input_file)
|
145
|
+
|
146
|
+
Validate a Word 97-2003 Legacy document (DOC)
|
147
|
+
|
148
|
+
Validate a Word 97-2003 Legacy document (DOC)
|
149
|
+
|
150
|
+
### Example
|
151
|
+
```ruby
|
152
|
+
# load the gem
|
153
|
+
require 'cloudmersive-convert-api-client'
|
154
|
+
# setup authorization
|
155
|
+
CloudmersiveConvertApiClient.configure do |config|
|
156
|
+
# Configure API key authorization: Apikey
|
157
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
158
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
159
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
160
|
+
end
|
161
|
+
|
162
|
+
api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
|
163
|
+
|
164
|
+
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
165
|
+
|
166
|
+
|
167
|
+
begin
|
168
|
+
#Validate a Word 97-2003 Legacy document (DOC)
|
169
|
+
result = api_instance.validate_document_doc_validation(input_file)
|
170
|
+
p result
|
171
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
172
|
+
puts "Exception when calling ValidateDocumentApi->validate_document_doc_validation: #{e}"
|
173
|
+
end
|
174
|
+
```
|
175
|
+
|
176
|
+
### Parameters
|
177
|
+
|
178
|
+
Name | Type | Description | Notes
|
179
|
+
------------- | ------------- | ------------- | -------------
|
180
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
181
|
+
|
182
|
+
### Return type
|
183
|
+
|
184
|
+
[**DocumentValidationResult**](DocumentValidationResult.md)
|
185
|
+
|
186
|
+
### Authorization
|
187
|
+
|
188
|
+
[Apikey](../README.md#Apikey)
|
189
|
+
|
190
|
+
### HTTP request headers
|
191
|
+
|
192
|
+
- **Content-Type**: multipart/form-data
|
193
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
194
|
+
|
195
|
+
|
196
|
+
|
139
197
|
# **validate_document_docx_validation**
|
140
198
|
> DocumentValidationResult validate_document_docx_validation(input_file)
|
141
199
|
|
@@ -784,6 +842,60 @@ Name | Type | Description | Notes
|
|
784
842
|
|
785
843
|
|
786
844
|
|
845
|
+
# **validate_document_ppt_validation**
|
846
|
+
> DocumentValidationResult validate_document_ppt_validation(input_file)
|
847
|
+
|
848
|
+
Validate a PowerPoint 97-2003 Legacy presentation (PPT)
|
849
|
+
|
850
|
+
Validate a PowerPoint 97-2003 Legacy presentation (PPT)
|
851
|
+
|
852
|
+
### Example
|
853
|
+
```ruby
|
854
|
+
# load the gem
|
855
|
+
require 'cloudmersive-convert-api-client'
|
856
|
+
# setup authorization
|
857
|
+
CloudmersiveConvertApiClient.configure do |config|
|
858
|
+
# Configure API key authorization: Apikey
|
859
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
860
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
861
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
862
|
+
end
|
863
|
+
|
864
|
+
api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
|
865
|
+
|
866
|
+
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
867
|
+
|
868
|
+
|
869
|
+
begin
|
870
|
+
#Validate a PowerPoint 97-2003 Legacy presentation (PPT)
|
871
|
+
result = api_instance.validate_document_ppt_validation(input_file)
|
872
|
+
p result
|
873
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
874
|
+
puts "Exception when calling ValidateDocumentApi->validate_document_ppt_validation: #{e}"
|
875
|
+
end
|
876
|
+
```
|
877
|
+
|
878
|
+
### Parameters
|
879
|
+
|
880
|
+
Name | Type | Description | Notes
|
881
|
+
------------- | ------------- | ------------- | -------------
|
882
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
883
|
+
|
884
|
+
### Return type
|
885
|
+
|
886
|
+
[**DocumentValidationResult**](DocumentValidationResult.md)
|
887
|
+
|
888
|
+
### Authorization
|
889
|
+
|
890
|
+
[Apikey](../README.md#Apikey)
|
891
|
+
|
892
|
+
### HTTP request headers
|
893
|
+
|
894
|
+
- **Content-Type**: multipart/form-data
|
895
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
896
|
+
|
897
|
+
|
898
|
+
|
787
899
|
# **validate_document_pptx_validation**
|
788
900
|
> DocumentValidationResult validate_document_pptx_validation(input_file)
|
789
901
|
|
@@ -892,6 +1004,60 @@ Name | Type | Description | Notes
|
|
892
1004
|
|
893
1005
|
|
894
1006
|
|
1007
|
+
# **validate_document_rtf_validation**
|
1008
|
+
> DocumentValidationResult validate_document_rtf_validation(input_file)
|
1009
|
+
|
1010
|
+
Validate a Rich Text Format document (RTF)
|
1011
|
+
|
1012
|
+
Validate a Rich Text Format document (RTF)
|
1013
|
+
|
1014
|
+
### Example
|
1015
|
+
```ruby
|
1016
|
+
# load the gem
|
1017
|
+
require 'cloudmersive-convert-api-client'
|
1018
|
+
# setup authorization
|
1019
|
+
CloudmersiveConvertApiClient.configure do |config|
|
1020
|
+
# Configure API key authorization: Apikey
|
1021
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
1022
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1023
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
1024
|
+
end
|
1025
|
+
|
1026
|
+
api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
|
1027
|
+
|
1028
|
+
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
1029
|
+
|
1030
|
+
|
1031
|
+
begin
|
1032
|
+
#Validate a Rich Text Format document (RTF)
|
1033
|
+
result = api_instance.validate_document_rtf_validation(input_file)
|
1034
|
+
p result
|
1035
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
1036
|
+
puts "Exception when calling ValidateDocumentApi->validate_document_rtf_validation: #{e}"
|
1037
|
+
end
|
1038
|
+
```
|
1039
|
+
|
1040
|
+
### Parameters
|
1041
|
+
|
1042
|
+
Name | Type | Description | Notes
|
1043
|
+
------------- | ------------- | ------------- | -------------
|
1044
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
1045
|
+
|
1046
|
+
### Return type
|
1047
|
+
|
1048
|
+
[**DocumentValidationResult**](DocumentValidationResult.md)
|
1049
|
+
|
1050
|
+
### Authorization
|
1051
|
+
|
1052
|
+
[Apikey](../README.md#Apikey)
|
1053
|
+
|
1054
|
+
### HTTP request headers
|
1055
|
+
|
1056
|
+
- **Content-Type**: multipart/form-data
|
1057
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
1058
|
+
|
1059
|
+
|
1060
|
+
|
895
1061
|
# **validate_document_tar_validation**
|
896
1062
|
> DocumentValidationResult validate_document_tar_validation(input_file)
|
897
1063
|
|
@@ -1000,6 +1166,60 @@ Name | Type | Description | Notes
|
|
1000
1166
|
|
1001
1167
|
|
1002
1168
|
|
1169
|
+
# **validate_document_xls_validation**
|
1170
|
+
> DocumentValidationResult validate_document_xls_validation(input_file)
|
1171
|
+
|
1172
|
+
Validate a Excel 97-2003 Legacy spreadsheet (XLS)
|
1173
|
+
|
1174
|
+
Validate a Excel 97-2003 Legacy spreadsheet (XLS)
|
1175
|
+
|
1176
|
+
### Example
|
1177
|
+
```ruby
|
1178
|
+
# load the gem
|
1179
|
+
require 'cloudmersive-convert-api-client'
|
1180
|
+
# setup authorization
|
1181
|
+
CloudmersiveConvertApiClient.configure do |config|
|
1182
|
+
# Configure API key authorization: Apikey
|
1183
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
1184
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1185
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
1186
|
+
end
|
1187
|
+
|
1188
|
+
api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
|
1189
|
+
|
1190
|
+
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
1191
|
+
|
1192
|
+
|
1193
|
+
begin
|
1194
|
+
#Validate a Excel 97-2003 Legacy spreadsheet (XLS)
|
1195
|
+
result = api_instance.validate_document_xls_validation(input_file)
|
1196
|
+
p result
|
1197
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
1198
|
+
puts "Exception when calling ValidateDocumentApi->validate_document_xls_validation: #{e}"
|
1199
|
+
end
|
1200
|
+
```
|
1201
|
+
|
1202
|
+
### Parameters
|
1203
|
+
|
1204
|
+
Name | Type | Description | Notes
|
1205
|
+
------------- | ------------- | ------------- | -------------
|
1206
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
1207
|
+
|
1208
|
+
### Return type
|
1209
|
+
|
1210
|
+
[**DocumentValidationResult**](DocumentValidationResult.md)
|
1211
|
+
|
1212
|
+
### Authorization
|
1213
|
+
|
1214
|
+
[Apikey](../README.md#Apikey)
|
1215
|
+
|
1216
|
+
### HTTP request headers
|
1217
|
+
|
1218
|
+
- **Content-Type**: multipart/form-data
|
1219
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
1220
|
+
|
1221
|
+
|
1222
|
+
|
1003
1223
|
# **validate_document_xlsx_validation**
|
1004
1224
|
> DocumentValidationResult validate_document_xlsx_validation(input_file)
|
1005
1225
|
|
@@ -129,6 +129,61 @@ module CloudmersiveConvertApiClient
|
|
129
129
|
end
|
130
130
|
return data, status_code, headers
|
131
131
|
end
|
132
|
+
# Validate a Word 97-2003 Legacy document (DOC)
|
133
|
+
# Validate a Word 97-2003 Legacy document (DOC)
|
134
|
+
# @param input_file Input file to perform the operation on.
|
135
|
+
# @param [Hash] opts the optional parameters
|
136
|
+
# @return [DocumentValidationResult]
|
137
|
+
def validate_document_doc_validation(input_file, opts = {})
|
138
|
+
data, _status_code, _headers = validate_document_doc_validation_with_http_info(input_file, opts)
|
139
|
+
data
|
140
|
+
end
|
141
|
+
|
142
|
+
# Validate a Word 97-2003 Legacy document (DOC)
|
143
|
+
# Validate a Word 97-2003 Legacy document (DOC)
|
144
|
+
# @param input_file Input file to perform the operation on.
|
145
|
+
# @param [Hash] opts the optional parameters
|
146
|
+
# @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
|
147
|
+
def validate_document_doc_validation_with_http_info(input_file, opts = {})
|
148
|
+
if @api_client.config.debugging
|
149
|
+
@api_client.config.logger.debug 'Calling API: ValidateDocumentApi.validate_document_doc_validation ...'
|
150
|
+
end
|
151
|
+
# verify the required parameter 'input_file' is set
|
152
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
153
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_doc_validation"
|
154
|
+
end
|
155
|
+
# resource path
|
156
|
+
local_var_path = '/convert/validate/doc'
|
157
|
+
|
158
|
+
# query parameters
|
159
|
+
query_params = {}
|
160
|
+
|
161
|
+
# header parameters
|
162
|
+
header_params = {}
|
163
|
+
# HTTP header 'Accept' (if needed)
|
164
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
165
|
+
# HTTP header 'Content-Type'
|
166
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
167
|
+
|
168
|
+
# form parameters
|
169
|
+
form_params = {}
|
170
|
+
form_params['inputFile'] = input_file
|
171
|
+
|
172
|
+
# http body (model)
|
173
|
+
post_body = nil
|
174
|
+
auth_names = ['Apikey']
|
175
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
176
|
+
:header_params => header_params,
|
177
|
+
:query_params => query_params,
|
178
|
+
:form_params => form_params,
|
179
|
+
:body => post_body,
|
180
|
+
:auth_names => auth_names,
|
181
|
+
:return_type => 'DocumentValidationResult')
|
182
|
+
if @api_client.config.debugging
|
183
|
+
@api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_doc_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
184
|
+
end
|
185
|
+
return data, status_code, headers
|
186
|
+
end
|
132
187
|
# Validate a Word document (DOCX)
|
133
188
|
# Validate a Word document (DOCX); if the document is not valid, identifies the errors in the document
|
134
189
|
# @param input_file Input file to perform the operation on.
|
@@ -789,6 +844,61 @@ module CloudmersiveConvertApiClient
|
|
789
844
|
end
|
790
845
|
return data, status_code, headers
|
791
846
|
end
|
847
|
+
# Validate a PowerPoint 97-2003 Legacy presentation (PPT)
|
848
|
+
# Validate a PowerPoint 97-2003 Legacy presentation (PPT)
|
849
|
+
# @param input_file Input file to perform the operation on.
|
850
|
+
# @param [Hash] opts the optional parameters
|
851
|
+
# @return [DocumentValidationResult]
|
852
|
+
def validate_document_ppt_validation(input_file, opts = {})
|
853
|
+
data, _status_code, _headers = validate_document_ppt_validation_with_http_info(input_file, opts)
|
854
|
+
data
|
855
|
+
end
|
856
|
+
|
857
|
+
# Validate a PowerPoint 97-2003 Legacy presentation (PPT)
|
858
|
+
# Validate a PowerPoint 97-2003 Legacy presentation (PPT)
|
859
|
+
# @param input_file Input file to perform the operation on.
|
860
|
+
# @param [Hash] opts the optional parameters
|
861
|
+
# @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
|
862
|
+
def validate_document_ppt_validation_with_http_info(input_file, opts = {})
|
863
|
+
if @api_client.config.debugging
|
864
|
+
@api_client.config.logger.debug 'Calling API: ValidateDocumentApi.validate_document_ppt_validation ...'
|
865
|
+
end
|
866
|
+
# verify the required parameter 'input_file' is set
|
867
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
868
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_ppt_validation"
|
869
|
+
end
|
870
|
+
# resource path
|
871
|
+
local_var_path = '/convert/validate/ppt'
|
872
|
+
|
873
|
+
# query parameters
|
874
|
+
query_params = {}
|
875
|
+
|
876
|
+
# header parameters
|
877
|
+
header_params = {}
|
878
|
+
# HTTP header 'Accept' (if needed)
|
879
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
880
|
+
# HTTP header 'Content-Type'
|
881
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
882
|
+
|
883
|
+
# form parameters
|
884
|
+
form_params = {}
|
885
|
+
form_params['inputFile'] = input_file
|
886
|
+
|
887
|
+
# http body (model)
|
888
|
+
post_body = nil
|
889
|
+
auth_names = ['Apikey']
|
890
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
891
|
+
:header_params => header_params,
|
892
|
+
:query_params => query_params,
|
893
|
+
:form_params => form_params,
|
894
|
+
:body => post_body,
|
895
|
+
:auth_names => auth_names,
|
896
|
+
:return_type => 'DocumentValidationResult')
|
897
|
+
if @api_client.config.debugging
|
898
|
+
@api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_ppt_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
899
|
+
end
|
900
|
+
return data, status_code, headers
|
901
|
+
end
|
792
902
|
# Validate a PowerPoint presentation (PPTX)
|
793
903
|
# Validate a PowerPoint presentation (PPTX); if the document is not valid, identifies the errors in the document
|
794
904
|
# @param input_file Input file to perform the operation on.
|
@@ -899,6 +1009,61 @@ module CloudmersiveConvertApiClient
|
|
899
1009
|
end
|
900
1010
|
return data, status_code, headers
|
901
1011
|
end
|
1012
|
+
# Validate a Rich Text Format document (RTF)
|
1013
|
+
# Validate a Rich Text Format document (RTF)
|
1014
|
+
# @param input_file Input file to perform the operation on.
|
1015
|
+
# @param [Hash] opts the optional parameters
|
1016
|
+
# @return [DocumentValidationResult]
|
1017
|
+
def validate_document_rtf_validation(input_file, opts = {})
|
1018
|
+
data, _status_code, _headers = validate_document_rtf_validation_with_http_info(input_file, opts)
|
1019
|
+
data
|
1020
|
+
end
|
1021
|
+
|
1022
|
+
# Validate a Rich Text Format document (RTF)
|
1023
|
+
# Validate a Rich Text Format document (RTF)
|
1024
|
+
# @param input_file Input file to perform the operation on.
|
1025
|
+
# @param [Hash] opts the optional parameters
|
1026
|
+
# @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
|
1027
|
+
def validate_document_rtf_validation_with_http_info(input_file, opts = {})
|
1028
|
+
if @api_client.config.debugging
|
1029
|
+
@api_client.config.logger.debug 'Calling API: ValidateDocumentApi.validate_document_rtf_validation ...'
|
1030
|
+
end
|
1031
|
+
# verify the required parameter 'input_file' is set
|
1032
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
1033
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_rtf_validation"
|
1034
|
+
end
|
1035
|
+
# resource path
|
1036
|
+
local_var_path = '/convert/validate/rtf'
|
1037
|
+
|
1038
|
+
# query parameters
|
1039
|
+
query_params = {}
|
1040
|
+
|
1041
|
+
# header parameters
|
1042
|
+
header_params = {}
|
1043
|
+
# HTTP header 'Accept' (if needed)
|
1044
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
1045
|
+
# HTTP header 'Content-Type'
|
1046
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
1047
|
+
|
1048
|
+
# form parameters
|
1049
|
+
form_params = {}
|
1050
|
+
form_params['inputFile'] = input_file
|
1051
|
+
|
1052
|
+
# http body (model)
|
1053
|
+
post_body = nil
|
1054
|
+
auth_names = ['Apikey']
|
1055
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1056
|
+
:header_params => header_params,
|
1057
|
+
:query_params => query_params,
|
1058
|
+
:form_params => form_params,
|
1059
|
+
:body => post_body,
|
1060
|
+
:auth_names => auth_names,
|
1061
|
+
:return_type => 'DocumentValidationResult')
|
1062
|
+
if @api_client.config.debugging
|
1063
|
+
@api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_rtf_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1064
|
+
end
|
1065
|
+
return data, status_code, headers
|
1066
|
+
end
|
902
1067
|
# Validate a TAR Tarball Archive file (TAR)
|
903
1068
|
# Validate a TAR tarball archive file (TAR)
|
904
1069
|
# @param input_file Input file to perform the operation on.
|
@@ -1009,6 +1174,61 @@ module CloudmersiveConvertApiClient
|
|
1009
1174
|
end
|
1010
1175
|
return data, status_code, headers
|
1011
1176
|
end
|
1177
|
+
# Validate a Excel 97-2003 Legacy spreadsheet (XLS)
|
1178
|
+
# Validate a Excel 97-2003 Legacy spreadsheet (XLS)
|
1179
|
+
# @param input_file Input file to perform the operation on.
|
1180
|
+
# @param [Hash] opts the optional parameters
|
1181
|
+
# @return [DocumentValidationResult]
|
1182
|
+
def validate_document_xls_validation(input_file, opts = {})
|
1183
|
+
data, _status_code, _headers = validate_document_xls_validation_with_http_info(input_file, opts)
|
1184
|
+
data
|
1185
|
+
end
|
1186
|
+
|
1187
|
+
# Validate a Excel 97-2003 Legacy spreadsheet (XLS)
|
1188
|
+
# Validate a Excel 97-2003 Legacy spreadsheet (XLS)
|
1189
|
+
# @param input_file Input file to perform the operation on.
|
1190
|
+
# @param [Hash] opts the optional parameters
|
1191
|
+
# @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
|
1192
|
+
def validate_document_xls_validation_with_http_info(input_file, opts = {})
|
1193
|
+
if @api_client.config.debugging
|
1194
|
+
@api_client.config.logger.debug 'Calling API: ValidateDocumentApi.validate_document_xls_validation ...'
|
1195
|
+
end
|
1196
|
+
# verify the required parameter 'input_file' is set
|
1197
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
1198
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_xls_validation"
|
1199
|
+
end
|
1200
|
+
# resource path
|
1201
|
+
local_var_path = '/convert/validate/xls'
|
1202
|
+
|
1203
|
+
# query parameters
|
1204
|
+
query_params = {}
|
1205
|
+
|
1206
|
+
# header parameters
|
1207
|
+
header_params = {}
|
1208
|
+
# HTTP header 'Accept' (if needed)
|
1209
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
1210
|
+
# HTTP header 'Content-Type'
|
1211
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
1212
|
+
|
1213
|
+
# form parameters
|
1214
|
+
form_params = {}
|
1215
|
+
form_params['inputFile'] = input_file
|
1216
|
+
|
1217
|
+
# http body (model)
|
1218
|
+
post_body = nil
|
1219
|
+
auth_names = ['Apikey']
|
1220
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1221
|
+
:header_params => header_params,
|
1222
|
+
:query_params => query_params,
|
1223
|
+
:form_params => form_params,
|
1224
|
+
:body => post_body,
|
1225
|
+
:auth_names => auth_names,
|
1226
|
+
:return_type => 'DocumentValidationResult')
|
1227
|
+
if @api_client.config.debugging
|
1228
|
+
@api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_xls_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1229
|
+
end
|
1230
|
+
return data, status_code, headers
|
1231
|
+
end
|
1012
1232
|
# Validate a Excel document (XLSX)
|
1013
1233
|
# Validate a Excel document (XLSX); if the document is not valid, identifies the errors in the document
|
1014
1234
|
# @param input_file Input file to perform the operation on.
|
@@ -56,6 +56,18 @@ describe 'ValidateDocumentApi' do
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
+
# unit tests for validate_document_doc_validation
|
60
|
+
# Validate a Word 97-2003 Legacy document (DOC)
|
61
|
+
# Validate a Word 97-2003 Legacy document (DOC)
|
62
|
+
# @param input_file Input file to perform the operation on.
|
63
|
+
# @param [Hash] opts the optional parameters
|
64
|
+
# @return [DocumentValidationResult]
|
65
|
+
describe 'validate_document_doc_validation test' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
59
71
|
# unit tests for validate_document_docx_validation
|
60
72
|
# Validate a Word document (DOCX)
|
61
73
|
# Validate a Word document (DOCX); if the document is not valid, identifies the errors in the document
|
@@ -200,6 +212,18 @@ describe 'ValidateDocumentApi' do
|
|
200
212
|
end
|
201
213
|
end
|
202
214
|
|
215
|
+
# unit tests for validate_document_ppt_validation
|
216
|
+
# Validate a PowerPoint 97-2003 Legacy presentation (PPT)
|
217
|
+
# Validate a PowerPoint 97-2003 Legacy presentation (PPT)
|
218
|
+
# @param input_file Input file to perform the operation on.
|
219
|
+
# @param [Hash] opts the optional parameters
|
220
|
+
# @return [DocumentValidationResult]
|
221
|
+
describe 'validate_document_ppt_validation test' do
|
222
|
+
it 'should work' do
|
223
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
203
227
|
# unit tests for validate_document_pptx_validation
|
204
228
|
# Validate a PowerPoint presentation (PPTX)
|
205
229
|
# Validate a PowerPoint presentation (PPTX); if the document is not valid, identifies the errors in the document
|
@@ -224,6 +248,18 @@ describe 'ValidateDocumentApi' do
|
|
224
248
|
end
|
225
249
|
end
|
226
250
|
|
251
|
+
# unit tests for validate_document_rtf_validation
|
252
|
+
# Validate a Rich Text Format document (RTF)
|
253
|
+
# Validate a Rich Text Format document (RTF)
|
254
|
+
# @param input_file Input file to perform the operation on.
|
255
|
+
# @param [Hash] opts the optional parameters
|
256
|
+
# @return [DocumentValidationResult]
|
257
|
+
describe 'validate_document_rtf_validation test' do
|
258
|
+
it 'should work' do
|
259
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
227
263
|
# unit tests for validate_document_tar_validation
|
228
264
|
# Validate a TAR Tarball Archive file (TAR)
|
229
265
|
# Validate a TAR tarball archive file (TAR)
|
@@ -248,6 +284,18 @@ describe 'ValidateDocumentApi' do
|
|
248
284
|
end
|
249
285
|
end
|
250
286
|
|
287
|
+
# unit tests for validate_document_xls_validation
|
288
|
+
# Validate a Excel 97-2003 Legacy spreadsheet (XLS)
|
289
|
+
# Validate a Excel 97-2003 Legacy spreadsheet (XLS)
|
290
|
+
# @param input_file Input file to perform the operation on.
|
291
|
+
# @param [Hash] opts the optional parameters
|
292
|
+
# @return [DocumentValidationResult]
|
293
|
+
describe 'validate_document_xls_validation test' do
|
294
|
+
it 'should work' do
|
295
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
296
|
+
end
|
297
|
+
end
|
298
|
+
|
251
299
|
# unit tests for validate_document_xlsx_validation
|
252
300
|
# Validate a Excel document (XLSX)
|
253
301
|
# Validate a Excel document (XLSX); if the document is not valid, identifies the errors in the document
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudmersive-convert-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cloudmersive
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|