cloudmersive-convert-api-client 1.2.3 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- 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,8 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::FinishEditingRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**input_file_url** | **String** | URL of a document being edited to get the contents of. | [optional]
|
7
|
+
|
8
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::GetDocxHeadersAndFootersRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**input_file_bytes** | **String** | Optional: Bytes of the input file to operate on | [optional]
|
7
|
+
**input_file_url** | **String** | Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::GetDocxHeadersAndFootersResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
|
7
|
+
**headers** | [**Array<DocxHeader>**](DocxHeader.md) | | [optional]
|
8
|
+
**footers** | [**Array<DocxFooter>**](DocxFooter.md) | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::GetDocxStylesRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**input_file_bytes** | **String** | Optional: Bytes of the input file to operate on | [optional]
|
7
|
+
**input_file_url** | **String** | Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::GetDocxStylesResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
|
7
|
+
**styles** | [**Array<DocxStyle>**](DocxStyle.md) | Styles in the DOCX document | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::GetDocxTablesRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**input_file_bytes** | **String** | Optional: Bytes of the input file to operate on | [optional]
|
7
|
+
**input_file_url** | **String** | Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::GetDocxTablesResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
|
7
|
+
**tables** | [**Array<DocxTable>**](DocxTable.md) | Tables in the DOCX file | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::HtmlMdResult
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**successful** | **BOOLEAN** | True if operation was successful, false otherwise | [optional]
|
7
|
+
**html** | **String** | Resulting HTML from the conversion | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::HtmlTemplateApplicationRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**html_template** | **String** | | [optional]
|
7
|
+
**html_template_url** | **String** | | [optional]
|
8
|
+
**operations** | [**Array<HtmlTemplateOperation>**](HtmlTemplateOperation.md) | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::HtmlTemplateApplicationResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**successful** | **BOOLEAN** | | [optional]
|
7
|
+
**final_html** | **String** | | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::HtmlTemplateOperation
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**action** | **Integer** | | [optional]
|
7
|
+
**match_agsint** | **String** | | [optional]
|
8
|
+
**replace_with** | **String** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::InsertDocxTablesRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**input_file_bytes** | **String** | Optional: Bytes of the input file to operate on | [optional]
|
7
|
+
**input_file_url** | **String** | Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). | [optional]
|
8
|
+
**table_to_insert** | [**DocxTable**](DocxTable.md) | Table you would like to insert | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::InsertDocxTablesResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
|
7
|
+
**edited_document_url** | **String** | URL to the edited DOCX file; file is stored in an in-memory cache and will be deleted. Call Finish-Editing to get the result document contents. | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,182 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::MergeDocumentApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.cloudmersive.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**merge_document_docx**](MergeDocumentApi.md#merge_document_docx) | **POST** /convert/merge/docx | Merge Multple Word DOCX Together
|
8
|
+
[**merge_document_pptx**](MergeDocumentApi.md#merge_document_pptx) | **POST** /convert/merge/pptx | Merge Multple PowerPoint PPTX Together
|
9
|
+
[**merge_document_xlsx**](MergeDocumentApi.md#merge_document_xlsx) | **POST** /convert/merge/xlsx | Merge Multple Excel XLSX Together
|
10
|
+
|
11
|
+
|
12
|
+
# **merge_document_docx**
|
13
|
+
> String merge_document_docx(input_file1, input_file2)
|
14
|
+
|
15
|
+
Merge Multple Word DOCX Together
|
16
|
+
|
17
|
+
Combine multiple Office Word Documents (docx) into one single Office Word document
|
18
|
+
|
19
|
+
### Example
|
20
|
+
```ruby
|
21
|
+
# load the gem
|
22
|
+
require 'cloudmersive-convert-api-client'
|
23
|
+
# setup authorization
|
24
|
+
CloudmersiveConvertApiClient.configure do |config|
|
25
|
+
# Configure API key authorization: Apikey
|
26
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
27
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
28
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = CloudmersiveConvertApiClient::MergeDocumentApi.new
|
32
|
+
|
33
|
+
input_file1 = File.new("/path/to/file.txt") # File | First input file to perform the operation on.
|
34
|
+
|
35
|
+
input_file2 = File.new("/path/to/file.txt") # File | Second input file to perform the operation on (more than 2 can be supplied).
|
36
|
+
|
37
|
+
|
38
|
+
begin
|
39
|
+
#Merge Multple Word DOCX Together
|
40
|
+
result = api_instance.merge_document_docx(input_file1, input_file2)
|
41
|
+
p result
|
42
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
43
|
+
puts "Exception when calling MergeDocumentApi->merge_document_docx: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
### Parameters
|
48
|
+
|
49
|
+
Name | Type | Description | Notes
|
50
|
+
------------- | ------------- | ------------- | -------------
|
51
|
+
**input_file1** | **File**| First input file to perform the operation on. |
|
52
|
+
**input_file2** | **File**| Second input file to perform the operation on (more than 2 can be supplied). |
|
53
|
+
|
54
|
+
### Return type
|
55
|
+
|
56
|
+
**String**
|
57
|
+
|
58
|
+
### Authorization
|
59
|
+
|
60
|
+
[Apikey](../README.md#Apikey)
|
61
|
+
|
62
|
+
### HTTP request headers
|
63
|
+
|
64
|
+
- **Content-Type**: multipart/form-data
|
65
|
+
- **Accept**: application/octet-stream
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
# **merge_document_pptx**
|
70
|
+
> String merge_document_pptx(input_file1, input_file2)
|
71
|
+
|
72
|
+
Merge Multple PowerPoint PPTX Together
|
73
|
+
|
74
|
+
Combine multiple Office PowerPoint presentations (pptx) into one single Office PowerPoint presentation
|
75
|
+
|
76
|
+
### Example
|
77
|
+
```ruby
|
78
|
+
# load the gem
|
79
|
+
require 'cloudmersive-convert-api-client'
|
80
|
+
# setup authorization
|
81
|
+
CloudmersiveConvertApiClient.configure do |config|
|
82
|
+
# Configure API key authorization: Apikey
|
83
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
84
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
85
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
86
|
+
end
|
87
|
+
|
88
|
+
api_instance = CloudmersiveConvertApiClient::MergeDocumentApi.new
|
89
|
+
|
90
|
+
input_file1 = File.new("/path/to/file.txt") # File | First input file to perform the operation on.
|
91
|
+
|
92
|
+
input_file2 = File.new("/path/to/file.txt") # File | Second input file to perform the operation on (more than 2 can be supplied).
|
93
|
+
|
94
|
+
|
95
|
+
begin
|
96
|
+
#Merge Multple PowerPoint PPTX Together
|
97
|
+
result = api_instance.merge_document_pptx(input_file1, input_file2)
|
98
|
+
p result
|
99
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
100
|
+
puts "Exception when calling MergeDocumentApi->merge_document_pptx: #{e}"
|
101
|
+
end
|
102
|
+
```
|
103
|
+
|
104
|
+
### Parameters
|
105
|
+
|
106
|
+
Name | Type | Description | Notes
|
107
|
+
------------- | ------------- | ------------- | -------------
|
108
|
+
**input_file1** | **File**| First input file to perform the operation on. |
|
109
|
+
**input_file2** | **File**| Second input file to perform the operation on (more than 2 can be supplied). |
|
110
|
+
|
111
|
+
### Return type
|
112
|
+
|
113
|
+
**String**
|
114
|
+
|
115
|
+
### Authorization
|
116
|
+
|
117
|
+
[Apikey](../README.md#Apikey)
|
118
|
+
|
119
|
+
### HTTP request headers
|
120
|
+
|
121
|
+
- **Content-Type**: multipart/form-data
|
122
|
+
- **Accept**: application/octet-stream
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
# **merge_document_xlsx**
|
127
|
+
> String merge_document_xlsx(input_file1, input_file2)
|
128
|
+
|
129
|
+
Merge Multple Excel XLSX Together
|
130
|
+
|
131
|
+
Combine multiple Office Excel spreadsheets (xlsx) into a single Office Excel spreadsheet
|
132
|
+
|
133
|
+
### Example
|
134
|
+
```ruby
|
135
|
+
# load the gem
|
136
|
+
require 'cloudmersive-convert-api-client'
|
137
|
+
# setup authorization
|
138
|
+
CloudmersiveConvertApiClient.configure do |config|
|
139
|
+
# Configure API key authorization: Apikey
|
140
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
141
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
142
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
143
|
+
end
|
144
|
+
|
145
|
+
api_instance = CloudmersiveConvertApiClient::MergeDocumentApi.new
|
146
|
+
|
147
|
+
input_file1 = File.new("/path/to/file.txt") # File | First input file to perform the operation on.
|
148
|
+
|
149
|
+
input_file2 = File.new("/path/to/file.txt") # File | Second input file to perform the operation on (more than 2 can be supplied).
|
150
|
+
|
151
|
+
|
152
|
+
begin
|
153
|
+
#Merge Multple Excel XLSX Together
|
154
|
+
result = api_instance.merge_document_xlsx(input_file1, input_file2)
|
155
|
+
p result
|
156
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
157
|
+
puts "Exception when calling MergeDocumentApi->merge_document_xlsx: #{e}"
|
158
|
+
end
|
159
|
+
```
|
160
|
+
|
161
|
+
### Parameters
|
162
|
+
|
163
|
+
Name | Type | Description | Notes
|
164
|
+
------------- | ------------- | ------------- | -------------
|
165
|
+
**input_file1** | **File**| First input file to perform the operation on. |
|
166
|
+
**input_file2** | **File**| Second input file to perform the operation on (more than 2 can be supplied). |
|
167
|
+
|
168
|
+
### Return type
|
169
|
+
|
170
|
+
**String**
|
171
|
+
|
172
|
+
### Authorization
|
173
|
+
|
174
|
+
[Apikey](../README.md#Apikey)
|
175
|
+
|
176
|
+
### HTTP request headers
|
177
|
+
|
178
|
+
- **Content-Type**: multipart/form-data
|
179
|
+
- **Accept**: application/octet-stream
|
180
|
+
|
181
|
+
|
182
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::PdfToPngResult
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
|
7
|
+
**png_result_pages** | [**Array<ConvertedPngPage>**](ConvertedPngPage.md) | Array of converted pages | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::RemoveDocxHeadersAndFootersRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**input_file_bytes** | **String** | Optional: Bytes of the input file to operate on | [optional]
|
7
|
+
**input_file_url** | **String** | Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). | [optional]
|
8
|
+
**remove_headers** | **BOOLEAN** | True if you would like to remove all headers from the input document, false otherwise | [optional]
|
9
|
+
**remove_footers** | **BOOLEAN** | True if you would like to remove all footers from the input document, false otherwise | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::RemoveDocxHeadersAndFootersResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
|
7
|
+
**edited_document_url** | **String** | URL of the resulting edited document; this is a secure URL and cannot be downloaded without adding the Apikey header; it is also temporary, stored in an in-memory cache and will be deleted. Call Finish-Editing to get the result document contents. | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::ReplaceStringRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**input_file_bytes** | **String** | Optional: Bytes of the input file to operate on | [optional]
|
7
|
+
**input_file_url** | **String** | Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). | [optional]
|
8
|
+
**match_string** | **String** | String to search for and match against, to be replaced | [optional]
|
9
|
+
**replace_string** | **String** | String to replace the matched values with | [optional]
|
10
|
+
**match_case** | **BOOLEAN** | True if the case should be matched, false for case insensitive match | [optional]
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,173 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::ValidateDocumentApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.cloudmersive.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**validate_document_docx_validation**](ValidateDocumentApi.md#validate_document_docx_validation) | **POST** /convert/validate/docx | Validate a Word document (DOCX)
|
8
|
+
[**validate_document_pptx_validation**](ValidateDocumentApi.md#validate_document_pptx_validation) | **POST** /convert/validate/pptx | Validate a PowerPoint presentation (PPTX)
|
9
|
+
[**validate_document_xlsx_validation**](ValidateDocumentApi.md#validate_document_xlsx_validation) | **POST** /convert/validate/xlsx | Validate a Excel document (XLSX)
|
10
|
+
|
11
|
+
|
12
|
+
# **validate_document_docx_validation**
|
13
|
+
> DocumentValidationResult validate_document_docx_validation(input_file)
|
14
|
+
|
15
|
+
Validate a Word document (DOCX)
|
16
|
+
|
17
|
+
Validate a Word document (DOCX); if the document is not valid, identifies the errors in the document
|
18
|
+
|
19
|
+
### Example
|
20
|
+
```ruby
|
21
|
+
# load the gem
|
22
|
+
require 'cloudmersive-convert-api-client'
|
23
|
+
# setup authorization
|
24
|
+
CloudmersiveConvertApiClient.configure do |config|
|
25
|
+
# Configure API key authorization: Apikey
|
26
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
27
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
28
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
|
32
|
+
|
33
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
34
|
+
|
35
|
+
|
36
|
+
begin
|
37
|
+
#Validate a Word document (DOCX)
|
38
|
+
result = api_instance.validate_document_docx_validation(input_file)
|
39
|
+
p result
|
40
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
41
|
+
puts "Exception when calling ValidateDocumentApi->validate_document_docx_validation: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
### Parameters
|
46
|
+
|
47
|
+
Name | Type | Description | Notes
|
48
|
+
------------- | ------------- | ------------- | -------------
|
49
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
50
|
+
|
51
|
+
### Return type
|
52
|
+
|
53
|
+
[**DocumentValidationResult**](DocumentValidationResult.md)
|
54
|
+
|
55
|
+
### Authorization
|
56
|
+
|
57
|
+
[Apikey](../README.md#Apikey)
|
58
|
+
|
59
|
+
### HTTP request headers
|
60
|
+
|
61
|
+
- **Content-Type**: multipart/form-data
|
62
|
+
- **Accept**: application/octet-stream
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
# **validate_document_pptx_validation**
|
67
|
+
> DocumentValidationResult validate_document_pptx_validation(input_file)
|
68
|
+
|
69
|
+
Validate a PowerPoint presentation (PPTX)
|
70
|
+
|
71
|
+
Validate a PowerPoint presentation (PPTX); if the document is not valid, identifies the errors in the document
|
72
|
+
|
73
|
+
### Example
|
74
|
+
```ruby
|
75
|
+
# load the gem
|
76
|
+
require 'cloudmersive-convert-api-client'
|
77
|
+
# setup authorization
|
78
|
+
CloudmersiveConvertApiClient.configure do |config|
|
79
|
+
# Configure API key authorization: Apikey
|
80
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
81
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
82
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
83
|
+
end
|
84
|
+
|
85
|
+
api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
|
86
|
+
|
87
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
88
|
+
|
89
|
+
|
90
|
+
begin
|
91
|
+
#Validate a PowerPoint presentation (PPTX)
|
92
|
+
result = api_instance.validate_document_pptx_validation(input_file)
|
93
|
+
p result
|
94
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
95
|
+
puts "Exception when calling ValidateDocumentApi->validate_document_pptx_validation: #{e}"
|
96
|
+
end
|
97
|
+
```
|
98
|
+
|
99
|
+
### Parameters
|
100
|
+
|
101
|
+
Name | Type | Description | Notes
|
102
|
+
------------- | ------------- | ------------- | -------------
|
103
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
104
|
+
|
105
|
+
### Return type
|
106
|
+
|
107
|
+
[**DocumentValidationResult**](DocumentValidationResult.md)
|
108
|
+
|
109
|
+
### Authorization
|
110
|
+
|
111
|
+
[Apikey](../README.md#Apikey)
|
112
|
+
|
113
|
+
### HTTP request headers
|
114
|
+
|
115
|
+
- **Content-Type**: multipart/form-data
|
116
|
+
- **Accept**: application/octet-stream
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
# **validate_document_xlsx_validation**
|
121
|
+
> DocumentValidationResult validate_document_xlsx_validation(input_file)
|
122
|
+
|
123
|
+
Validate a Excel document (XLSX)
|
124
|
+
|
125
|
+
Validate a Excel document (XLSX); if the document is not valid, identifies the errors in the document
|
126
|
+
|
127
|
+
### Example
|
128
|
+
```ruby
|
129
|
+
# load the gem
|
130
|
+
require 'cloudmersive-convert-api-client'
|
131
|
+
# setup authorization
|
132
|
+
CloudmersiveConvertApiClient.configure do |config|
|
133
|
+
# Configure API key authorization: Apikey
|
134
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
135
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
136
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
137
|
+
end
|
138
|
+
|
139
|
+
api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
|
140
|
+
|
141
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
142
|
+
|
143
|
+
|
144
|
+
begin
|
145
|
+
#Validate a Excel document (XLSX)
|
146
|
+
result = api_instance.validate_document_xlsx_validation(input_file)
|
147
|
+
p result
|
148
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
149
|
+
puts "Exception when calling ValidateDocumentApi->validate_document_xlsx_validation: #{e}"
|
150
|
+
end
|
151
|
+
```
|
152
|
+
|
153
|
+
### Parameters
|
154
|
+
|
155
|
+
Name | Type | Description | Notes
|
156
|
+
------------- | ------------- | ------------- | -------------
|
157
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
158
|
+
|
159
|
+
### Return type
|
160
|
+
|
161
|
+
[**DocumentValidationResult**](DocumentValidationResult.md)
|
162
|
+
|
163
|
+
### Authorization
|
164
|
+
|
165
|
+
[Apikey](../README.md#Apikey)
|
166
|
+
|
167
|
+
### HTTP request headers
|
168
|
+
|
169
|
+
- **Content-Type**: multipart/form-data
|
170
|
+
- **Accept**: application/octet-stream
|
171
|
+
|
172
|
+
|
173
|
+
|