cloudmersive-convert-api-client 2.0.7 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +27 -4
- data/docs/ConvertDataApi.md +117 -3
- data/docs/ConvertDocumentApi.md +159 -0
- data/docs/DocxMetadataCustomProperty.md +13 -0
- data/docs/DocxSetCustomMetadataPropertiesRequest.md +10 -0
- data/docs/EditDocumentApi.md +330 -0
- data/docs/EditHtmlApi.md +81 -13
- data/docs/EditPdfApi.md +227 -0
- data/docs/GetDocxMetadataPropertiesResponse.md +16 -0
- data/docs/ValidateDocumentApi.md +165 -0
- data/docs/ViewerToolsApi.md +8 -2
- data/docs/ZipArchiveApi.md +80 -0
- data/lib/cloudmersive-convert-api-client.rb +3 -0
- data/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +117 -4
- data/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +156 -0
- data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +329 -0
- data/lib/cloudmersive-convert-api-client/api/edit_html_api.rb +81 -12
- data/lib/cloudmersive-convert-api-client/api/edit_pdf_api.rb +230 -0
- data/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +165 -0
- data/lib/cloudmersive-convert-api-client/api/viewer_tools_api.rb +6 -0
- data/lib/cloudmersive-convert-api-client/api/zip_archive_api.rb +92 -0
- data/lib/cloudmersive-convert-api-client/models/docx_metadata_custom_property.rb +236 -0
- data/lib/cloudmersive-convert-api-client/models/docx_set_custom_metadata_properties_request.rb +223 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_metadata_properties_response.rb +268 -0
- data/lib/cloudmersive-convert-api-client/version.rb +1 -1
- data/spec/api/convert_data_api_spec.rb +26 -1
- data/spec/api/convert_document_api_spec.rb +35 -0
- data/spec/api/edit_document_api_spec.rb +72 -0
- data/spec/api/edit_html_api_spec.rb +24 -6
- data/spec/api/edit_pdf_api_spec.rb +50 -0
- data/spec/api/validate_document_api_spec.rb +36 -0
- data/spec/api/viewer_tools_api_spec.rb +2 -0
- data/spec/api/zip_archive_api_spec.rb +23 -0
- data/spec/models/docx_metadata_custom_property_spec.rb +71 -0
- data/spec/models/docx_set_custom_metadata_properties_request_spec.rb +53 -0
- data/spec/models/get_docx_metadata_properties_response_spec.rb +89 -0
- metadata +11 -2
data/docs/EditPdfApi.md
CHANGED
@@ -5,6 +5,7 @@ All URIs are relative to *https://api.cloudmersive.com*
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**edit_pdf_add_annotations**](EditPdfApi.md#edit_pdf_add_annotations) | **POST** /convert/edit/pdf/annotations/add-item | Add one or more PDF annotations, comments in the PDF document
|
8
|
+
[**edit_pdf_convert_to_pdf_a**](EditPdfApi.md#edit_pdf_convert_to_pdf_a) | **POST** /convert/edit/pdf/optimize/pdf-a | Convert a PDF file to PDF/A
|
8
9
|
[**edit_pdf_decrypt**](EditPdfApi.md#edit_pdf_decrypt) | **POST** /convert/edit/pdf/decrypt | Decrypt and password-protect a PDF
|
9
10
|
[**edit_pdf_delete_pages**](EditPdfApi.md#edit_pdf_delete_pages) | **POST** /convert/edit/pdf/pages/delete | Remove, delete pages from a PDF document
|
10
11
|
[**edit_pdf_encrypt**](EditPdfApi.md#edit_pdf_encrypt) | **POST** /convert/edit/pdf/encrypt | Encrypt and password-protect a PDF
|
@@ -13,9 +14,12 @@ Method | HTTP request | Description
|
|
13
14
|
[**edit_pdf_get_metadata**](EditPdfApi.md#edit_pdf_get_metadata) | **POST** /convert/edit/pdf/get-metadata | Get PDF document metadata
|
14
15
|
[**edit_pdf_get_pdf_text_by_pages**](EditPdfApi.md#edit_pdf_get_pdf_text_by_pages) | **POST** /convert/edit/pdf/pages/get-text | Get text in a PDF document by page
|
15
16
|
[**edit_pdf_insert_pages**](EditPdfApi.md#edit_pdf_insert_pages) | **POST** /convert/edit/pdf/pages/insert | Insert, copy pages from one PDF document into another
|
17
|
+
[**edit_pdf_linearize**](EditPdfApi.md#edit_pdf_linearize) | **POST** /convert/edit/pdf/optimize/linearize | Linearize and optimize a PDF for streaming download
|
16
18
|
[**edit_pdf_rasterize**](EditPdfApi.md#edit_pdf_rasterize) | **POST** /convert/edit/pdf/rasterize | Rasterize a PDF to an image-based PDF
|
19
|
+
[**edit_pdf_reduce_file_size**](EditPdfApi.md#edit_pdf_reduce_file_size) | **POST** /convert/edit/pdf/optimize/reduce-file-size | Reduce the file size and optimize a PDF
|
17
20
|
[**edit_pdf_remove_all_annotations**](EditPdfApi.md#edit_pdf_remove_all_annotations) | **POST** /convert/edit/pdf/annotations/remove-all | Remove all PDF annotations, including comments in the document
|
18
21
|
[**edit_pdf_remove_annotation_item**](EditPdfApi.md#edit_pdf_remove_annotation_item) | **POST** /convert/edit/pdf/annotations/remove-item | Remove a specific PDF annotation, comment in the document
|
22
|
+
[**edit_pdf_resize**](EditPdfApi.md#edit_pdf_resize) | **POST** /convert/edit/pdf/resize | Change PDF Document's Paper Size
|
19
23
|
[**edit_pdf_rotate_all_pages**](EditPdfApi.md#edit_pdf_rotate_all_pages) | **POST** /convert/edit/pdf/pages/rotate/all | Rotate all pages in a PDF document
|
20
24
|
[**edit_pdf_rotate_page_range**](EditPdfApi.md#edit_pdf_rotate_page_range) | **POST** /convert/edit/pdf/pages/rotate/page-range | Rotate a range, subset of pages in a PDF document
|
21
25
|
[**edit_pdf_set_form_fields**](EditPdfApi.md#edit_pdf_set_form_fields) | **POST** /convert/edit/pdf/form/set-fields | Sets ands fills PDF Form field values
|
@@ -78,6 +82,64 @@ Name | Type | Description | Notes
|
|
78
82
|
|
79
83
|
|
80
84
|
|
85
|
+
# **edit_pdf_convert_to_pdf_a**
|
86
|
+
> String edit_pdf_convert_to_pdf_a(input_file, opts)
|
87
|
+
|
88
|
+
Convert a PDF file to PDF/A
|
89
|
+
|
90
|
+
Converts the input PDF file to a PDF/A-1b or PDF/A-2b standardized PDF.
|
91
|
+
|
92
|
+
### Example
|
93
|
+
```ruby
|
94
|
+
# load the gem
|
95
|
+
require 'cloudmersive-convert-api-client'
|
96
|
+
# setup authorization
|
97
|
+
CloudmersiveConvertApiClient.configure do |config|
|
98
|
+
# Configure API key authorization: Apikey
|
99
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
100
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
101
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
102
|
+
end
|
103
|
+
|
104
|
+
api_instance = CloudmersiveConvertApiClient::EditPdfApi.new
|
105
|
+
|
106
|
+
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
107
|
+
|
108
|
+
opts = {
|
109
|
+
conformance_level: 'conformance_level_example' # String | Optional: Select the conformance level for PDF/A - specify '1b' for PDF/A-1b or specify '2b' for PDF/A-2b; default is PDF/A-1b
|
110
|
+
}
|
111
|
+
|
112
|
+
begin
|
113
|
+
#Convert a PDF file to PDF/A
|
114
|
+
result = api_instance.edit_pdf_convert_to_pdf_a(input_file, opts)
|
115
|
+
p result
|
116
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
117
|
+
puts "Exception when calling EditPdfApi->edit_pdf_convert_to_pdf_a: #{e}"
|
118
|
+
end
|
119
|
+
```
|
120
|
+
|
121
|
+
### Parameters
|
122
|
+
|
123
|
+
Name | Type | Description | Notes
|
124
|
+
------------- | ------------- | ------------- | -------------
|
125
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
126
|
+
**conformance_level** | **String**| Optional: Select the conformance level for PDF/A - specify '1b' for PDF/A-1b or specify '2b' for PDF/A-2b; default is PDF/A-1b | [optional]
|
127
|
+
|
128
|
+
### Return type
|
129
|
+
|
130
|
+
**String**
|
131
|
+
|
132
|
+
### Authorization
|
133
|
+
|
134
|
+
[Apikey](../README.md#Apikey)
|
135
|
+
|
136
|
+
### HTTP request headers
|
137
|
+
|
138
|
+
- **Content-Type**: multipart/form-data
|
139
|
+
- **Accept**: application/octet-stream
|
140
|
+
|
141
|
+
|
142
|
+
|
81
143
|
# **edit_pdf_decrypt**
|
82
144
|
> String edit_pdf_decrypt(password, input_file)
|
83
145
|
|
@@ -543,6 +605,60 @@ Name | Type | Description | Notes
|
|
543
605
|
|
544
606
|
|
545
607
|
|
608
|
+
# **edit_pdf_linearize**
|
609
|
+
> String edit_pdf_linearize(input_file)
|
610
|
+
|
611
|
+
Linearize and optimize a PDF for streaming download
|
612
|
+
|
613
|
+
Linearizes the content of a PDF to optimize it for streaming download, particularly over web streaming.
|
614
|
+
|
615
|
+
### Example
|
616
|
+
```ruby
|
617
|
+
# load the gem
|
618
|
+
require 'cloudmersive-convert-api-client'
|
619
|
+
# setup authorization
|
620
|
+
CloudmersiveConvertApiClient.configure do |config|
|
621
|
+
# Configure API key authorization: Apikey
|
622
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
623
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
624
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
625
|
+
end
|
626
|
+
|
627
|
+
api_instance = CloudmersiveConvertApiClient::EditPdfApi.new
|
628
|
+
|
629
|
+
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
630
|
+
|
631
|
+
|
632
|
+
begin
|
633
|
+
#Linearize and optimize a PDF for streaming download
|
634
|
+
result = api_instance.edit_pdf_linearize(input_file)
|
635
|
+
p result
|
636
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
637
|
+
puts "Exception when calling EditPdfApi->edit_pdf_linearize: #{e}"
|
638
|
+
end
|
639
|
+
```
|
640
|
+
|
641
|
+
### Parameters
|
642
|
+
|
643
|
+
Name | Type | Description | Notes
|
644
|
+
------------- | ------------- | ------------- | -------------
|
645
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
646
|
+
|
647
|
+
### Return type
|
648
|
+
|
649
|
+
**String**
|
650
|
+
|
651
|
+
### Authorization
|
652
|
+
|
653
|
+
[Apikey](../README.md#Apikey)
|
654
|
+
|
655
|
+
### HTTP request headers
|
656
|
+
|
657
|
+
- **Content-Type**: multipart/form-data
|
658
|
+
- **Accept**: application/octet-stream
|
659
|
+
|
660
|
+
|
661
|
+
|
546
662
|
# **edit_pdf_rasterize**
|
547
663
|
> String edit_pdf_rasterize(input_file)
|
548
664
|
|
@@ -597,6 +713,60 @@ Name | Type | Description | Notes
|
|
597
713
|
|
598
714
|
|
599
715
|
|
716
|
+
# **edit_pdf_reduce_file_size**
|
717
|
+
> String edit_pdf_reduce_file_size(input_file)
|
718
|
+
|
719
|
+
Reduce the file size and optimize a PDF
|
720
|
+
|
721
|
+
Reduces the file size and optimizes the content of a PDF to minimize its file size.
|
722
|
+
|
723
|
+
### Example
|
724
|
+
```ruby
|
725
|
+
# load the gem
|
726
|
+
require 'cloudmersive-convert-api-client'
|
727
|
+
# setup authorization
|
728
|
+
CloudmersiveConvertApiClient.configure do |config|
|
729
|
+
# Configure API key authorization: Apikey
|
730
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
731
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
732
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
733
|
+
end
|
734
|
+
|
735
|
+
api_instance = CloudmersiveConvertApiClient::EditPdfApi.new
|
736
|
+
|
737
|
+
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
738
|
+
|
739
|
+
|
740
|
+
begin
|
741
|
+
#Reduce the file size and optimize a PDF
|
742
|
+
result = api_instance.edit_pdf_reduce_file_size(input_file)
|
743
|
+
p result
|
744
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
745
|
+
puts "Exception when calling EditPdfApi->edit_pdf_reduce_file_size: #{e}"
|
746
|
+
end
|
747
|
+
```
|
748
|
+
|
749
|
+
### Parameters
|
750
|
+
|
751
|
+
Name | Type | Description | Notes
|
752
|
+
------------- | ------------- | ------------- | -------------
|
753
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
754
|
+
|
755
|
+
### Return type
|
756
|
+
|
757
|
+
**String**
|
758
|
+
|
759
|
+
### Authorization
|
760
|
+
|
761
|
+
[Apikey](../README.md#Apikey)
|
762
|
+
|
763
|
+
### HTTP request headers
|
764
|
+
|
765
|
+
- **Content-Type**: multipart/form-data
|
766
|
+
- **Accept**: application/octet-stream
|
767
|
+
|
768
|
+
|
769
|
+
|
600
770
|
# **edit_pdf_remove_all_annotations**
|
601
771
|
> String edit_pdf_remove_all_annotations(input_file)
|
602
772
|
|
@@ -708,6 +878,63 @@ Name | Type | Description | Notes
|
|
708
878
|
|
709
879
|
|
710
880
|
|
881
|
+
# **edit_pdf_resize**
|
882
|
+
> String edit_pdf_resize(input_file, paper_size)
|
883
|
+
|
884
|
+
Change PDF Document's Paper Size
|
885
|
+
|
886
|
+
Resizes a PDF document's paper size.
|
887
|
+
|
888
|
+
### Example
|
889
|
+
```ruby
|
890
|
+
# load the gem
|
891
|
+
require 'cloudmersive-convert-api-client'
|
892
|
+
# setup authorization
|
893
|
+
CloudmersiveConvertApiClient.configure do |config|
|
894
|
+
# Configure API key authorization: Apikey
|
895
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
896
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
897
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
898
|
+
end
|
899
|
+
|
900
|
+
api_instance = CloudmersiveConvertApiClient::EditPdfApi.new
|
901
|
+
|
902
|
+
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
903
|
+
|
904
|
+
paper_size = 'paper_size_example' # String | The desired paper size for the resized PDF document. Size ranges from A7 (smallest) to A0 (largest).
|
905
|
+
|
906
|
+
|
907
|
+
begin
|
908
|
+
#Change PDF Document's Paper Size
|
909
|
+
result = api_instance.edit_pdf_resize(input_file, paper_size)
|
910
|
+
p result
|
911
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
912
|
+
puts "Exception when calling EditPdfApi->edit_pdf_resize: #{e}"
|
913
|
+
end
|
914
|
+
```
|
915
|
+
|
916
|
+
### Parameters
|
917
|
+
|
918
|
+
Name | Type | Description | Notes
|
919
|
+
------------- | ------------- | ------------- | -------------
|
920
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
921
|
+
**paper_size** | **String**| The desired paper size for the resized PDF document. Size ranges from A7 (smallest) to A0 (largest). |
|
922
|
+
|
923
|
+
### Return type
|
924
|
+
|
925
|
+
**String**
|
926
|
+
|
927
|
+
### Authorization
|
928
|
+
|
929
|
+
[Apikey](../README.md#Apikey)
|
930
|
+
|
931
|
+
### HTTP request headers
|
932
|
+
|
933
|
+
- **Content-Type**: multipart/form-data
|
934
|
+
- **Accept**: application/octet-stream
|
935
|
+
|
936
|
+
|
937
|
+
|
711
938
|
# **edit_pdf_rotate_all_pages**
|
712
939
|
> String edit_pdf_rotate_all_pages(input_file, rotation_angle)
|
713
940
|
|
@@ -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
|
+
|
data/docs/ValidateDocumentApi.md
CHANGED
@@ -10,12 +10,15 @@ 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_validation**](ValidateDocumentApi.md#validate_document_html_validation) | **POST** /convert/validate/html | Validate an HTML file
|
14
|
+
[**validate_document_image_validation**](ValidateDocumentApi.md#validate_document_image_validation) | **POST** /convert/validate/image | Validate an Image File
|
13
15
|
[**validate_document_json_validation**](ValidateDocumentApi.md#validate_document_json_validation) | **POST** /convert/validate/json | Validate a JSON file
|
14
16
|
[**validate_document_msg_validation**](ValidateDocumentApi.md#validate_document_msg_validation) | **POST** /convert/validate/msg | Validate if an MSG file is executable
|
15
17
|
[**validate_document_pdf_validation**](ValidateDocumentApi.md#validate_document_pdf_validation) | **POST** /convert/validate/pdf | Validate a PDF document file
|
16
18
|
[**validate_document_pptx_validation**](ValidateDocumentApi.md#validate_document_pptx_validation) | **POST** /convert/validate/pptx | Validate a PowerPoint presentation (PPTX)
|
17
19
|
[**validate_document_rar_validation**](ValidateDocumentApi.md#validate_document_rar_validation) | **POST** /convert/validate/rar | Validate a RAR Archive file (RAR)
|
18
20
|
[**validate_document_tar_validation**](ValidateDocumentApi.md#validate_document_tar_validation) | **POST** /convert/validate/tar | Validate a TAR Tarball Archive file (TAR)
|
21
|
+
[**validate_document_txt_validation**](ValidateDocumentApi.md#validate_document_txt_validation) | **POST** /convert/validate/txt | Validate an TXT file
|
19
22
|
[**validate_document_xlsx_validation**](ValidateDocumentApi.md#validate_document_xlsx_validation) | **POST** /convert/validate/xlsx | Validate a Excel document (XLSX)
|
20
23
|
[**validate_document_xml_validation**](ValidateDocumentApi.md#validate_document_xml_validation) | **POST** /convert/validate/xml | Validate an XML file
|
21
24
|
[**validate_document_zip_validation**](ValidateDocumentApi.md#validate_document_zip_validation) | **POST** /convert/validate/zip | Validate a Zip Archive file (zip)
|
@@ -345,6 +348,114 @@ Name | Type | Description | Notes
|
|
345
348
|
|
346
349
|
|
347
350
|
|
351
|
+
# **validate_document_html_validation**
|
352
|
+
> DocumentValidationResult validate_document_html_validation(input_file)
|
353
|
+
|
354
|
+
Validate an HTML file
|
355
|
+
|
356
|
+
Validate an HTML document file; if the document is not valid, identifies the errors in the document
|
357
|
+
|
358
|
+
### Example
|
359
|
+
```ruby
|
360
|
+
# load the gem
|
361
|
+
require 'cloudmersive-convert-api-client'
|
362
|
+
# setup authorization
|
363
|
+
CloudmersiveConvertApiClient.configure do |config|
|
364
|
+
# Configure API key authorization: Apikey
|
365
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
366
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
367
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
368
|
+
end
|
369
|
+
|
370
|
+
api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
|
371
|
+
|
372
|
+
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
373
|
+
|
374
|
+
|
375
|
+
begin
|
376
|
+
#Validate an HTML file
|
377
|
+
result = api_instance.validate_document_html_validation(input_file)
|
378
|
+
p result
|
379
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
380
|
+
puts "Exception when calling ValidateDocumentApi->validate_document_html_validation: #{e}"
|
381
|
+
end
|
382
|
+
```
|
383
|
+
|
384
|
+
### Parameters
|
385
|
+
|
386
|
+
Name | Type | Description | Notes
|
387
|
+
------------- | ------------- | ------------- | -------------
|
388
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
389
|
+
|
390
|
+
### Return type
|
391
|
+
|
392
|
+
[**DocumentValidationResult**](DocumentValidationResult.md)
|
393
|
+
|
394
|
+
### Authorization
|
395
|
+
|
396
|
+
[Apikey](../README.md#Apikey)
|
397
|
+
|
398
|
+
### HTTP request headers
|
399
|
+
|
400
|
+
- **Content-Type**: multipart/form-data
|
401
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
# **validate_document_image_validation**
|
406
|
+
> DocumentValidationResult validate_document_image_validation(input_file)
|
407
|
+
|
408
|
+
Validate an Image File
|
409
|
+
|
410
|
+
Validate an image file; if the document is not valid, identifies the errors in the document. Formats supported include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
411
|
+
|
412
|
+
### Example
|
413
|
+
```ruby
|
414
|
+
# load the gem
|
415
|
+
require 'cloudmersive-convert-api-client'
|
416
|
+
# setup authorization
|
417
|
+
CloudmersiveConvertApiClient.configure do |config|
|
418
|
+
# Configure API key authorization: Apikey
|
419
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
420
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
421
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
422
|
+
end
|
423
|
+
|
424
|
+
api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
|
425
|
+
|
426
|
+
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
427
|
+
|
428
|
+
|
429
|
+
begin
|
430
|
+
#Validate an Image File
|
431
|
+
result = api_instance.validate_document_image_validation(input_file)
|
432
|
+
p result
|
433
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
434
|
+
puts "Exception when calling ValidateDocumentApi->validate_document_image_validation: #{e}"
|
435
|
+
end
|
436
|
+
```
|
437
|
+
|
438
|
+
### Parameters
|
439
|
+
|
440
|
+
Name | Type | Description | Notes
|
441
|
+
------------- | ------------- | ------------- | -------------
|
442
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
443
|
+
|
444
|
+
### Return type
|
445
|
+
|
446
|
+
[**DocumentValidationResult**](DocumentValidationResult.md)
|
447
|
+
|
448
|
+
### Authorization
|
449
|
+
|
450
|
+
[Apikey](../README.md#Apikey)
|
451
|
+
|
452
|
+
### HTTP request headers
|
453
|
+
|
454
|
+
- **Content-Type**: multipart/form-data
|
455
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
456
|
+
|
457
|
+
|
458
|
+
|
348
459
|
# **validate_document_json_validation**
|
349
460
|
> DocumentValidationResult validate_document_json_validation(input_file)
|
350
461
|
|
@@ -669,6 +780,60 @@ Name | Type | Description | Notes
|
|
669
780
|
|
670
781
|
|
671
782
|
|
783
|
+
# **validate_document_txt_validation**
|
784
|
+
> DocumentValidationResult validate_document_txt_validation(input_file)
|
785
|
+
|
786
|
+
Validate an TXT file
|
787
|
+
|
788
|
+
Validate an TXT document file; if the document is not valid, identifies the errors in the document
|
789
|
+
|
790
|
+
### Example
|
791
|
+
```ruby
|
792
|
+
# load the gem
|
793
|
+
require 'cloudmersive-convert-api-client'
|
794
|
+
# setup authorization
|
795
|
+
CloudmersiveConvertApiClient.configure do |config|
|
796
|
+
# Configure API key authorization: Apikey
|
797
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
798
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
799
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
800
|
+
end
|
801
|
+
|
802
|
+
api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
|
803
|
+
|
804
|
+
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
805
|
+
|
806
|
+
|
807
|
+
begin
|
808
|
+
#Validate an TXT file
|
809
|
+
result = api_instance.validate_document_txt_validation(input_file)
|
810
|
+
p result
|
811
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
812
|
+
puts "Exception when calling ValidateDocumentApi->validate_document_txt_validation: #{e}"
|
813
|
+
end
|
814
|
+
```
|
815
|
+
|
816
|
+
### Parameters
|
817
|
+
|
818
|
+
Name | Type | Description | Notes
|
819
|
+
------------- | ------------- | ------------- | -------------
|
820
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
821
|
+
|
822
|
+
### Return type
|
823
|
+
|
824
|
+
[**DocumentValidationResult**](DocumentValidationResult.md)
|
825
|
+
|
826
|
+
### Authorization
|
827
|
+
|
828
|
+
[Apikey](../README.md#Apikey)
|
829
|
+
|
830
|
+
### HTTP request headers
|
831
|
+
|
832
|
+
- **Content-Type**: multipart/form-data
|
833
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
834
|
+
|
835
|
+
|
836
|
+
|
672
837
|
# **validate_document_xlsx_validation**
|
673
838
|
> DocumentValidationResult validate_document_xlsx_validation(input_file)
|
674
839
|
|