cloudmersive-convert-api-client 1.4.7 → 1.4.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/README.md +14 -8
- data/docs/ConvertDocumentApi.md +76 -0
- data/docs/EditPdfApi.md +55 -0
- data/docs/MergeDocumentApi.md +320 -16
- data/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +87 -0
- data/lib/cloudmersive-convert-api-client/api/edit_pdf_api.rb +56 -0
- data/lib/cloudmersive-convert-api-client/api/merge_document_api.rb +364 -16
- data/lib/cloudmersive-convert-api-client/version.rb +1 -1
- data/spec/api/convert_document_api_spec.rb +21 -0
- data/spec/api/edit_pdf_api_spec.rb +12 -0
- data/spec/api/merge_document_api_spec.rb +92 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 708bf710696f30a2f435f8e4363a49d3174ea46cc5a8895b72f860601810b994
|
4
|
+
data.tar.gz: e2cda10f7364d3eda3072a69b350576b9f9cf13322cfd9e3104cef927f4f4352
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81f8500718c43506356d965d97280d71eb71cf0f5be5928ac719c6cb77d8e885b36e560bfbdc377bb5fc12972eb13047d2eef69163b13794f81750fd1fa3e100
|
7
|
+
data.tar.gz: 77c85ce3719db1f787263548b2c5f2a5277185b393baf05d5f6f12b3345da00d218486e6f71b1ecd61ec557f569d9bf3b24c17dbba5f295925df5e8bf143eb5a
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Convert API lets you effortlessly convert file formats and types.
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: v1
|
10
|
-
- Package version: 1.4.
|
10
|
+
- Package version: 1.4.8
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build cloudmersive-convert-api-client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./cloudmersive-convert-api-client-1.4.
|
26
|
+
gem install ./cloudmersive-convert-api-client-1.4.8.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./cloudmersive-convert-api-client-1.4.
|
28
|
+
(for development, run `gem install --dev ./cloudmersive-convert-api-client-1.4.8.gem` to install the development dependencies)
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'cloudmersive-convert-api-client', '~> 1.4.
|
34
|
+
gem 'cloudmersive-convert-api-client', '~> 1.4.8'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -106,6 +106,7 @@ Class | Method | HTTP request | Description
|
|
106
106
|
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_pdf_to_png_single**](docs/ConvertDocumentApi.md#convert_document_pdf_to_png_single) | **POST** /convert/pdf/to/png/merge-single | PDF to Single PNG image
|
107
107
|
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_pdf_to_pptx**](docs/ConvertDocumentApi.md#convert_document_pdf_to_pptx) | **POST** /convert/pdf/to/pptx | PDF to PowerPoint PPTX
|
108
108
|
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_pdf_to_txt**](docs/ConvertDocumentApi.md#convert_document_pdf_to_txt) | **POST** /convert/pdf/to/txt | PDF to Text
|
109
|
+
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_png_array_to_pdf**](docs/ConvertDocumentApi.md#convert_document_png_array_to_pdf) | **POST** /convert/png/to/pdf | PNG Array to PDF
|
109
110
|
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_ppt_to_pdf**](docs/ConvertDocumentApi.md#convert_document_ppt_to_pdf) | **POST** /convert/ppt/to/pdf | PowerPoint PPT (97-03) to PDF
|
110
111
|
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_ppt_to_pptx**](docs/ConvertDocumentApi.md#convert_document_ppt_to_pptx) | **POST** /convert/ppt/to/pptx | PowerPoint PPT (97-03) to PPTX
|
111
112
|
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_pptx_to_pdf**](docs/ConvertDocumentApi.md#convert_document_pptx_to_pdf) | **POST** /convert/pptx/to/pdf | PowerPoint PPTX to PDF
|
@@ -152,13 +153,18 @@ Class | Method | HTTP request | Description
|
|
152
153
|
*CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_xlsx_get_worksheets**](docs/EditDocumentApi.md#edit_document_xlsx_get_worksheets) | **POST** /convert/edit/xlsx/get-worksheets | Get worksheets from a XLSX
|
153
154
|
*CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_xlsx_insert_worksheet**](docs/EditDocumentApi.md#edit_document_xlsx_insert_worksheet) | **POST** /convert/edit/xlsx/insert-worksheet | Insert a new worksheet into an XLSX spreadsheet
|
154
155
|
*CloudmersiveConvertApiClient::EditPdfApi* | [**edit_pdf_encrypt**](docs/EditPdfApi.md#edit_pdf_encrypt) | **POST** /convert/edit/pdf/encrypt | Encrypt and password-protect a PDF
|
156
|
+
*CloudmersiveConvertApiClient::EditPdfApi* | [**edit_pdf_rasterize**](docs/EditPdfApi.md#edit_pdf_rasterize) | **POST** /convert/edit/pdf/rasterize | Rasterize a PDF to an image-based PDF
|
155
157
|
*CloudmersiveConvertApiClient::EditPdfApi* | [**edit_pdf_set_permissions**](docs/EditPdfApi.md#edit_pdf_set_permissions) | **POST** /convert/edit/pdf/encrypt/set-permissions | Encrypt, password-protect and set restricted permissions on a PDF
|
156
158
|
*CloudmersiveConvertApiClient::EditPdfApi* | [**edit_pdf_watermark_text**](docs/EditPdfApi.md#edit_pdf_watermark_text) | **POST** /convert/edit/pdf/watermark/text | Add a text watermark to a PDF
|
157
|
-
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_docx**](docs/MergeDocumentApi.md#merge_document_docx) | **POST** /convert/merge/docx | Merge
|
158
|
-
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**
|
159
|
+
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_docx**](docs/MergeDocumentApi.md#merge_document_docx) | **POST** /convert/merge/docx | Merge Two Word DOCX Together
|
160
|
+
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_docx_multi**](docs/MergeDocumentApi.md#merge_document_docx_multi) | **POST** /convert/merge/docx/multi | Merge Multple Word DOCX Together
|
161
|
+
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_pdf**](docs/MergeDocumentApi.md#merge_document_pdf) | **POST** /convert/merge/pdf | Merge Two PDF Files Together
|
162
|
+
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_pdf_multi**](docs/MergeDocumentApi.md#merge_document_pdf_multi) | **POST** /convert/merge/pdf/multi | Merge Multple PDF Files Together
|
159
163
|
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_png**](docs/MergeDocumentApi.md#merge_document_png) | **POST** /convert/merge/png/vertical | Merge Multple PNG Files Together
|
160
|
-
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_pptx**](docs/MergeDocumentApi.md#merge_document_pptx) | **POST** /convert/merge/pptx | Merge
|
161
|
-
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**
|
164
|
+
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_pptx**](docs/MergeDocumentApi.md#merge_document_pptx) | **POST** /convert/merge/pptx | Merge Two PowerPoint PPTX Together
|
165
|
+
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_pptx_multi**](docs/MergeDocumentApi.md#merge_document_pptx_multi) | **POST** /convert/merge/pptx/multi | Merge Multple PowerPoint PPTX Together
|
166
|
+
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_xlsx**](docs/MergeDocumentApi.md#merge_document_xlsx) | **POST** /convert/merge/xlsx | Merge Two Excel XLSX Together
|
167
|
+
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_xlsx_multi**](docs/MergeDocumentApi.md#merge_document_xlsx_multi) | **POST** /convert/merge/xlsx/multi | Merge Multple Excel XLSX Together
|
162
168
|
*CloudmersiveConvertApiClient::SplitDocumentApi* | [**split_document_xlsx**](docs/SplitDocumentApi.md#split_document_xlsx) | **POST** /convert/split/xlsx | Split a single Excel XLSX into Separate Worksheets
|
163
169
|
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_autodetect_validation**](docs/ValidateDocumentApi.md#validate_document_autodetect_validation) | **POST** /convert/validate/autodetect | Autodetect content type and validate
|
164
170
|
*CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_docx_validation**](docs/ValidateDocumentApi.md#validate_document_docx_validation) | **POST** /convert/validate/docx | Validate a Word document (DOCX)
|
data/docs/ConvertDocumentApi.md
CHANGED
@@ -20,6 +20,7 @@ Method | HTTP request | Description
|
|
20
20
|
[**convert_document_pdf_to_png_single**](ConvertDocumentApi.md#convert_document_pdf_to_png_single) | **POST** /convert/pdf/to/png/merge-single | PDF to Single PNG image
|
21
21
|
[**convert_document_pdf_to_pptx**](ConvertDocumentApi.md#convert_document_pdf_to_pptx) | **POST** /convert/pdf/to/pptx | PDF to PowerPoint PPTX
|
22
22
|
[**convert_document_pdf_to_txt**](ConvertDocumentApi.md#convert_document_pdf_to_txt) | **POST** /convert/pdf/to/txt | PDF to Text
|
23
|
+
[**convert_document_png_array_to_pdf**](ConvertDocumentApi.md#convert_document_png_array_to_pdf) | **POST** /convert/png/to/pdf | PNG Array to PDF
|
23
24
|
[**convert_document_ppt_to_pdf**](ConvertDocumentApi.md#convert_document_ppt_to_pdf) | **POST** /convert/ppt/to/pdf | PowerPoint PPT (97-03) to PDF
|
24
25
|
[**convert_document_ppt_to_pptx**](ConvertDocumentApi.md#convert_document_ppt_to_pptx) | **POST** /convert/ppt/to/pptx | PowerPoint PPT (97-03) to PPTX
|
25
26
|
[**convert_document_pptx_to_pdf**](ConvertDocumentApi.md#convert_document_pptx_to_pdf) | **POST** /convert/pptx/to/pdf | PowerPoint PPTX to PDF
|
@@ -896,6 +897,81 @@ Name | Type | Description | Notes
|
|
896
897
|
|
897
898
|
|
898
899
|
|
900
|
+
# **convert_document_png_array_to_pdf**
|
901
|
+
> String convert_document_png_array_to_pdf(input_file1, input_file2, opts)
|
902
|
+
|
903
|
+
PNG Array to PDF
|
904
|
+
|
905
|
+
Convert an array of PNG images, one image per page, into a newly-created PDF. Supports images of different sizes as input.
|
906
|
+
|
907
|
+
### Example
|
908
|
+
```ruby
|
909
|
+
# load the gem
|
910
|
+
require 'cloudmersive-convert-api-client'
|
911
|
+
# setup authorization
|
912
|
+
CloudmersiveConvertApiClient.configure do |config|
|
913
|
+
# Configure API key authorization: Apikey
|
914
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
915
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
916
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
917
|
+
end
|
918
|
+
|
919
|
+
api_instance = CloudmersiveConvertApiClient::ConvertDocumentApi.new
|
920
|
+
|
921
|
+
input_file1 = File.new("/path/to/file.txt") # File | First input file to perform the operation on.
|
922
|
+
|
923
|
+
input_file2 = File.new("/path/to/file.txt") # File | Second input file to perform the operation on.
|
924
|
+
|
925
|
+
opts = {
|
926
|
+
input_file3: File.new("/path/to/file.txt"), # File | Third input file to perform the operation on.
|
927
|
+
input_file4: File.new("/path/to/file.txt"), # File | Fourth input file to perform the operation on.
|
928
|
+
input_file5: File.new("/path/to/file.txt"), # File | Fifth input file to perform the operation on.
|
929
|
+
input_file6: File.new("/path/to/file.txt"), # File | Sixth input file to perform the operation on.
|
930
|
+
input_file7: File.new("/path/to/file.txt"), # File | Seventh input file to perform the operation on.
|
931
|
+
input_file8: File.new("/path/to/file.txt"), # File | Eighth input file to perform the operation on.
|
932
|
+
input_file9: File.new("/path/to/file.txt"), # File | Ninth input file to perform the operation on.
|
933
|
+
input_file10: File.new("/path/to/file.txt") # File | Tenth input file to perform the operation on.
|
934
|
+
}
|
935
|
+
|
936
|
+
begin
|
937
|
+
#PNG Array to PDF
|
938
|
+
result = api_instance.convert_document_png_array_to_pdf(input_file1, input_file2, opts)
|
939
|
+
p result
|
940
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
941
|
+
puts "Exception when calling ConvertDocumentApi->convert_document_png_array_to_pdf: #{e}"
|
942
|
+
end
|
943
|
+
```
|
944
|
+
|
945
|
+
### Parameters
|
946
|
+
|
947
|
+
Name | Type | Description | Notes
|
948
|
+
------------- | ------------- | ------------- | -------------
|
949
|
+
**input_file1** | **File**| First input file to perform the operation on. |
|
950
|
+
**input_file2** | **File**| Second input file to perform the operation on. |
|
951
|
+
**input_file3** | **File**| Third input file to perform the operation on. | [optional]
|
952
|
+
**input_file4** | **File**| Fourth input file to perform the operation on. | [optional]
|
953
|
+
**input_file5** | **File**| Fifth input file to perform the operation on. | [optional]
|
954
|
+
**input_file6** | **File**| Sixth input file to perform the operation on. | [optional]
|
955
|
+
**input_file7** | **File**| Seventh input file to perform the operation on. | [optional]
|
956
|
+
**input_file8** | **File**| Eighth input file to perform the operation on. | [optional]
|
957
|
+
**input_file9** | **File**| Ninth input file to perform the operation on. | [optional]
|
958
|
+
**input_file10** | **File**| Tenth input file to perform the operation on. | [optional]
|
959
|
+
|
960
|
+
### Return type
|
961
|
+
|
962
|
+
**String**
|
963
|
+
|
964
|
+
### Authorization
|
965
|
+
|
966
|
+
[Apikey](../README.md#Apikey)
|
967
|
+
|
968
|
+
### HTTP request headers
|
969
|
+
|
970
|
+
- **Content-Type**: multipart/form-data
|
971
|
+
- **Accept**: application/octet-stream
|
972
|
+
|
973
|
+
|
974
|
+
|
899
975
|
# **convert_document_ppt_to_pdf**
|
900
976
|
> String convert_document_ppt_to_pdf(input_file)
|
901
977
|
|
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_encrypt**](EditPdfApi.md#edit_pdf_encrypt) | **POST** /convert/edit/pdf/encrypt | Encrypt and password-protect a PDF
|
8
|
+
[**edit_pdf_rasterize**](EditPdfApi.md#edit_pdf_rasterize) | **POST** /convert/edit/pdf/rasterize | Rasterize a PDF to an image-based PDF
|
8
9
|
[**edit_pdf_set_permissions**](EditPdfApi.md#edit_pdf_set_permissions) | **POST** /convert/edit/pdf/encrypt/set-permissions | Encrypt, password-protect and set restricted permissions on a PDF
|
9
10
|
[**edit_pdf_watermark_text**](EditPdfApi.md#edit_pdf_watermark_text) | **POST** /convert/edit/pdf/watermark/text | Add a text watermark to a PDF
|
10
11
|
|
@@ -69,6 +70,60 @@ Name | Type | Description | Notes
|
|
69
70
|
|
70
71
|
|
71
72
|
|
73
|
+
# **edit_pdf_rasterize**
|
74
|
+
> String edit_pdf_rasterize(input_file)
|
75
|
+
|
76
|
+
Rasterize a PDF to an image-based PDF
|
77
|
+
|
78
|
+
Rasterize a PDF into an image-based PDF. The output is a PDF where each page is comprised of a high-resolution image, with all text, figures and other components removed.
|
79
|
+
|
80
|
+
### Example
|
81
|
+
```ruby
|
82
|
+
# load the gem
|
83
|
+
require 'cloudmersive-convert-api-client'
|
84
|
+
# setup authorization
|
85
|
+
CloudmersiveConvertApiClient.configure do |config|
|
86
|
+
# Configure API key authorization: Apikey
|
87
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
88
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
89
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
90
|
+
end
|
91
|
+
|
92
|
+
api_instance = CloudmersiveConvertApiClient::EditPdfApi.new
|
93
|
+
|
94
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
95
|
+
|
96
|
+
|
97
|
+
begin
|
98
|
+
#Rasterize a PDF to an image-based PDF
|
99
|
+
result = api_instance.edit_pdf_rasterize(input_file)
|
100
|
+
p result
|
101
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
102
|
+
puts "Exception when calling EditPdfApi->edit_pdf_rasterize: #{e}"
|
103
|
+
end
|
104
|
+
```
|
105
|
+
|
106
|
+
### Parameters
|
107
|
+
|
108
|
+
Name | Type | Description | Notes
|
109
|
+
------------- | ------------- | ------------- | -------------
|
110
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
111
|
+
|
112
|
+
### Return type
|
113
|
+
|
114
|
+
**String**
|
115
|
+
|
116
|
+
### Authorization
|
117
|
+
|
118
|
+
[Apikey](../README.md#Apikey)
|
119
|
+
|
120
|
+
### HTTP request headers
|
121
|
+
|
122
|
+
- **Content-Type**: multipart/form-data
|
123
|
+
- **Accept**: application/octet-stream
|
124
|
+
|
125
|
+
|
126
|
+
|
72
127
|
# **edit_pdf_set_permissions**
|
73
128
|
> String edit_pdf_set_permissions(owner_password, input_file, opts)
|
74
129
|
|
data/docs/MergeDocumentApi.md
CHANGED
@@ -4,19 +4,23 @@ All URIs are relative to *https://api.cloudmersive.com*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**merge_document_docx**](MergeDocumentApi.md#merge_document_docx) | **POST** /convert/merge/docx | Merge
|
8
|
-
[**
|
7
|
+
[**merge_document_docx**](MergeDocumentApi.md#merge_document_docx) | **POST** /convert/merge/docx | Merge Two Word DOCX Together
|
8
|
+
[**merge_document_docx_multi**](MergeDocumentApi.md#merge_document_docx_multi) | **POST** /convert/merge/docx/multi | Merge Multple Word DOCX Together
|
9
|
+
[**merge_document_pdf**](MergeDocumentApi.md#merge_document_pdf) | **POST** /convert/merge/pdf | Merge Two PDF Files Together
|
10
|
+
[**merge_document_pdf_multi**](MergeDocumentApi.md#merge_document_pdf_multi) | **POST** /convert/merge/pdf/multi | Merge Multple PDF Files Together
|
9
11
|
[**merge_document_png**](MergeDocumentApi.md#merge_document_png) | **POST** /convert/merge/png/vertical | Merge Multple PNG Files Together
|
10
|
-
[**merge_document_pptx**](MergeDocumentApi.md#merge_document_pptx) | **POST** /convert/merge/pptx | Merge
|
11
|
-
[**
|
12
|
+
[**merge_document_pptx**](MergeDocumentApi.md#merge_document_pptx) | **POST** /convert/merge/pptx | Merge Two PowerPoint PPTX Together
|
13
|
+
[**merge_document_pptx_multi**](MergeDocumentApi.md#merge_document_pptx_multi) | **POST** /convert/merge/pptx/multi | Merge Multple PowerPoint PPTX Together
|
14
|
+
[**merge_document_xlsx**](MergeDocumentApi.md#merge_document_xlsx) | **POST** /convert/merge/xlsx | Merge Two Excel XLSX Together
|
15
|
+
[**merge_document_xlsx_multi**](MergeDocumentApi.md#merge_document_xlsx_multi) | **POST** /convert/merge/xlsx/multi | Merge Multple Excel XLSX Together
|
12
16
|
|
13
17
|
|
14
18
|
# **merge_document_docx**
|
15
19
|
> String merge_document_docx(input_file1, input_file2)
|
16
20
|
|
17
|
-
Merge
|
21
|
+
Merge Two Word DOCX Together
|
18
22
|
|
19
|
-
Combine
|
23
|
+
Combine two Office Word Documents (docx) into one single Office Word document
|
20
24
|
|
21
25
|
### Example
|
22
26
|
```ruby
|
@@ -38,7 +42,7 @@ input_file2 = File.new("/path/to/file.txt") # File | Second input file to perfor
|
|
38
42
|
|
39
43
|
|
40
44
|
begin
|
41
|
-
#Merge
|
45
|
+
#Merge Two Word DOCX Together
|
42
46
|
result = api_instance.merge_document_docx(input_file1, input_file2)
|
43
47
|
p result
|
44
48
|
rescue CloudmersiveConvertApiClient::ApiError => e
|
@@ -68,12 +72,87 @@ Name | Type | Description | Notes
|
|
68
72
|
|
69
73
|
|
70
74
|
|
75
|
+
# **merge_document_docx_multi**
|
76
|
+
> String merge_document_docx_multi(input_file1, input_file2, opts)
|
77
|
+
|
78
|
+
Merge Multple Word DOCX Together
|
79
|
+
|
80
|
+
Combine multiple Office Word Documents (docx) into one single Office Word document
|
81
|
+
|
82
|
+
### Example
|
83
|
+
```ruby
|
84
|
+
# load the gem
|
85
|
+
require 'cloudmersive-convert-api-client'
|
86
|
+
# setup authorization
|
87
|
+
CloudmersiveConvertApiClient.configure do |config|
|
88
|
+
# Configure API key authorization: Apikey
|
89
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
90
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
91
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
92
|
+
end
|
93
|
+
|
94
|
+
api_instance = CloudmersiveConvertApiClient::MergeDocumentApi.new
|
95
|
+
|
96
|
+
input_file1 = File.new("/path/to/file.txt") # File | First input file to perform the operation on.
|
97
|
+
|
98
|
+
input_file2 = File.new("/path/to/file.txt") # File | Second input file to perform the operation on.
|
99
|
+
|
100
|
+
opts = {
|
101
|
+
input_file3: File.new("/path/to/file.txt"), # File | Third input file to perform the operation on.
|
102
|
+
input_file4: File.new("/path/to/file.txt"), # File | Fourth input file to perform the operation on.
|
103
|
+
input_file5: File.new("/path/to/file.txt"), # File | Fifth input file to perform the operation on.
|
104
|
+
input_file6: File.new("/path/to/file.txt"), # File | Sixth input file to perform the operation on.
|
105
|
+
input_file7: File.new("/path/to/file.txt"), # File | Seventh input file to perform the operation on.
|
106
|
+
input_file8: File.new("/path/to/file.txt"), # File | Eighth input file to perform the operation on.
|
107
|
+
input_file9: File.new("/path/to/file.txt"), # File | Ninth input file to perform the operation on.
|
108
|
+
input_file10: File.new("/path/to/file.txt") # File | Tenth input file to perform the operation on.
|
109
|
+
}
|
110
|
+
|
111
|
+
begin
|
112
|
+
#Merge Multple Word DOCX Together
|
113
|
+
result = api_instance.merge_document_docx_multi(input_file1, input_file2, opts)
|
114
|
+
p result
|
115
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
116
|
+
puts "Exception when calling MergeDocumentApi->merge_document_docx_multi: #{e}"
|
117
|
+
end
|
118
|
+
```
|
119
|
+
|
120
|
+
### Parameters
|
121
|
+
|
122
|
+
Name | Type | Description | Notes
|
123
|
+
------------- | ------------- | ------------- | -------------
|
124
|
+
**input_file1** | **File**| First input file to perform the operation on. |
|
125
|
+
**input_file2** | **File**| Second input file to perform the operation on. |
|
126
|
+
**input_file3** | **File**| Third input file to perform the operation on. | [optional]
|
127
|
+
**input_file4** | **File**| Fourth input file to perform the operation on. | [optional]
|
128
|
+
**input_file5** | **File**| Fifth input file to perform the operation on. | [optional]
|
129
|
+
**input_file6** | **File**| Sixth input file to perform the operation on. | [optional]
|
130
|
+
**input_file7** | **File**| Seventh input file to perform the operation on. | [optional]
|
131
|
+
**input_file8** | **File**| Eighth input file to perform the operation on. | [optional]
|
132
|
+
**input_file9** | **File**| Ninth input file to perform the operation on. | [optional]
|
133
|
+
**input_file10** | **File**| Tenth input file to perform the operation on. | [optional]
|
134
|
+
|
135
|
+
### Return type
|
136
|
+
|
137
|
+
**String**
|
138
|
+
|
139
|
+
### Authorization
|
140
|
+
|
141
|
+
[Apikey](../README.md#Apikey)
|
142
|
+
|
143
|
+
### HTTP request headers
|
144
|
+
|
145
|
+
- **Content-Type**: multipart/form-data
|
146
|
+
- **Accept**: application/octet-stream
|
147
|
+
|
148
|
+
|
149
|
+
|
71
150
|
# **merge_document_pdf**
|
72
151
|
> String merge_document_pdf(input_file1, input_file2)
|
73
152
|
|
74
|
-
Merge
|
153
|
+
Merge Two PDF Files Together
|
75
154
|
|
76
|
-
Combine
|
155
|
+
Combine two PDF files (pdf) into a single PDF document, preserving the order of the input documents in the combined document
|
77
156
|
|
78
157
|
### Example
|
79
158
|
```ruby
|
@@ -95,7 +174,7 @@ input_file2 = File.new("/path/to/file.txt") # File | Second input file to perfor
|
|
95
174
|
|
96
175
|
|
97
176
|
begin
|
98
|
-
#Merge
|
177
|
+
#Merge Two PDF Files Together
|
99
178
|
result = api_instance.merge_document_pdf(input_file1, input_file2)
|
100
179
|
p result
|
101
180
|
rescue CloudmersiveConvertApiClient::ApiError => e
|
@@ -125,6 +204,81 @@ Name | Type | Description | Notes
|
|
125
204
|
|
126
205
|
|
127
206
|
|
207
|
+
# **merge_document_pdf_multi**
|
208
|
+
> String merge_document_pdf_multi(input_file1, input_file2, opts)
|
209
|
+
|
210
|
+
Merge Multple PDF Files Together
|
211
|
+
|
212
|
+
Combine multiple PDF files (pdf) into a single PDF document, preserving the order of the input documents in the combined document
|
213
|
+
|
214
|
+
### Example
|
215
|
+
```ruby
|
216
|
+
# load the gem
|
217
|
+
require 'cloudmersive-convert-api-client'
|
218
|
+
# setup authorization
|
219
|
+
CloudmersiveConvertApiClient.configure do |config|
|
220
|
+
# Configure API key authorization: Apikey
|
221
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
222
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
223
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
224
|
+
end
|
225
|
+
|
226
|
+
api_instance = CloudmersiveConvertApiClient::MergeDocumentApi.new
|
227
|
+
|
228
|
+
input_file1 = File.new("/path/to/file.txt") # File | First input file to perform the operation on.
|
229
|
+
|
230
|
+
input_file2 = File.new("/path/to/file.txt") # File | Second input file to perform the operation on.
|
231
|
+
|
232
|
+
opts = {
|
233
|
+
input_file3: File.new("/path/to/file.txt"), # File | Third input file to perform the operation on.
|
234
|
+
input_file4: File.new("/path/to/file.txt"), # File | Fourth input file to perform the operation on.
|
235
|
+
input_file5: File.new("/path/to/file.txt"), # File | Fifth input file to perform the operation on.
|
236
|
+
input_file6: File.new("/path/to/file.txt"), # File | Sixth input file to perform the operation on.
|
237
|
+
input_file7: File.new("/path/to/file.txt"), # File | Seventh input file to perform the operation on.
|
238
|
+
input_file8: File.new("/path/to/file.txt"), # File | Eighth input file to perform the operation on.
|
239
|
+
input_file9: File.new("/path/to/file.txt"), # File | Ninth input file to perform the operation on.
|
240
|
+
input_file10: File.new("/path/to/file.txt") # File | Tenth input file to perform the operation on.
|
241
|
+
}
|
242
|
+
|
243
|
+
begin
|
244
|
+
#Merge Multple PDF Files Together
|
245
|
+
result = api_instance.merge_document_pdf_multi(input_file1, input_file2, opts)
|
246
|
+
p result
|
247
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
248
|
+
puts "Exception when calling MergeDocumentApi->merge_document_pdf_multi: #{e}"
|
249
|
+
end
|
250
|
+
```
|
251
|
+
|
252
|
+
### Parameters
|
253
|
+
|
254
|
+
Name | Type | Description | Notes
|
255
|
+
------------- | ------------- | ------------- | -------------
|
256
|
+
**input_file1** | **File**| First input file to perform the operation on. |
|
257
|
+
**input_file2** | **File**| Second input file to perform the operation on. |
|
258
|
+
**input_file3** | **File**| Third input file to perform the operation on. | [optional]
|
259
|
+
**input_file4** | **File**| Fourth input file to perform the operation on. | [optional]
|
260
|
+
**input_file5** | **File**| Fifth input file to perform the operation on. | [optional]
|
261
|
+
**input_file6** | **File**| Sixth input file to perform the operation on. | [optional]
|
262
|
+
**input_file7** | **File**| Seventh input file to perform the operation on. | [optional]
|
263
|
+
**input_file8** | **File**| Eighth input file to perform the operation on. | [optional]
|
264
|
+
**input_file9** | **File**| Ninth input file to perform the operation on. | [optional]
|
265
|
+
**input_file10** | **File**| Tenth input file to perform the operation on. | [optional]
|
266
|
+
|
267
|
+
### Return type
|
268
|
+
|
269
|
+
**String**
|
270
|
+
|
271
|
+
### Authorization
|
272
|
+
|
273
|
+
[Apikey](../README.md#Apikey)
|
274
|
+
|
275
|
+
### HTTP request headers
|
276
|
+
|
277
|
+
- **Content-Type**: multipart/form-data
|
278
|
+
- **Accept**: application/octet-stream
|
279
|
+
|
280
|
+
|
281
|
+
|
128
282
|
# **merge_document_png**
|
129
283
|
> String merge_document_png(input_file1, input_file2)
|
130
284
|
|
@@ -185,9 +339,9 @@ Name | Type | Description | Notes
|
|
185
339
|
# **merge_document_pptx**
|
186
340
|
> String merge_document_pptx(input_file1, input_file2)
|
187
341
|
|
188
|
-
Merge
|
342
|
+
Merge Two PowerPoint PPTX Together
|
189
343
|
|
190
|
-
Combine
|
344
|
+
Combine two Office PowerPoint presentations (pptx) into one single Office PowerPoint presentation
|
191
345
|
|
192
346
|
### Example
|
193
347
|
```ruby
|
@@ -209,7 +363,7 @@ input_file2 = File.new("/path/to/file.txt") # File | Second input file to perfor
|
|
209
363
|
|
210
364
|
|
211
365
|
begin
|
212
|
-
#Merge
|
366
|
+
#Merge Two PowerPoint PPTX Together
|
213
367
|
result = api_instance.merge_document_pptx(input_file1, input_file2)
|
214
368
|
p result
|
215
369
|
rescue CloudmersiveConvertApiClient::ApiError => e
|
@@ -239,12 +393,87 @@ Name | Type | Description | Notes
|
|
239
393
|
|
240
394
|
|
241
395
|
|
396
|
+
# **merge_document_pptx_multi**
|
397
|
+
> String merge_document_pptx_multi(input_file1, input_file2, opts)
|
398
|
+
|
399
|
+
Merge Multple PowerPoint PPTX Together
|
400
|
+
|
401
|
+
Combine multiple Office PowerPoint presentations (pptx) into one single Office PowerPoint presentation
|
402
|
+
|
403
|
+
### Example
|
404
|
+
```ruby
|
405
|
+
# load the gem
|
406
|
+
require 'cloudmersive-convert-api-client'
|
407
|
+
# setup authorization
|
408
|
+
CloudmersiveConvertApiClient.configure do |config|
|
409
|
+
# Configure API key authorization: Apikey
|
410
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
411
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
412
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
413
|
+
end
|
414
|
+
|
415
|
+
api_instance = CloudmersiveConvertApiClient::MergeDocumentApi.new
|
416
|
+
|
417
|
+
input_file1 = File.new("/path/to/file.txt") # File | First input file to perform the operation on.
|
418
|
+
|
419
|
+
input_file2 = File.new("/path/to/file.txt") # File | Second input file to perform the operation on.
|
420
|
+
|
421
|
+
opts = {
|
422
|
+
input_file3: File.new("/path/to/file.txt"), # File | Third input file to perform the operation on.
|
423
|
+
input_file4: File.new("/path/to/file.txt"), # File | Fourth input file to perform the operation on.
|
424
|
+
input_file5: File.new("/path/to/file.txt"), # File | Fifth input file to perform the operation on.
|
425
|
+
input_file6: File.new("/path/to/file.txt"), # File | Sixth input file to perform the operation on.
|
426
|
+
input_file7: File.new("/path/to/file.txt"), # File | Seventh input file to perform the operation on.
|
427
|
+
input_file8: File.new("/path/to/file.txt"), # File | Eighth input file to perform the operation on.
|
428
|
+
input_file9: File.new("/path/to/file.txt"), # File | Ninth input file to perform the operation on.
|
429
|
+
input_file10: File.new("/path/to/file.txt") # File | Tenth input file to perform the operation on.
|
430
|
+
}
|
431
|
+
|
432
|
+
begin
|
433
|
+
#Merge Multple PowerPoint PPTX Together
|
434
|
+
result = api_instance.merge_document_pptx_multi(input_file1, input_file2, opts)
|
435
|
+
p result
|
436
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
437
|
+
puts "Exception when calling MergeDocumentApi->merge_document_pptx_multi: #{e}"
|
438
|
+
end
|
439
|
+
```
|
440
|
+
|
441
|
+
### Parameters
|
442
|
+
|
443
|
+
Name | Type | Description | Notes
|
444
|
+
------------- | ------------- | ------------- | -------------
|
445
|
+
**input_file1** | **File**| First input file to perform the operation on. |
|
446
|
+
**input_file2** | **File**| Second input file to perform the operation on. |
|
447
|
+
**input_file3** | **File**| Third input file to perform the operation on. | [optional]
|
448
|
+
**input_file4** | **File**| Fourth input file to perform the operation on. | [optional]
|
449
|
+
**input_file5** | **File**| Fifth input file to perform the operation on. | [optional]
|
450
|
+
**input_file6** | **File**| Sixth input file to perform the operation on. | [optional]
|
451
|
+
**input_file7** | **File**| Seventh input file to perform the operation on. | [optional]
|
452
|
+
**input_file8** | **File**| Eighth input file to perform the operation on. | [optional]
|
453
|
+
**input_file9** | **File**| Ninth input file to perform the operation on. | [optional]
|
454
|
+
**input_file10** | **File**| Tenth input file to perform the operation on. | [optional]
|
455
|
+
|
456
|
+
### Return type
|
457
|
+
|
458
|
+
**String**
|
459
|
+
|
460
|
+
### Authorization
|
461
|
+
|
462
|
+
[Apikey](../README.md#Apikey)
|
463
|
+
|
464
|
+
### HTTP request headers
|
465
|
+
|
466
|
+
- **Content-Type**: multipart/form-data
|
467
|
+
- **Accept**: application/octet-stream
|
468
|
+
|
469
|
+
|
470
|
+
|
242
471
|
# **merge_document_xlsx**
|
243
472
|
> String merge_document_xlsx(input_file1, input_file2)
|
244
473
|
|
245
|
-
Merge
|
474
|
+
Merge Two Excel XLSX Together
|
246
475
|
|
247
|
-
Combine
|
476
|
+
Combine two Office Excel spreadsheets (xlsx) into a single Office Excel spreadsheet
|
248
477
|
|
249
478
|
### Example
|
250
479
|
```ruby
|
@@ -266,7 +495,7 @@ input_file2 = File.new("/path/to/file.txt") # File | Second input file to perfor
|
|
266
495
|
|
267
496
|
|
268
497
|
begin
|
269
|
-
#Merge
|
498
|
+
#Merge Two Excel XLSX Together
|
270
499
|
result = api_instance.merge_document_xlsx(input_file1, input_file2)
|
271
500
|
p result
|
272
501
|
rescue CloudmersiveConvertApiClient::ApiError => e
|
@@ -296,3 +525,78 @@ Name | Type | Description | Notes
|
|
296
525
|
|
297
526
|
|
298
527
|
|
528
|
+
# **merge_document_xlsx_multi**
|
529
|
+
> String merge_document_xlsx_multi(input_file1, input_file2, opts)
|
530
|
+
|
531
|
+
Merge Multple Excel XLSX Together
|
532
|
+
|
533
|
+
Combine multiple Office Excel spreadsheets (xlsx) into a single Office Excel spreadsheet
|
534
|
+
|
535
|
+
### Example
|
536
|
+
```ruby
|
537
|
+
# load the gem
|
538
|
+
require 'cloudmersive-convert-api-client'
|
539
|
+
# setup authorization
|
540
|
+
CloudmersiveConvertApiClient.configure do |config|
|
541
|
+
# Configure API key authorization: Apikey
|
542
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
543
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
544
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
545
|
+
end
|
546
|
+
|
547
|
+
api_instance = CloudmersiveConvertApiClient::MergeDocumentApi.new
|
548
|
+
|
549
|
+
input_file1 = File.new("/path/to/file.txt") # File | First input file to perform the operation on.
|
550
|
+
|
551
|
+
input_file2 = File.new("/path/to/file.txt") # File | Second input file to perform the operation on.
|
552
|
+
|
553
|
+
opts = {
|
554
|
+
input_file3: File.new("/path/to/file.txt"), # File | Third input file to perform the operation on.
|
555
|
+
input_file4: File.new("/path/to/file.txt"), # File | Fourth input file to perform the operation on.
|
556
|
+
input_file5: File.new("/path/to/file.txt"), # File | Fifth input file to perform the operation on.
|
557
|
+
input_file6: File.new("/path/to/file.txt"), # File | Sixth input file to perform the operation on.
|
558
|
+
input_file7: File.new("/path/to/file.txt"), # File | Seventh input file to perform the operation on.
|
559
|
+
input_file8: File.new("/path/to/file.txt"), # File | Eighth input file to perform the operation on.
|
560
|
+
input_file9: File.new("/path/to/file.txt"), # File | Ninth input file to perform the operation on.
|
561
|
+
input_file10: File.new("/path/to/file.txt") # File | Tenth input file to perform the operation on.
|
562
|
+
}
|
563
|
+
|
564
|
+
begin
|
565
|
+
#Merge Multple Excel XLSX Together
|
566
|
+
result = api_instance.merge_document_xlsx_multi(input_file1, input_file2, opts)
|
567
|
+
p result
|
568
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
569
|
+
puts "Exception when calling MergeDocumentApi->merge_document_xlsx_multi: #{e}"
|
570
|
+
end
|
571
|
+
```
|
572
|
+
|
573
|
+
### Parameters
|
574
|
+
|
575
|
+
Name | Type | Description | Notes
|
576
|
+
------------- | ------------- | ------------- | -------------
|
577
|
+
**input_file1** | **File**| First input file to perform the operation on. |
|
578
|
+
**input_file2** | **File**| Second input file to perform the operation on. |
|
579
|
+
**input_file3** | **File**| Third input file to perform the operation on. | [optional]
|
580
|
+
**input_file4** | **File**| Fourth input file to perform the operation on. | [optional]
|
581
|
+
**input_file5** | **File**| Fifth input file to perform the operation on. | [optional]
|
582
|
+
**input_file6** | **File**| Sixth input file to perform the operation on. | [optional]
|
583
|
+
**input_file7** | **File**| Seventh input file to perform the operation on. | [optional]
|
584
|
+
**input_file8** | **File**| Eighth input file to perform the operation on. | [optional]
|
585
|
+
**input_file9** | **File**| Ninth input file to perform the operation on. | [optional]
|
586
|
+
**input_file10** | **File**| Tenth input file to perform the operation on. | [optional]
|
587
|
+
|
588
|
+
### Return type
|
589
|
+
|
590
|
+
**String**
|
591
|
+
|
592
|
+
### Authorization
|
593
|
+
|
594
|
+
[Apikey](../README.md#Apikey)
|
595
|
+
|
596
|
+
### HTTP request headers
|
597
|
+
|
598
|
+
- **Content-Type**: multipart/form-data
|
599
|
+
- **Accept**: application/octet-stream
|
600
|
+
|
601
|
+
|
602
|
+
|