cloudmersive-convert-api-client 1.2.3 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +201 -0
- data/build.ps1 +12 -0
- data/client/Gemfile +7 -0
- data/client/README.md +184 -0
- data/client/Rakefile +8 -0
- data/client/cloudmersive-convert-api-client.gemspec +45 -0
- data/client/docs/CompareDocumentApi.md +66 -0
- data/client/docs/ConvertDataApi.md +118 -0
- data/client/docs/ConvertDocumentApi.md +723 -0
- data/client/docs/ConvertImageApi.md +69 -0
- data/client/docs/ConvertTemplateApi.md +63 -0
- data/client/docs/ConvertWebApi.md +283 -0
- data/client/docs/ConvertedPngPage.md +9 -0
- data/client/docs/DocumentValidationError.md +11 -0
- data/client/docs/DocumentValidationResult.md +11 -0
- data/client/docs/DocxFooter.md +9 -0
- data/client/docs/DocxHeader.md +9 -0
- data/client/docs/DocxInsertImageRequest.md +13 -0
- data/client/docs/DocxInsertImageResponse.md +9 -0
- data/client/docs/DocxParagraph.md +10 -0
- data/client/docs/DocxRun.md +14 -0
- data/client/docs/DocxSection.md +8 -0
- data/client/docs/DocxSetFooterRequest.md +10 -0
- data/client/docs/DocxSetFooterResponse.md +9 -0
- data/client/docs/DocxSetHeaderRequest.md +10 -0
- data/client/docs/DocxSetHeaderResponse.md +9 -0
- data/client/docs/DocxStyle.md +13 -0
- data/client/docs/DocxTable.md +45 -0
- data/client/docs/DocxTableCell.md +14 -0
- data/client/docs/DocxTableRow.md +9 -0
- data/client/docs/DocxText.md +9 -0
- data/client/docs/EditDocumentApi.md +668 -0
- data/client/docs/FinishEditingRequest.md +8 -0
- data/client/docs/GetDocxHeadersAndFootersRequest.md +9 -0
- data/client/docs/GetDocxHeadersAndFootersResponse.md +10 -0
- data/client/docs/GetDocxStylesRequest.md +9 -0
- data/client/docs/GetDocxStylesResponse.md +9 -0
- data/client/docs/GetDocxTablesRequest.md +9 -0
- data/client/docs/GetDocxTablesResponse.md +9 -0
- data/client/docs/HtmlMdResult.md +9 -0
- data/client/docs/HtmlTemplateApplicationRequest.md +10 -0
- data/client/docs/HtmlTemplateApplicationResponse.md +9 -0
- data/client/docs/HtmlTemplateOperation.md +10 -0
- data/client/docs/HtmlToOfficeRequest.md +8 -0
- data/client/docs/HtmlToPdfRequest.md +9 -0
- data/client/docs/InsertDocxTablesRequest.md +10 -0
- data/client/docs/InsertDocxTablesResponse.md +9 -0
- data/client/docs/MergeDocumentApi.md +182 -0
- data/client/docs/PdfToPngResult.md +9 -0
- data/client/docs/RemoveDocxHeadersAndFootersRequest.md +11 -0
- data/client/docs/RemoveDocxHeadersAndFootersResponse.md +9 -0
- data/client/docs/ReplaceStringRequest.md +12 -0
- data/client/docs/ScreenshotRequest.md +9 -0
- data/client/docs/ValidateDocumentApi.md +173 -0
- data/client/docs/ViewerResponse.md +9 -0
- data/client/docs/ViewerToolsApi.md +63 -0
- data/client/git_push.sh +55 -0
- data/client/lib/cloudmersive-convert-api-client.rb +89 -0
- data/client/lib/cloudmersive-convert-api-client/api/compare_document_api.rb +86 -0
- data/client/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +135 -0
- data/client/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +751 -0
- data/client/lib/cloudmersive-convert-api-client/api/convert_image_api.rb +91 -0
- data/client/lib/cloudmersive-convert-api-client/api/convert_template_api.rb +78 -0
- data/client/lib/cloudmersive-convert-api-client/api/convert_web_api.rb +299 -0
- data/client/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +684 -0
- data/client/lib/cloudmersive-convert-api-client/api/merge_document_api.rb +212 -0
- data/client/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +191 -0
- data/client/lib/cloudmersive-convert-api-client/api/viewer_tools_api.rb +79 -0
- data/client/lib/cloudmersive-convert-api-client/api_client.rb +389 -0
- data/client/lib/cloudmersive-convert-api-client/api_error.rb +38 -0
- data/client/lib/cloudmersive-convert-api-client/configuration.rb +209 -0
- data/client/lib/cloudmersive-convert-api-client/models/converted_png_page.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/document_validation_error.rb +219 -0
- data/client/lib/cloudmersive-convert-api-client/models/document_validation_result.rb +221 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_footer.rb +203 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_header.rb +203 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_insert_image_request.rb +271 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_insert_image_response.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_paragraph.rb +211 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_run.rb +251 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_section.rb +191 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_set_footer_request.rb +225 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_set_footer_response.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_set_header_request.rb +225 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_set_header_response.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_style.rb +239 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_table.rb +561 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_table_cell.rb +251 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_table_row.rb +201 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_text.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/finish_editing_request.rb +189 -0
- data/client/lib/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_request.rb +215 -0
- data/client/lib/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_response.rb +211 -0
- data/client/lib/cloudmersive-convert-api-client/models/get_docx_styles_request.rb +215 -0
- data/client/lib/cloudmersive-convert-api-client/models/get_docx_styles_response.rb +201 -0
- data/client/lib/cloudmersive-convert-api-client/models/get_docx_tables_request.rb +215 -0
- data/client/lib/cloudmersive-convert-api-client/models/get_docx_tables_response.rb +201 -0
- data/client/lib/cloudmersive-convert-api-client/models/html_md_result.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/html_template_application_request.rb +208 -0
- data/client/lib/cloudmersive-convert-api-client/models/html_template_application_response.rb +197 -0
- data/client/lib/cloudmersive-convert-api-client/models/html_template_operation.rb +239 -0
- data/client/lib/cloudmersive-convert-api-client/models/html_to_office_request.rb +188 -0
- data/client/lib/cloudmersive-convert-api-client/models/html_to_pdf_request.rb +197 -0
- data/client/lib/cloudmersive-convert-api-client/models/insert_docx_tables_request.rb +225 -0
- data/client/lib/cloudmersive-convert-api-client/models/insert_docx_tables_response.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/pdf_to_png_result.rb +201 -0
- data/client/lib/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_request.rb +235 -0
- data/client/lib/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_response.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/replace_string_request.rb +245 -0
- data/client/lib/cloudmersive-convert-api-client/models/screenshot_request.rb +197 -0
- data/client/lib/cloudmersive-convert-api-client/models/viewer_response.rb +197 -0
- data/client/lib/cloudmersive-convert-api-client/version.rb +15 -0
- data/client/spec/api/compare_document_api_spec.rb +48 -0
- data/client/spec/api/convert_data_api_spec.rb +59 -0
- data/client/spec/api/convert_document_api_spec.rb +191 -0
- data/client/spec/api/convert_image_api_spec.rb +49 -0
- data/client/spec/api/convert_template_api_spec.rb +47 -0
- data/client/spec/api/convert_web_api_spec.rb +95 -0
- data/client/spec/api/edit_document_api_spec.rb +179 -0
- data/client/spec/api/merge_document_api_spec.rb +74 -0
- data/client/spec/api/validate_document_api_spec.rb +71 -0
- data/client/spec/api/viewer_tools_api_spec.rb +47 -0
- data/client/spec/api_client_spec.rb +226 -0
- data/client/spec/configuration_spec.rb +42 -0
- data/client/spec/models/converted_png_page_spec.rb +48 -0
- data/client/spec/models/document_validation_error_spec.rb +60 -0
- data/client/spec/models/document_validation_result_spec.rb +60 -0
- data/client/spec/models/docx_footer_spec.rb +48 -0
- data/client/spec/models/docx_header_spec.rb +48 -0
- data/client/spec/models/docx_insert_image_request_spec.rb +72 -0
- data/client/spec/models/docx_insert_image_response_spec.rb +48 -0
- data/client/spec/models/docx_paragraph_spec.rb +54 -0
- data/client/spec/models/docx_run_spec.rb +78 -0
- data/client/spec/models/docx_section_spec.rb +42 -0
- data/client/spec/models/docx_set_footer_request_spec.rb +54 -0
- data/client/spec/models/docx_set_footer_response_spec.rb +48 -0
- data/client/spec/models/docx_set_header_request_spec.rb +54 -0
- data/client/spec/models/docx_set_header_response_spec.rb +48 -0
- data/client/spec/models/docx_style_spec.rb +72 -0
- data/client/spec/models/docx_table_cell_spec.rb +78 -0
- data/client/spec/models/docx_table_row_spec.rb +48 -0
- data/client/spec/models/docx_table_spec.rb +264 -0
- data/client/spec/models/docx_text_spec.rb +48 -0
- data/client/spec/models/finish_editing_request_spec.rb +42 -0
- data/client/spec/models/get_docx_headers_and_footers_request_spec.rb +48 -0
- data/client/spec/models/get_docx_headers_and_footers_response_spec.rb +54 -0
- data/client/spec/models/get_docx_styles_request_spec.rb +48 -0
- data/client/spec/models/get_docx_styles_response_spec.rb +48 -0
- data/client/spec/models/get_docx_tables_request_spec.rb +48 -0
- data/client/spec/models/get_docx_tables_response_spec.rb +48 -0
- data/client/spec/models/html_md_result_spec.rb +48 -0
- data/client/spec/models/html_template_application_request_spec.rb +54 -0
- data/client/spec/models/html_template_application_response_spec.rb +48 -0
- data/client/spec/models/html_template_operation_spec.rb +58 -0
- data/client/spec/models/html_to_office_request_spec.rb +42 -0
- data/client/spec/models/html_to_pdf_request_spec.rb +48 -0
- data/client/spec/models/insert_docx_tables_request_spec.rb +54 -0
- data/client/spec/models/insert_docx_tables_response_spec.rb +48 -0
- data/client/spec/models/pdf_to_png_result_spec.rb +48 -0
- data/client/spec/models/remove_docx_headers_and_footers_request_spec.rb +60 -0
- data/client/spec/models/remove_docx_headers_and_footers_response_spec.rb +48 -0
- data/client/spec/models/replace_string_request_spec.rb +66 -0
- data/client/spec/models/screenshot_request_spec.rb +48 -0
- data/client/spec/models/viewer_response_spec.rb +48 -0
- data/client/spec/spec_helper.rb +111 -0
- data/cloudmersiveConvertApiClient-1.2.6.gem +0 -0
- data/cloudmersiveConvertApiClient-1.2.7.gem +0 -0
- data/packageconfig.json +11 -0
- data/swagger-codegen-cli.jar +0 -0
- metadata +173 -3
@@ -0,0 +1,66 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::CompareDocumentApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.cloudmersive.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**compare_document_docx**](CompareDocumentApi.md#compare_document_docx) | **POST** /convert/compare/docx | Compare Two Word DOCX
|
8
|
+
|
9
|
+
|
10
|
+
# **compare_document_docx**
|
11
|
+
> String compare_document_docx(input_file1, input_file2)
|
12
|
+
|
13
|
+
Compare Two Word DOCX
|
14
|
+
|
15
|
+
Compare two Office Word Documents (docx) files and highlight the differences
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'cloudmersive-convert-api-client'
|
21
|
+
# setup authorization
|
22
|
+
CloudmersiveConvertApiClient.configure do |config|
|
23
|
+
# Configure API key authorization: Apikey
|
24
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
25
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
26
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
27
|
+
end
|
28
|
+
|
29
|
+
api_instance = CloudmersiveConvertApiClient::CompareDocumentApi.new
|
30
|
+
|
31
|
+
input_file1 = File.new("/path/to/file.txt") # File | First input file to perform the operation on.
|
32
|
+
|
33
|
+
input_file2 = File.new("/path/to/file.txt") # File | Second input file to perform the operation on (more than 2 can be supplied).
|
34
|
+
|
35
|
+
|
36
|
+
begin
|
37
|
+
#Compare Two Word DOCX
|
38
|
+
result = api_instance.compare_document_docx(input_file1, input_file2)
|
39
|
+
p result
|
40
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
41
|
+
puts "Exception when calling CompareDocumentApi->compare_document_docx: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
### Parameters
|
46
|
+
|
47
|
+
Name | Type | Description | Notes
|
48
|
+
------------- | ------------- | ------------- | -------------
|
49
|
+
**input_file1** | **File**| First input file to perform the operation on. |
|
50
|
+
**input_file2** | **File**| Second input file to perform the operation on (more than 2 can be supplied). |
|
51
|
+
|
52
|
+
### Return type
|
53
|
+
|
54
|
+
**String**
|
55
|
+
|
56
|
+
### Authorization
|
57
|
+
|
58
|
+
[Apikey](../README.md#Apikey)
|
59
|
+
|
60
|
+
### HTTP request headers
|
61
|
+
|
62
|
+
- **Content-Type**: multipart/form-data
|
63
|
+
- **Accept**: application/octet-stream
|
64
|
+
|
65
|
+
|
66
|
+
|
@@ -0,0 +1,118 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::ConvertDataApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.cloudmersive.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**convert_data_csv_to_json**](ConvertDataApi.md#convert_data_csv_to_json) | **POST** /convert/csv/to/json | CSV to JSON conversion
|
8
|
+
[**convert_data_xml_to_json**](ConvertDataApi.md#convert_data_xml_to_json) | **POST** /convert/xml/to/json | XML to JSON conversion
|
9
|
+
|
10
|
+
|
11
|
+
# **convert_data_csv_to_json**
|
12
|
+
> Object convert_data_csv_to_json(input_file)
|
13
|
+
|
14
|
+
CSV to JSON conversion
|
15
|
+
|
16
|
+
Convert a CSV file to a JSON object array
|
17
|
+
|
18
|
+
### Example
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'cloudmersive-convert-api-client'
|
22
|
+
# setup authorization
|
23
|
+
CloudmersiveConvertApiClient.configure do |config|
|
24
|
+
# Configure API key authorization: Apikey
|
25
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
26
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
27
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
28
|
+
end
|
29
|
+
|
30
|
+
api_instance = CloudmersiveConvertApiClient::ConvertDataApi.new
|
31
|
+
|
32
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
33
|
+
|
34
|
+
|
35
|
+
begin
|
36
|
+
#CSV to JSON conversion
|
37
|
+
result = api_instance.convert_data_csv_to_json(input_file)
|
38
|
+
p result
|
39
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
40
|
+
puts "Exception when calling ConvertDataApi->convert_data_csv_to_json: #{e}"
|
41
|
+
end
|
42
|
+
```
|
43
|
+
|
44
|
+
### Parameters
|
45
|
+
|
46
|
+
Name | Type | Description | Notes
|
47
|
+
------------- | ------------- | ------------- | -------------
|
48
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
49
|
+
|
50
|
+
### Return type
|
51
|
+
|
52
|
+
**Object**
|
53
|
+
|
54
|
+
### Authorization
|
55
|
+
|
56
|
+
[Apikey](../README.md#Apikey)
|
57
|
+
|
58
|
+
### HTTP request headers
|
59
|
+
|
60
|
+
- **Content-Type**: multipart/form-data
|
61
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
# **convert_data_xml_to_json**
|
66
|
+
> Object convert_data_xml_to_json(input_file)
|
67
|
+
|
68
|
+
XML to JSON conversion
|
69
|
+
|
70
|
+
Convert an XML string or file into JSON
|
71
|
+
|
72
|
+
### Example
|
73
|
+
```ruby
|
74
|
+
# load the gem
|
75
|
+
require 'cloudmersive-convert-api-client'
|
76
|
+
# setup authorization
|
77
|
+
CloudmersiveConvertApiClient.configure do |config|
|
78
|
+
# Configure API key authorization: Apikey
|
79
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
80
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
81
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
82
|
+
end
|
83
|
+
|
84
|
+
api_instance = CloudmersiveConvertApiClient::ConvertDataApi.new
|
85
|
+
|
86
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
87
|
+
|
88
|
+
|
89
|
+
begin
|
90
|
+
#XML to JSON conversion
|
91
|
+
result = api_instance.convert_data_xml_to_json(input_file)
|
92
|
+
p result
|
93
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
94
|
+
puts "Exception when calling ConvertDataApi->convert_data_xml_to_json: #{e}"
|
95
|
+
end
|
96
|
+
```
|
97
|
+
|
98
|
+
### Parameters
|
99
|
+
|
100
|
+
Name | Type | Description | Notes
|
101
|
+
------------- | ------------- | ------------- | -------------
|
102
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
103
|
+
|
104
|
+
### Return type
|
105
|
+
|
106
|
+
**Object**
|
107
|
+
|
108
|
+
### Authorization
|
109
|
+
|
110
|
+
[Apikey](../README.md#Apikey)
|
111
|
+
|
112
|
+
### HTTP request headers
|
113
|
+
|
114
|
+
- **Content-Type**: multipart/form-data
|
115
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
116
|
+
|
117
|
+
|
118
|
+
|
@@ -0,0 +1,723 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::ConvertDocumentApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.cloudmersive.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**convert_document_autodetect_to_pdf**](ConvertDocumentApi.md#convert_document_autodetect_to_pdf) | **POST** /convert/autodetect/to/pdf | Convert Document to PDF
|
8
|
+
[**convert_document_csv_to_xlsx**](ConvertDocumentApi.md#convert_document_csv_to_xlsx) | **POST** /convert/csv/to/xlsx | CSV to Excel XLSX
|
9
|
+
[**convert_document_doc_to_docx**](ConvertDocumentApi.md#convert_document_doc_to_docx) | **POST** /convert/doc/to/docx | Word DOC (97-03) to DOCX
|
10
|
+
[**convert_document_doc_to_pdf**](ConvertDocumentApi.md#convert_document_doc_to_pdf) | **POST** /convert/doc/to/pdf | Word DOC (97-03) to PDF
|
11
|
+
[**convert_document_docx_to_pdf**](ConvertDocumentApi.md#convert_document_docx_to_pdf) | **POST** /convert/docx/to/pdf | Word DOCX to PDF
|
12
|
+
[**convert_document_pdf_to_png_array**](ConvertDocumentApi.md#convert_document_pdf_to_png_array) | **POST** /convert/pdf/to/png | PDF to PNG Array
|
13
|
+
[**convert_document_ppt_to_pdf**](ConvertDocumentApi.md#convert_document_ppt_to_pdf) | **POST** /convert/ppt/to/pdf | PowerPoint PPT (97-03) to PDF
|
14
|
+
[**convert_document_ppt_to_pptx**](ConvertDocumentApi.md#convert_document_ppt_to_pptx) | **POST** /convert/ppt/to/pptx | PowerPoint PPT (97-03) to PPTX
|
15
|
+
[**convert_document_pptx_to_pdf**](ConvertDocumentApi.md#convert_document_pptx_to_pdf) | **POST** /convert/pptx/to/pdf | PowerPoint PPTX to PDF
|
16
|
+
[**convert_document_xls_to_pdf**](ConvertDocumentApi.md#convert_document_xls_to_pdf) | **POST** /convert/xls/to/pdf | Excel XLS (97-03) to PDF
|
17
|
+
[**convert_document_xls_to_xlsx**](ConvertDocumentApi.md#convert_document_xls_to_xlsx) | **POST** /convert/xls/to/xlsx | Excel XLS (97-03) to XLSX
|
18
|
+
[**convert_document_xlsx_to_csv**](ConvertDocumentApi.md#convert_document_xlsx_to_csv) | **POST** /convert/xlsx/to/csv | Excel XLSX to CSV
|
19
|
+
[**convert_document_xlsx_to_pdf**](ConvertDocumentApi.md#convert_document_xlsx_to_pdf) | **POST** /convert/xlsx/to/pdf | Excel XLSX to PDF
|
20
|
+
|
21
|
+
|
22
|
+
# **convert_document_autodetect_to_pdf**
|
23
|
+
> String convert_document_autodetect_to_pdf(input_file)
|
24
|
+
|
25
|
+
Convert Document to PDF
|
26
|
+
|
27
|
+
Automatically detect file type and convert it to PDF.
|
28
|
+
|
29
|
+
### Example
|
30
|
+
```ruby
|
31
|
+
# load the gem
|
32
|
+
require 'cloudmersive-convert-api-client'
|
33
|
+
# setup authorization
|
34
|
+
CloudmersiveConvertApiClient.configure do |config|
|
35
|
+
# Configure API key authorization: Apikey
|
36
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
37
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
38
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
39
|
+
end
|
40
|
+
|
41
|
+
api_instance = CloudmersiveConvertApiClient::ConvertDocumentApi.new
|
42
|
+
|
43
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
44
|
+
|
45
|
+
|
46
|
+
begin
|
47
|
+
#Convert Document to PDF
|
48
|
+
result = api_instance.convert_document_autodetect_to_pdf(input_file)
|
49
|
+
p result
|
50
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
51
|
+
puts "Exception when calling ConvertDocumentApi->convert_document_autodetect_to_pdf: #{e}"
|
52
|
+
end
|
53
|
+
```
|
54
|
+
|
55
|
+
### Parameters
|
56
|
+
|
57
|
+
Name | Type | Description | Notes
|
58
|
+
------------- | ------------- | ------------- | -------------
|
59
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
60
|
+
|
61
|
+
### Return type
|
62
|
+
|
63
|
+
**String**
|
64
|
+
|
65
|
+
### Authorization
|
66
|
+
|
67
|
+
[Apikey](../README.md#Apikey)
|
68
|
+
|
69
|
+
### HTTP request headers
|
70
|
+
|
71
|
+
- **Content-Type**: multipart/form-data
|
72
|
+
- **Accept**: application/octet-stream
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
# **convert_document_csv_to_xlsx**
|
77
|
+
> String convert_document_csv_to_xlsx(input_file)
|
78
|
+
|
79
|
+
CSV to Excel XLSX
|
80
|
+
|
81
|
+
Convert CSV file to Office Excel XLSX Workbooks file format.
|
82
|
+
|
83
|
+
### Example
|
84
|
+
```ruby
|
85
|
+
# load the gem
|
86
|
+
require 'cloudmersive-convert-api-client'
|
87
|
+
# setup authorization
|
88
|
+
CloudmersiveConvertApiClient.configure do |config|
|
89
|
+
# Configure API key authorization: Apikey
|
90
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
91
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
92
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
93
|
+
end
|
94
|
+
|
95
|
+
api_instance = CloudmersiveConvertApiClient::ConvertDocumentApi.new
|
96
|
+
|
97
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
98
|
+
|
99
|
+
|
100
|
+
begin
|
101
|
+
#CSV to Excel XLSX
|
102
|
+
result = api_instance.convert_document_csv_to_xlsx(input_file)
|
103
|
+
p result
|
104
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
105
|
+
puts "Exception when calling ConvertDocumentApi->convert_document_csv_to_xlsx: #{e}"
|
106
|
+
end
|
107
|
+
```
|
108
|
+
|
109
|
+
### Parameters
|
110
|
+
|
111
|
+
Name | Type | Description | Notes
|
112
|
+
------------- | ------------- | ------------- | -------------
|
113
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
114
|
+
|
115
|
+
### Return type
|
116
|
+
|
117
|
+
**String**
|
118
|
+
|
119
|
+
### Authorization
|
120
|
+
|
121
|
+
[Apikey](../README.md#Apikey)
|
122
|
+
|
123
|
+
### HTTP request headers
|
124
|
+
|
125
|
+
- **Content-Type**: multipart/form-data
|
126
|
+
- **Accept**: application/octet-stream
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
# **convert_document_doc_to_docx**
|
131
|
+
> String convert_document_doc_to_docx(input_file)
|
132
|
+
|
133
|
+
Word DOC (97-03) to DOCX
|
134
|
+
|
135
|
+
Convert/upgrade Office Word (97-2003 Format) Documents (doc) to the modern DOCX format
|
136
|
+
|
137
|
+
### Example
|
138
|
+
```ruby
|
139
|
+
# load the gem
|
140
|
+
require 'cloudmersive-convert-api-client'
|
141
|
+
# setup authorization
|
142
|
+
CloudmersiveConvertApiClient.configure do |config|
|
143
|
+
# Configure API key authorization: Apikey
|
144
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
145
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
146
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
147
|
+
end
|
148
|
+
|
149
|
+
api_instance = CloudmersiveConvertApiClient::ConvertDocumentApi.new
|
150
|
+
|
151
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
152
|
+
|
153
|
+
|
154
|
+
begin
|
155
|
+
#Word DOC (97-03) to DOCX
|
156
|
+
result = api_instance.convert_document_doc_to_docx(input_file)
|
157
|
+
p result
|
158
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
159
|
+
puts "Exception when calling ConvertDocumentApi->convert_document_doc_to_docx: #{e}"
|
160
|
+
end
|
161
|
+
```
|
162
|
+
|
163
|
+
### Parameters
|
164
|
+
|
165
|
+
Name | Type | Description | Notes
|
166
|
+
------------- | ------------- | ------------- | -------------
|
167
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
168
|
+
|
169
|
+
### Return type
|
170
|
+
|
171
|
+
**String**
|
172
|
+
|
173
|
+
### Authorization
|
174
|
+
|
175
|
+
[Apikey](../README.md#Apikey)
|
176
|
+
|
177
|
+
### HTTP request headers
|
178
|
+
|
179
|
+
- **Content-Type**: multipart/form-data
|
180
|
+
- **Accept**: application/octet-stream
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
# **convert_document_doc_to_pdf**
|
185
|
+
> String convert_document_doc_to_pdf(input_file)
|
186
|
+
|
187
|
+
Word DOC (97-03) to PDF
|
188
|
+
|
189
|
+
Convert Office Word (97-2003 Format) Documents (doc) to standard PDF
|
190
|
+
|
191
|
+
### Example
|
192
|
+
```ruby
|
193
|
+
# load the gem
|
194
|
+
require 'cloudmersive-convert-api-client'
|
195
|
+
# setup authorization
|
196
|
+
CloudmersiveConvertApiClient.configure do |config|
|
197
|
+
# Configure API key authorization: Apikey
|
198
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
199
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
200
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
201
|
+
end
|
202
|
+
|
203
|
+
api_instance = CloudmersiveConvertApiClient::ConvertDocumentApi.new
|
204
|
+
|
205
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
206
|
+
|
207
|
+
|
208
|
+
begin
|
209
|
+
#Word DOC (97-03) to PDF
|
210
|
+
result = api_instance.convert_document_doc_to_pdf(input_file)
|
211
|
+
p result
|
212
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
213
|
+
puts "Exception when calling ConvertDocumentApi->convert_document_doc_to_pdf: #{e}"
|
214
|
+
end
|
215
|
+
```
|
216
|
+
|
217
|
+
### Parameters
|
218
|
+
|
219
|
+
Name | Type | Description | Notes
|
220
|
+
------------- | ------------- | ------------- | -------------
|
221
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
222
|
+
|
223
|
+
### Return type
|
224
|
+
|
225
|
+
**String**
|
226
|
+
|
227
|
+
### Authorization
|
228
|
+
|
229
|
+
[Apikey](../README.md#Apikey)
|
230
|
+
|
231
|
+
### HTTP request headers
|
232
|
+
|
233
|
+
- **Content-Type**: multipart/form-data
|
234
|
+
- **Accept**: application/octet-stream
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
# **convert_document_docx_to_pdf**
|
239
|
+
> String convert_document_docx_to_pdf(input_file)
|
240
|
+
|
241
|
+
Word DOCX to PDF
|
242
|
+
|
243
|
+
Convert Office Word Documents (docx) to standard PDF
|
244
|
+
|
245
|
+
### Example
|
246
|
+
```ruby
|
247
|
+
# load the gem
|
248
|
+
require 'cloudmersive-convert-api-client'
|
249
|
+
# setup authorization
|
250
|
+
CloudmersiveConvertApiClient.configure do |config|
|
251
|
+
# Configure API key authorization: Apikey
|
252
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
253
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
254
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
255
|
+
end
|
256
|
+
|
257
|
+
api_instance = CloudmersiveConvertApiClient::ConvertDocumentApi.new
|
258
|
+
|
259
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
260
|
+
|
261
|
+
|
262
|
+
begin
|
263
|
+
#Word DOCX to PDF
|
264
|
+
result = api_instance.convert_document_docx_to_pdf(input_file)
|
265
|
+
p result
|
266
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
267
|
+
puts "Exception when calling ConvertDocumentApi->convert_document_docx_to_pdf: #{e}"
|
268
|
+
end
|
269
|
+
```
|
270
|
+
|
271
|
+
### Parameters
|
272
|
+
|
273
|
+
Name | Type | Description | Notes
|
274
|
+
------------- | ------------- | ------------- | -------------
|
275
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
276
|
+
|
277
|
+
### Return type
|
278
|
+
|
279
|
+
**String**
|
280
|
+
|
281
|
+
### Authorization
|
282
|
+
|
283
|
+
[Apikey](../README.md#Apikey)
|
284
|
+
|
285
|
+
### HTTP request headers
|
286
|
+
|
287
|
+
- **Content-Type**: multipart/form-data
|
288
|
+
- **Accept**: application/octet-stream
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
# **convert_document_pdf_to_png_array**
|
293
|
+
> PdfToPngResult convert_document_pdf_to_png_array(input_file)
|
294
|
+
|
295
|
+
PDF to PNG Array
|
296
|
+
|
297
|
+
Convert PDF document to PNG array, one image per page.
|
298
|
+
|
299
|
+
### Example
|
300
|
+
```ruby
|
301
|
+
# load the gem
|
302
|
+
require 'cloudmersive-convert-api-client'
|
303
|
+
# setup authorization
|
304
|
+
CloudmersiveConvertApiClient.configure do |config|
|
305
|
+
# Configure API key authorization: Apikey
|
306
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
307
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
308
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
309
|
+
end
|
310
|
+
|
311
|
+
api_instance = CloudmersiveConvertApiClient::ConvertDocumentApi.new
|
312
|
+
|
313
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
314
|
+
|
315
|
+
|
316
|
+
begin
|
317
|
+
#PDF to PNG Array
|
318
|
+
result = api_instance.convert_document_pdf_to_png_array(input_file)
|
319
|
+
p result
|
320
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
321
|
+
puts "Exception when calling ConvertDocumentApi->convert_document_pdf_to_png_array: #{e}"
|
322
|
+
end
|
323
|
+
```
|
324
|
+
|
325
|
+
### Parameters
|
326
|
+
|
327
|
+
Name | Type | Description | Notes
|
328
|
+
------------- | ------------- | ------------- | -------------
|
329
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
330
|
+
|
331
|
+
### Return type
|
332
|
+
|
333
|
+
[**PdfToPngResult**](PdfToPngResult.md)
|
334
|
+
|
335
|
+
### Authorization
|
336
|
+
|
337
|
+
[Apikey](../README.md#Apikey)
|
338
|
+
|
339
|
+
### HTTP request headers
|
340
|
+
|
341
|
+
- **Content-Type**: multipart/form-data
|
342
|
+
- **Accept**: application/octet-stream
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
# **convert_document_ppt_to_pdf**
|
347
|
+
> String convert_document_ppt_to_pdf(input_file)
|
348
|
+
|
349
|
+
PowerPoint PPT (97-03) to PDF
|
350
|
+
|
351
|
+
Convert Office PowerPoint (97-2003) Documents (ppt) to standard PDF
|
352
|
+
|
353
|
+
### Example
|
354
|
+
```ruby
|
355
|
+
# load the gem
|
356
|
+
require 'cloudmersive-convert-api-client'
|
357
|
+
# setup authorization
|
358
|
+
CloudmersiveConvertApiClient.configure do |config|
|
359
|
+
# Configure API key authorization: Apikey
|
360
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
361
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
362
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
363
|
+
end
|
364
|
+
|
365
|
+
api_instance = CloudmersiveConvertApiClient::ConvertDocumentApi.new
|
366
|
+
|
367
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
368
|
+
|
369
|
+
|
370
|
+
begin
|
371
|
+
#PowerPoint PPT (97-03) to PDF
|
372
|
+
result = api_instance.convert_document_ppt_to_pdf(input_file)
|
373
|
+
p result
|
374
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
375
|
+
puts "Exception when calling ConvertDocumentApi->convert_document_ppt_to_pdf: #{e}"
|
376
|
+
end
|
377
|
+
```
|
378
|
+
|
379
|
+
### Parameters
|
380
|
+
|
381
|
+
Name | Type | Description | Notes
|
382
|
+
------------- | ------------- | ------------- | -------------
|
383
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
384
|
+
|
385
|
+
### Return type
|
386
|
+
|
387
|
+
**String**
|
388
|
+
|
389
|
+
### Authorization
|
390
|
+
|
391
|
+
[Apikey](../README.md#Apikey)
|
392
|
+
|
393
|
+
### HTTP request headers
|
394
|
+
|
395
|
+
- **Content-Type**: multipart/form-data
|
396
|
+
- **Accept**: application/octet-stream
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
# **convert_document_ppt_to_pptx**
|
401
|
+
> String convert_document_ppt_to_pptx(input_file)
|
402
|
+
|
403
|
+
PowerPoint PPT (97-03) to PPTX
|
404
|
+
|
405
|
+
Convert/upgrade Office PowerPoint (97-2003) Documents (ppt) to modern PPTX
|
406
|
+
|
407
|
+
### Example
|
408
|
+
```ruby
|
409
|
+
# load the gem
|
410
|
+
require 'cloudmersive-convert-api-client'
|
411
|
+
# setup authorization
|
412
|
+
CloudmersiveConvertApiClient.configure do |config|
|
413
|
+
# Configure API key authorization: Apikey
|
414
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
415
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
416
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
417
|
+
end
|
418
|
+
|
419
|
+
api_instance = CloudmersiveConvertApiClient::ConvertDocumentApi.new
|
420
|
+
|
421
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
422
|
+
|
423
|
+
|
424
|
+
begin
|
425
|
+
#PowerPoint PPT (97-03) to PPTX
|
426
|
+
result = api_instance.convert_document_ppt_to_pptx(input_file)
|
427
|
+
p result
|
428
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
429
|
+
puts "Exception when calling ConvertDocumentApi->convert_document_ppt_to_pptx: #{e}"
|
430
|
+
end
|
431
|
+
```
|
432
|
+
|
433
|
+
### Parameters
|
434
|
+
|
435
|
+
Name | Type | Description | Notes
|
436
|
+
------------- | ------------- | ------------- | -------------
|
437
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
438
|
+
|
439
|
+
### Return type
|
440
|
+
|
441
|
+
**String**
|
442
|
+
|
443
|
+
### Authorization
|
444
|
+
|
445
|
+
[Apikey](../README.md#Apikey)
|
446
|
+
|
447
|
+
### HTTP request headers
|
448
|
+
|
449
|
+
- **Content-Type**: multipart/form-data
|
450
|
+
- **Accept**: application/octet-stream
|
451
|
+
|
452
|
+
|
453
|
+
|
454
|
+
# **convert_document_pptx_to_pdf**
|
455
|
+
> String convert_document_pptx_to_pdf(input_file)
|
456
|
+
|
457
|
+
PowerPoint PPTX to PDF
|
458
|
+
|
459
|
+
Convert Office PowerPoint Documents (pptx) to standard PDF
|
460
|
+
|
461
|
+
### Example
|
462
|
+
```ruby
|
463
|
+
# load the gem
|
464
|
+
require 'cloudmersive-convert-api-client'
|
465
|
+
# setup authorization
|
466
|
+
CloudmersiveConvertApiClient.configure do |config|
|
467
|
+
# Configure API key authorization: Apikey
|
468
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
469
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
470
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
471
|
+
end
|
472
|
+
|
473
|
+
api_instance = CloudmersiveConvertApiClient::ConvertDocumentApi.new
|
474
|
+
|
475
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
476
|
+
|
477
|
+
|
478
|
+
begin
|
479
|
+
#PowerPoint PPTX to PDF
|
480
|
+
result = api_instance.convert_document_pptx_to_pdf(input_file)
|
481
|
+
p result
|
482
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
483
|
+
puts "Exception when calling ConvertDocumentApi->convert_document_pptx_to_pdf: #{e}"
|
484
|
+
end
|
485
|
+
```
|
486
|
+
|
487
|
+
### Parameters
|
488
|
+
|
489
|
+
Name | Type | Description | Notes
|
490
|
+
------------- | ------------- | ------------- | -------------
|
491
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
492
|
+
|
493
|
+
### Return type
|
494
|
+
|
495
|
+
**String**
|
496
|
+
|
497
|
+
### Authorization
|
498
|
+
|
499
|
+
[Apikey](../README.md#Apikey)
|
500
|
+
|
501
|
+
### HTTP request headers
|
502
|
+
|
503
|
+
- **Content-Type**: multipart/form-data
|
504
|
+
- **Accept**: application/octet-stream
|
505
|
+
|
506
|
+
|
507
|
+
|
508
|
+
# **convert_document_xls_to_pdf**
|
509
|
+
> Object convert_document_xls_to_pdf(input_file)
|
510
|
+
|
511
|
+
Excel XLS (97-03) to PDF
|
512
|
+
|
513
|
+
Convert Office Excel (97-2003) Workbooks (xls) to standard PDF. Converts all worksheets in the workbook to PDF.
|
514
|
+
|
515
|
+
### Example
|
516
|
+
```ruby
|
517
|
+
# load the gem
|
518
|
+
require 'cloudmersive-convert-api-client'
|
519
|
+
# setup authorization
|
520
|
+
CloudmersiveConvertApiClient.configure do |config|
|
521
|
+
# Configure API key authorization: Apikey
|
522
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
523
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
524
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
525
|
+
end
|
526
|
+
|
527
|
+
api_instance = CloudmersiveConvertApiClient::ConvertDocumentApi.new
|
528
|
+
|
529
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
530
|
+
|
531
|
+
|
532
|
+
begin
|
533
|
+
#Excel XLS (97-03) to PDF
|
534
|
+
result = api_instance.convert_document_xls_to_pdf(input_file)
|
535
|
+
p result
|
536
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
537
|
+
puts "Exception when calling ConvertDocumentApi->convert_document_xls_to_pdf: #{e}"
|
538
|
+
end
|
539
|
+
```
|
540
|
+
|
541
|
+
### Parameters
|
542
|
+
|
543
|
+
Name | Type | Description | Notes
|
544
|
+
------------- | ------------- | ------------- | -------------
|
545
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
546
|
+
|
547
|
+
### Return type
|
548
|
+
|
549
|
+
**Object**
|
550
|
+
|
551
|
+
### Authorization
|
552
|
+
|
553
|
+
[Apikey](../README.md#Apikey)
|
554
|
+
|
555
|
+
### HTTP request headers
|
556
|
+
|
557
|
+
- **Content-Type**: multipart/form-data
|
558
|
+
- **Accept**: application/octet-stream
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
# **convert_document_xls_to_xlsx**
|
563
|
+
> String convert_document_xls_to_xlsx(input_file)
|
564
|
+
|
565
|
+
Excel XLS (97-03) to XLSX
|
566
|
+
|
567
|
+
Convert/upgrade Office Excel (97-2003) Workbooks (xls) to modern XLSX format.
|
568
|
+
|
569
|
+
### Example
|
570
|
+
```ruby
|
571
|
+
# load the gem
|
572
|
+
require 'cloudmersive-convert-api-client'
|
573
|
+
# setup authorization
|
574
|
+
CloudmersiveConvertApiClient.configure do |config|
|
575
|
+
# Configure API key authorization: Apikey
|
576
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
577
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
578
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
579
|
+
end
|
580
|
+
|
581
|
+
api_instance = CloudmersiveConvertApiClient::ConvertDocumentApi.new
|
582
|
+
|
583
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
584
|
+
|
585
|
+
|
586
|
+
begin
|
587
|
+
#Excel XLS (97-03) to XLSX
|
588
|
+
result = api_instance.convert_document_xls_to_xlsx(input_file)
|
589
|
+
p result
|
590
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
591
|
+
puts "Exception when calling ConvertDocumentApi->convert_document_xls_to_xlsx: #{e}"
|
592
|
+
end
|
593
|
+
```
|
594
|
+
|
595
|
+
### Parameters
|
596
|
+
|
597
|
+
Name | Type | Description | Notes
|
598
|
+
------------- | ------------- | ------------- | -------------
|
599
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
600
|
+
|
601
|
+
### Return type
|
602
|
+
|
603
|
+
**String**
|
604
|
+
|
605
|
+
### Authorization
|
606
|
+
|
607
|
+
[Apikey](../README.md#Apikey)
|
608
|
+
|
609
|
+
### HTTP request headers
|
610
|
+
|
611
|
+
- **Content-Type**: multipart/form-data
|
612
|
+
- **Accept**: application/octet-stream
|
613
|
+
|
614
|
+
|
615
|
+
|
616
|
+
# **convert_document_xlsx_to_csv**
|
617
|
+
> String convert_document_xlsx_to_csv(input_file)
|
618
|
+
|
619
|
+
Excel XLSX to CSV
|
620
|
+
|
621
|
+
Convert Office Excel Workbooks (xlsx) to standard Comma-Separated Values (CSV) format.
|
622
|
+
|
623
|
+
### Example
|
624
|
+
```ruby
|
625
|
+
# load the gem
|
626
|
+
require 'cloudmersive-convert-api-client'
|
627
|
+
# setup authorization
|
628
|
+
CloudmersiveConvertApiClient.configure do |config|
|
629
|
+
# Configure API key authorization: Apikey
|
630
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
631
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
632
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
633
|
+
end
|
634
|
+
|
635
|
+
api_instance = CloudmersiveConvertApiClient::ConvertDocumentApi.new
|
636
|
+
|
637
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
638
|
+
|
639
|
+
|
640
|
+
begin
|
641
|
+
#Excel XLSX to CSV
|
642
|
+
result = api_instance.convert_document_xlsx_to_csv(input_file)
|
643
|
+
p result
|
644
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
645
|
+
puts "Exception when calling ConvertDocumentApi->convert_document_xlsx_to_csv: #{e}"
|
646
|
+
end
|
647
|
+
```
|
648
|
+
|
649
|
+
### Parameters
|
650
|
+
|
651
|
+
Name | Type | Description | Notes
|
652
|
+
------------- | ------------- | ------------- | -------------
|
653
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
654
|
+
|
655
|
+
### Return type
|
656
|
+
|
657
|
+
**String**
|
658
|
+
|
659
|
+
### Authorization
|
660
|
+
|
661
|
+
[Apikey](../README.md#Apikey)
|
662
|
+
|
663
|
+
### HTTP request headers
|
664
|
+
|
665
|
+
- **Content-Type**: multipart/form-data
|
666
|
+
- **Accept**: application/octet-stream
|
667
|
+
|
668
|
+
|
669
|
+
|
670
|
+
# **convert_document_xlsx_to_pdf**
|
671
|
+
> String convert_document_xlsx_to_pdf(input_file)
|
672
|
+
|
673
|
+
Excel XLSX to PDF
|
674
|
+
|
675
|
+
Convert Office Excel Workbooks (xlsx) to standard PDF. Converts all worksheets in the workbook to PDF.
|
676
|
+
|
677
|
+
### Example
|
678
|
+
```ruby
|
679
|
+
# load the gem
|
680
|
+
require 'cloudmersive-convert-api-client'
|
681
|
+
# setup authorization
|
682
|
+
CloudmersiveConvertApiClient.configure do |config|
|
683
|
+
# Configure API key authorization: Apikey
|
684
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
685
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
686
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
687
|
+
end
|
688
|
+
|
689
|
+
api_instance = CloudmersiveConvertApiClient::ConvertDocumentApi.new
|
690
|
+
|
691
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
692
|
+
|
693
|
+
|
694
|
+
begin
|
695
|
+
#Excel XLSX to PDF
|
696
|
+
result = api_instance.convert_document_xlsx_to_pdf(input_file)
|
697
|
+
p result
|
698
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
699
|
+
puts "Exception when calling ConvertDocumentApi->convert_document_xlsx_to_pdf: #{e}"
|
700
|
+
end
|
701
|
+
```
|
702
|
+
|
703
|
+
### Parameters
|
704
|
+
|
705
|
+
Name | Type | Description | Notes
|
706
|
+
------------- | ------------- | ------------- | -------------
|
707
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
708
|
+
|
709
|
+
### Return type
|
710
|
+
|
711
|
+
**String**
|
712
|
+
|
713
|
+
### Authorization
|
714
|
+
|
715
|
+
[Apikey](../README.md#Apikey)
|
716
|
+
|
717
|
+
### HTTP request headers
|
718
|
+
|
719
|
+
- **Content-Type**: multipart/form-data
|
720
|
+
- **Accept**: application/octet-stream
|
721
|
+
|
722
|
+
|
723
|
+
|