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
@@ -916,6 +916,93 @@ module CloudmersiveConvertApiClient
|
|
916
916
|
return data, status_code, headers
|
917
917
|
end
|
918
918
|
|
919
|
+
# PNG Array to PDF
|
920
|
+
# Convert an array of PNG images, one image per page, into a newly-created PDF. Supports images of different sizes as input.
|
921
|
+
# @param input_file1 First input file to perform the operation on.
|
922
|
+
# @param input_file2 Second input file to perform the operation on.
|
923
|
+
# @param [Hash] opts the optional parameters
|
924
|
+
# @option opts [File] :input_file3 Third input file to perform the operation on.
|
925
|
+
# @option opts [File] :input_file4 Fourth input file to perform the operation on.
|
926
|
+
# @option opts [File] :input_file5 Fifth input file to perform the operation on.
|
927
|
+
# @option opts [File] :input_file6 Sixth input file to perform the operation on.
|
928
|
+
# @option opts [File] :input_file7 Seventh input file to perform the operation on.
|
929
|
+
# @option opts [File] :input_file8 Eighth input file to perform the operation on.
|
930
|
+
# @option opts [File] :input_file9 Ninth input file to perform the operation on.
|
931
|
+
# @option opts [File] :input_file10 Tenth input file to perform the operation on.
|
932
|
+
# @return [String]
|
933
|
+
def convert_document_png_array_to_pdf(input_file1, input_file2, opts = {})
|
934
|
+
data, _status_code, _headers = convert_document_png_array_to_pdf_with_http_info(input_file1, input_file2, opts)
|
935
|
+
return data
|
936
|
+
end
|
937
|
+
|
938
|
+
# PNG Array to PDF
|
939
|
+
# Convert an array of PNG images, one image per page, into a newly-created PDF. Supports images of different sizes as input.
|
940
|
+
# @param input_file1 First input file to perform the operation on.
|
941
|
+
# @param input_file2 Second input file to perform the operation on.
|
942
|
+
# @param [Hash] opts the optional parameters
|
943
|
+
# @option opts [File] :input_file3 Third input file to perform the operation on.
|
944
|
+
# @option opts [File] :input_file4 Fourth input file to perform the operation on.
|
945
|
+
# @option opts [File] :input_file5 Fifth input file to perform the operation on.
|
946
|
+
# @option opts [File] :input_file6 Sixth input file to perform the operation on.
|
947
|
+
# @option opts [File] :input_file7 Seventh input file to perform the operation on.
|
948
|
+
# @option opts [File] :input_file8 Eighth input file to perform the operation on.
|
949
|
+
# @option opts [File] :input_file9 Ninth input file to perform the operation on.
|
950
|
+
# @option opts [File] :input_file10 Tenth input file to perform the operation on.
|
951
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
952
|
+
def convert_document_png_array_to_pdf_with_http_info(input_file1, input_file2, opts = {})
|
953
|
+
if @api_client.config.debugging
|
954
|
+
@api_client.config.logger.debug "Calling API: ConvertDocumentApi.convert_document_png_array_to_pdf ..."
|
955
|
+
end
|
956
|
+
# verify the required parameter 'input_file1' is set
|
957
|
+
if @api_client.config.client_side_validation && input_file1.nil?
|
958
|
+
fail ArgumentError, "Missing the required parameter 'input_file1' when calling ConvertDocumentApi.convert_document_png_array_to_pdf"
|
959
|
+
end
|
960
|
+
# verify the required parameter 'input_file2' is set
|
961
|
+
if @api_client.config.client_side_validation && input_file2.nil?
|
962
|
+
fail ArgumentError, "Missing the required parameter 'input_file2' when calling ConvertDocumentApi.convert_document_png_array_to_pdf"
|
963
|
+
end
|
964
|
+
# resource path
|
965
|
+
local_var_path = "/convert/png/to/pdf"
|
966
|
+
|
967
|
+
# query parameters
|
968
|
+
query_params = {}
|
969
|
+
|
970
|
+
# header parameters
|
971
|
+
header_params = {}
|
972
|
+
# HTTP header 'Accept' (if needed)
|
973
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
974
|
+
# HTTP header 'Content-Type'
|
975
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
976
|
+
|
977
|
+
# form parameters
|
978
|
+
form_params = {}
|
979
|
+
form_params["inputFile1"] = input_file1
|
980
|
+
form_params["inputFile2"] = input_file2
|
981
|
+
form_params["inputFile3"] = opts[:'input_file3'] if !opts[:'input_file3'].nil?
|
982
|
+
form_params["inputFile4"] = opts[:'input_file4'] if !opts[:'input_file4'].nil?
|
983
|
+
form_params["inputFile5"] = opts[:'input_file5'] if !opts[:'input_file5'].nil?
|
984
|
+
form_params["inputFile6"] = opts[:'input_file6'] if !opts[:'input_file6'].nil?
|
985
|
+
form_params["inputFile7"] = opts[:'input_file7'] if !opts[:'input_file7'].nil?
|
986
|
+
form_params["inputFile8"] = opts[:'input_file8'] if !opts[:'input_file8'].nil?
|
987
|
+
form_params["inputFile9"] = opts[:'input_file9'] if !opts[:'input_file9'].nil?
|
988
|
+
form_params["inputFile10"] = opts[:'input_file10'] if !opts[:'input_file10'].nil?
|
989
|
+
|
990
|
+
# http body (model)
|
991
|
+
post_body = nil
|
992
|
+
auth_names = ['Apikey']
|
993
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
994
|
+
:header_params => header_params,
|
995
|
+
:query_params => query_params,
|
996
|
+
:form_params => form_params,
|
997
|
+
:body => post_body,
|
998
|
+
:auth_names => auth_names,
|
999
|
+
:return_type => 'String')
|
1000
|
+
if @api_client.config.debugging
|
1001
|
+
@api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_png_array_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1002
|
+
end
|
1003
|
+
return data, status_code, headers
|
1004
|
+
end
|
1005
|
+
|
919
1006
|
# PowerPoint PPT (97-03) to PDF
|
920
1007
|
# Convert Office PowerPoint (97-2003) Documents (ppt) to standard PDF
|
921
1008
|
# @param input_file Input file to perform the operation on.
|
@@ -82,6 +82,62 @@ module CloudmersiveConvertApiClient
|
|
82
82
|
return data, status_code, headers
|
83
83
|
end
|
84
84
|
|
85
|
+
# Rasterize a PDF to an image-based PDF
|
86
|
+
# 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.
|
87
|
+
# @param input_file Input file to perform the operation on.
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @return [String]
|
90
|
+
def edit_pdf_rasterize(input_file, opts = {})
|
91
|
+
data, _status_code, _headers = edit_pdf_rasterize_with_http_info(input_file, opts)
|
92
|
+
return data
|
93
|
+
end
|
94
|
+
|
95
|
+
# Rasterize a PDF to an image-based PDF
|
96
|
+
# 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.
|
97
|
+
# @param input_file Input file to perform the operation on.
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
100
|
+
def edit_pdf_rasterize_with_http_info(input_file, opts = {})
|
101
|
+
if @api_client.config.debugging
|
102
|
+
@api_client.config.logger.debug "Calling API: EditPdfApi.edit_pdf_rasterize ..."
|
103
|
+
end
|
104
|
+
# verify the required parameter 'input_file' is set
|
105
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
106
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_rasterize"
|
107
|
+
end
|
108
|
+
# resource path
|
109
|
+
local_var_path = "/convert/edit/pdf/rasterize"
|
110
|
+
|
111
|
+
# query parameters
|
112
|
+
query_params = {}
|
113
|
+
|
114
|
+
# header parameters
|
115
|
+
header_params = {}
|
116
|
+
# HTTP header 'Accept' (if needed)
|
117
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
118
|
+
# HTTP header 'Content-Type'
|
119
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
120
|
+
|
121
|
+
# form parameters
|
122
|
+
form_params = {}
|
123
|
+
form_params["inputFile"] = input_file
|
124
|
+
|
125
|
+
# http body (model)
|
126
|
+
post_body = nil
|
127
|
+
auth_names = ['Apikey']
|
128
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
129
|
+
:header_params => header_params,
|
130
|
+
:query_params => query_params,
|
131
|
+
:form_params => form_params,
|
132
|
+
:body => post_body,
|
133
|
+
:auth_names => auth_names,
|
134
|
+
:return_type => 'String')
|
135
|
+
if @api_client.config.debugging
|
136
|
+
@api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_rasterize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
137
|
+
end
|
138
|
+
return data, status_code, headers
|
139
|
+
end
|
140
|
+
|
85
141
|
# Encrypt, password-protect and set restricted permissions on a PDF
|
86
142
|
# Encrypt a PDF document with a password, and set permissions on the PDF. Set an owner password to control owner (editor/creator) permissions [required], and set a user (reader) password to control the viewer of the PDF [optional]. Set the reader password to null to omit the password. Restrict or allow printing, copying content, document assembly, editing (read-only), form filling, modification of annotations, and degraded printing through document Digital Rights Management (DRM).
|
87
143
|
# @param owner_password Password of a owner (creator/editor) of the PDF file (required)
|
@@ -20,8 +20,8 @@ module CloudmersiveConvertApiClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
|
23
|
-
# Merge
|
24
|
-
# Combine
|
23
|
+
# Merge Two Word DOCX Together
|
24
|
+
# Combine two Office Word Documents (docx) into one single Office Word document
|
25
25
|
# @param input_file1 First input file to perform the operation on.
|
26
26
|
# @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
|
27
27
|
# @param [Hash] opts the optional parameters
|
@@ -31,8 +31,8 @@ module CloudmersiveConvertApiClient
|
|
31
31
|
return data
|
32
32
|
end
|
33
33
|
|
34
|
-
# Merge
|
35
|
-
# Combine
|
34
|
+
# Merge Two Word DOCX Together
|
35
|
+
# Combine two Office Word Documents (docx) into one single Office Word document
|
36
36
|
# @param input_file1 First input file to perform the operation on.
|
37
37
|
# @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
|
38
38
|
# @param [Hash] opts the optional parameters
|
@@ -83,8 +83,95 @@ module CloudmersiveConvertApiClient
|
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
85
85
|
|
86
|
-
# Merge Multple
|
87
|
-
# Combine multiple
|
86
|
+
# Merge Multple Word DOCX Together
|
87
|
+
# Combine multiple Office Word Documents (docx) into one single Office Word document
|
88
|
+
# @param input_file1 First input file to perform the operation on.
|
89
|
+
# @param input_file2 Second input file to perform the operation on.
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @option opts [File] :input_file3 Third input file to perform the operation on.
|
92
|
+
# @option opts [File] :input_file4 Fourth input file to perform the operation on.
|
93
|
+
# @option opts [File] :input_file5 Fifth input file to perform the operation on.
|
94
|
+
# @option opts [File] :input_file6 Sixth input file to perform the operation on.
|
95
|
+
# @option opts [File] :input_file7 Seventh input file to perform the operation on.
|
96
|
+
# @option opts [File] :input_file8 Eighth input file to perform the operation on.
|
97
|
+
# @option opts [File] :input_file9 Ninth input file to perform the operation on.
|
98
|
+
# @option opts [File] :input_file10 Tenth input file to perform the operation on.
|
99
|
+
# @return [String]
|
100
|
+
def merge_document_docx_multi(input_file1, input_file2, opts = {})
|
101
|
+
data, _status_code, _headers = merge_document_docx_multi_with_http_info(input_file1, input_file2, opts)
|
102
|
+
return data
|
103
|
+
end
|
104
|
+
|
105
|
+
# Merge Multple Word DOCX Together
|
106
|
+
# Combine multiple Office Word Documents (docx) into one single Office Word document
|
107
|
+
# @param input_file1 First input file to perform the operation on.
|
108
|
+
# @param input_file2 Second input file to perform the operation on.
|
109
|
+
# @param [Hash] opts the optional parameters
|
110
|
+
# @option opts [File] :input_file3 Third input file to perform the operation on.
|
111
|
+
# @option opts [File] :input_file4 Fourth input file to perform the operation on.
|
112
|
+
# @option opts [File] :input_file5 Fifth input file to perform the operation on.
|
113
|
+
# @option opts [File] :input_file6 Sixth input file to perform the operation on.
|
114
|
+
# @option opts [File] :input_file7 Seventh input file to perform the operation on.
|
115
|
+
# @option opts [File] :input_file8 Eighth input file to perform the operation on.
|
116
|
+
# @option opts [File] :input_file9 Ninth input file to perform the operation on.
|
117
|
+
# @option opts [File] :input_file10 Tenth input file to perform the operation on.
|
118
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
119
|
+
def merge_document_docx_multi_with_http_info(input_file1, input_file2, opts = {})
|
120
|
+
if @api_client.config.debugging
|
121
|
+
@api_client.config.logger.debug "Calling API: MergeDocumentApi.merge_document_docx_multi ..."
|
122
|
+
end
|
123
|
+
# verify the required parameter 'input_file1' is set
|
124
|
+
if @api_client.config.client_side_validation && input_file1.nil?
|
125
|
+
fail ArgumentError, "Missing the required parameter 'input_file1' when calling MergeDocumentApi.merge_document_docx_multi"
|
126
|
+
end
|
127
|
+
# verify the required parameter 'input_file2' is set
|
128
|
+
if @api_client.config.client_side_validation && input_file2.nil?
|
129
|
+
fail ArgumentError, "Missing the required parameter 'input_file2' when calling MergeDocumentApi.merge_document_docx_multi"
|
130
|
+
end
|
131
|
+
# resource path
|
132
|
+
local_var_path = "/convert/merge/docx/multi"
|
133
|
+
|
134
|
+
# query parameters
|
135
|
+
query_params = {}
|
136
|
+
|
137
|
+
# header parameters
|
138
|
+
header_params = {}
|
139
|
+
# HTTP header 'Accept' (if needed)
|
140
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
141
|
+
# HTTP header 'Content-Type'
|
142
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
143
|
+
|
144
|
+
# form parameters
|
145
|
+
form_params = {}
|
146
|
+
form_params["inputFile1"] = input_file1
|
147
|
+
form_params["inputFile2"] = input_file2
|
148
|
+
form_params["inputFile3"] = opts[:'input_file3'] if !opts[:'input_file3'].nil?
|
149
|
+
form_params["inputFile4"] = opts[:'input_file4'] if !opts[:'input_file4'].nil?
|
150
|
+
form_params["inputFile5"] = opts[:'input_file5'] if !opts[:'input_file5'].nil?
|
151
|
+
form_params["inputFile6"] = opts[:'input_file6'] if !opts[:'input_file6'].nil?
|
152
|
+
form_params["inputFile7"] = opts[:'input_file7'] if !opts[:'input_file7'].nil?
|
153
|
+
form_params["inputFile8"] = opts[:'input_file8'] if !opts[:'input_file8'].nil?
|
154
|
+
form_params["inputFile9"] = opts[:'input_file9'] if !opts[:'input_file9'].nil?
|
155
|
+
form_params["inputFile10"] = opts[:'input_file10'] if !opts[:'input_file10'].nil?
|
156
|
+
|
157
|
+
# http body (model)
|
158
|
+
post_body = nil
|
159
|
+
auth_names = ['Apikey']
|
160
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
161
|
+
:header_params => header_params,
|
162
|
+
:query_params => query_params,
|
163
|
+
:form_params => form_params,
|
164
|
+
:body => post_body,
|
165
|
+
:auth_names => auth_names,
|
166
|
+
:return_type => 'String')
|
167
|
+
if @api_client.config.debugging
|
168
|
+
@api_client.config.logger.debug "API called: MergeDocumentApi#merge_document_docx_multi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
169
|
+
end
|
170
|
+
return data, status_code, headers
|
171
|
+
end
|
172
|
+
|
173
|
+
# Merge Two PDF Files Together
|
174
|
+
# Combine two PDF files (pdf) into a single PDF document, preserving the order of the input documents in the combined document
|
88
175
|
# @param input_file1 First input file to perform the operation on.
|
89
176
|
# @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
|
90
177
|
# @param [Hash] opts the optional parameters
|
@@ -94,8 +181,8 @@ module CloudmersiveConvertApiClient
|
|
94
181
|
return data
|
95
182
|
end
|
96
183
|
|
97
|
-
# Merge
|
98
|
-
# Combine
|
184
|
+
# Merge Two PDF Files Together
|
185
|
+
# Combine two PDF files (pdf) into a single PDF document, preserving the order of the input documents in the combined document
|
99
186
|
# @param input_file1 First input file to perform the operation on.
|
100
187
|
# @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
|
101
188
|
# @param [Hash] opts the optional parameters
|
@@ -146,6 +233,93 @@ module CloudmersiveConvertApiClient
|
|
146
233
|
return data, status_code, headers
|
147
234
|
end
|
148
235
|
|
236
|
+
# Merge Multple PDF Files Together
|
237
|
+
# Combine multiple PDF files (pdf) into a single PDF document, preserving the order of the input documents in the combined document
|
238
|
+
# @param input_file1 First input file to perform the operation on.
|
239
|
+
# @param input_file2 Second input file to perform the operation on.
|
240
|
+
# @param [Hash] opts the optional parameters
|
241
|
+
# @option opts [File] :input_file3 Third input file to perform the operation on.
|
242
|
+
# @option opts [File] :input_file4 Fourth input file to perform the operation on.
|
243
|
+
# @option opts [File] :input_file5 Fifth input file to perform the operation on.
|
244
|
+
# @option opts [File] :input_file6 Sixth input file to perform the operation on.
|
245
|
+
# @option opts [File] :input_file7 Seventh input file to perform the operation on.
|
246
|
+
# @option opts [File] :input_file8 Eighth input file to perform the operation on.
|
247
|
+
# @option opts [File] :input_file9 Ninth input file to perform the operation on.
|
248
|
+
# @option opts [File] :input_file10 Tenth input file to perform the operation on.
|
249
|
+
# @return [String]
|
250
|
+
def merge_document_pdf_multi(input_file1, input_file2, opts = {})
|
251
|
+
data, _status_code, _headers = merge_document_pdf_multi_with_http_info(input_file1, input_file2, opts)
|
252
|
+
return data
|
253
|
+
end
|
254
|
+
|
255
|
+
# Merge Multple PDF Files Together
|
256
|
+
# Combine multiple PDF files (pdf) into a single PDF document, preserving the order of the input documents in the combined document
|
257
|
+
# @param input_file1 First input file to perform the operation on.
|
258
|
+
# @param input_file2 Second input file to perform the operation on.
|
259
|
+
# @param [Hash] opts the optional parameters
|
260
|
+
# @option opts [File] :input_file3 Third input file to perform the operation on.
|
261
|
+
# @option opts [File] :input_file4 Fourth input file to perform the operation on.
|
262
|
+
# @option opts [File] :input_file5 Fifth input file to perform the operation on.
|
263
|
+
# @option opts [File] :input_file6 Sixth input file to perform the operation on.
|
264
|
+
# @option opts [File] :input_file7 Seventh input file to perform the operation on.
|
265
|
+
# @option opts [File] :input_file8 Eighth input file to perform the operation on.
|
266
|
+
# @option opts [File] :input_file9 Ninth input file to perform the operation on.
|
267
|
+
# @option opts [File] :input_file10 Tenth input file to perform the operation on.
|
268
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
269
|
+
def merge_document_pdf_multi_with_http_info(input_file1, input_file2, opts = {})
|
270
|
+
if @api_client.config.debugging
|
271
|
+
@api_client.config.logger.debug "Calling API: MergeDocumentApi.merge_document_pdf_multi ..."
|
272
|
+
end
|
273
|
+
# verify the required parameter 'input_file1' is set
|
274
|
+
if @api_client.config.client_side_validation && input_file1.nil?
|
275
|
+
fail ArgumentError, "Missing the required parameter 'input_file1' when calling MergeDocumentApi.merge_document_pdf_multi"
|
276
|
+
end
|
277
|
+
# verify the required parameter 'input_file2' is set
|
278
|
+
if @api_client.config.client_side_validation && input_file2.nil?
|
279
|
+
fail ArgumentError, "Missing the required parameter 'input_file2' when calling MergeDocumentApi.merge_document_pdf_multi"
|
280
|
+
end
|
281
|
+
# resource path
|
282
|
+
local_var_path = "/convert/merge/pdf/multi"
|
283
|
+
|
284
|
+
# query parameters
|
285
|
+
query_params = {}
|
286
|
+
|
287
|
+
# header parameters
|
288
|
+
header_params = {}
|
289
|
+
# HTTP header 'Accept' (if needed)
|
290
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
291
|
+
# HTTP header 'Content-Type'
|
292
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
293
|
+
|
294
|
+
# form parameters
|
295
|
+
form_params = {}
|
296
|
+
form_params["inputFile1"] = input_file1
|
297
|
+
form_params["inputFile2"] = input_file2
|
298
|
+
form_params["inputFile3"] = opts[:'input_file3'] if !opts[:'input_file3'].nil?
|
299
|
+
form_params["inputFile4"] = opts[:'input_file4'] if !opts[:'input_file4'].nil?
|
300
|
+
form_params["inputFile5"] = opts[:'input_file5'] if !opts[:'input_file5'].nil?
|
301
|
+
form_params["inputFile6"] = opts[:'input_file6'] if !opts[:'input_file6'].nil?
|
302
|
+
form_params["inputFile7"] = opts[:'input_file7'] if !opts[:'input_file7'].nil?
|
303
|
+
form_params["inputFile8"] = opts[:'input_file8'] if !opts[:'input_file8'].nil?
|
304
|
+
form_params["inputFile9"] = opts[:'input_file9'] if !opts[:'input_file9'].nil?
|
305
|
+
form_params["inputFile10"] = opts[:'input_file10'] if !opts[:'input_file10'].nil?
|
306
|
+
|
307
|
+
# http body (model)
|
308
|
+
post_body = nil
|
309
|
+
auth_names = ['Apikey']
|
310
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
311
|
+
:header_params => header_params,
|
312
|
+
:query_params => query_params,
|
313
|
+
:form_params => form_params,
|
314
|
+
:body => post_body,
|
315
|
+
:auth_names => auth_names,
|
316
|
+
:return_type => 'String')
|
317
|
+
if @api_client.config.debugging
|
318
|
+
@api_client.config.logger.debug "API called: MergeDocumentApi#merge_document_pdf_multi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
319
|
+
end
|
320
|
+
return data, status_code, headers
|
321
|
+
end
|
322
|
+
|
149
323
|
# Merge Multple PNG Files Together
|
150
324
|
# Combine multiple PNG files into a single PNG document, preserving the order of the input documents in the combined document by stacking them vertically
|
151
325
|
# @param input_file1 First input file to perform the operation on.
|
@@ -209,8 +383,8 @@ module CloudmersiveConvertApiClient
|
|
209
383
|
return data, status_code, headers
|
210
384
|
end
|
211
385
|
|
212
|
-
# Merge
|
213
|
-
# Combine
|
386
|
+
# Merge Two PowerPoint PPTX Together
|
387
|
+
# Combine two Office PowerPoint presentations (pptx) into one single Office PowerPoint presentation
|
214
388
|
# @param input_file1 First input file to perform the operation on.
|
215
389
|
# @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
|
216
390
|
# @param [Hash] opts the optional parameters
|
@@ -220,8 +394,8 @@ module CloudmersiveConvertApiClient
|
|
220
394
|
return data
|
221
395
|
end
|
222
396
|
|
223
|
-
# Merge
|
224
|
-
# Combine
|
397
|
+
# Merge Two PowerPoint PPTX Together
|
398
|
+
# Combine two Office PowerPoint presentations (pptx) into one single Office PowerPoint presentation
|
225
399
|
# @param input_file1 First input file to perform the operation on.
|
226
400
|
# @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
|
227
401
|
# @param [Hash] opts the optional parameters
|
@@ -272,8 +446,95 @@ module CloudmersiveConvertApiClient
|
|
272
446
|
return data, status_code, headers
|
273
447
|
end
|
274
448
|
|
275
|
-
# Merge Multple
|
276
|
-
# Combine multiple Office
|
449
|
+
# Merge Multple PowerPoint PPTX Together
|
450
|
+
# Combine multiple Office PowerPoint presentations (pptx) into one single Office PowerPoint presentation
|
451
|
+
# @param input_file1 First input file to perform the operation on.
|
452
|
+
# @param input_file2 Second input file to perform the operation on.
|
453
|
+
# @param [Hash] opts the optional parameters
|
454
|
+
# @option opts [File] :input_file3 Third input file to perform the operation on.
|
455
|
+
# @option opts [File] :input_file4 Fourth input file to perform the operation on.
|
456
|
+
# @option opts [File] :input_file5 Fifth input file to perform the operation on.
|
457
|
+
# @option opts [File] :input_file6 Sixth input file to perform the operation on.
|
458
|
+
# @option opts [File] :input_file7 Seventh input file to perform the operation on.
|
459
|
+
# @option opts [File] :input_file8 Eighth input file to perform the operation on.
|
460
|
+
# @option opts [File] :input_file9 Ninth input file to perform the operation on.
|
461
|
+
# @option opts [File] :input_file10 Tenth input file to perform the operation on.
|
462
|
+
# @return [String]
|
463
|
+
def merge_document_pptx_multi(input_file1, input_file2, opts = {})
|
464
|
+
data, _status_code, _headers = merge_document_pptx_multi_with_http_info(input_file1, input_file2, opts)
|
465
|
+
return data
|
466
|
+
end
|
467
|
+
|
468
|
+
# Merge Multple PowerPoint PPTX Together
|
469
|
+
# Combine multiple Office PowerPoint presentations (pptx) into one single Office PowerPoint presentation
|
470
|
+
# @param input_file1 First input file to perform the operation on.
|
471
|
+
# @param input_file2 Second input file to perform the operation on.
|
472
|
+
# @param [Hash] opts the optional parameters
|
473
|
+
# @option opts [File] :input_file3 Third input file to perform the operation on.
|
474
|
+
# @option opts [File] :input_file4 Fourth input file to perform the operation on.
|
475
|
+
# @option opts [File] :input_file5 Fifth input file to perform the operation on.
|
476
|
+
# @option opts [File] :input_file6 Sixth input file to perform the operation on.
|
477
|
+
# @option opts [File] :input_file7 Seventh input file to perform the operation on.
|
478
|
+
# @option opts [File] :input_file8 Eighth input file to perform the operation on.
|
479
|
+
# @option opts [File] :input_file9 Ninth input file to perform the operation on.
|
480
|
+
# @option opts [File] :input_file10 Tenth input file to perform the operation on.
|
481
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
482
|
+
def merge_document_pptx_multi_with_http_info(input_file1, input_file2, opts = {})
|
483
|
+
if @api_client.config.debugging
|
484
|
+
@api_client.config.logger.debug "Calling API: MergeDocumentApi.merge_document_pptx_multi ..."
|
485
|
+
end
|
486
|
+
# verify the required parameter 'input_file1' is set
|
487
|
+
if @api_client.config.client_side_validation && input_file1.nil?
|
488
|
+
fail ArgumentError, "Missing the required parameter 'input_file1' when calling MergeDocumentApi.merge_document_pptx_multi"
|
489
|
+
end
|
490
|
+
# verify the required parameter 'input_file2' is set
|
491
|
+
if @api_client.config.client_side_validation && input_file2.nil?
|
492
|
+
fail ArgumentError, "Missing the required parameter 'input_file2' when calling MergeDocumentApi.merge_document_pptx_multi"
|
493
|
+
end
|
494
|
+
# resource path
|
495
|
+
local_var_path = "/convert/merge/pptx/multi"
|
496
|
+
|
497
|
+
# query parameters
|
498
|
+
query_params = {}
|
499
|
+
|
500
|
+
# header parameters
|
501
|
+
header_params = {}
|
502
|
+
# HTTP header 'Accept' (if needed)
|
503
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
504
|
+
# HTTP header 'Content-Type'
|
505
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
506
|
+
|
507
|
+
# form parameters
|
508
|
+
form_params = {}
|
509
|
+
form_params["inputFile1"] = input_file1
|
510
|
+
form_params["inputFile2"] = input_file2
|
511
|
+
form_params["inputFile3"] = opts[:'input_file3'] if !opts[:'input_file3'].nil?
|
512
|
+
form_params["inputFile4"] = opts[:'input_file4'] if !opts[:'input_file4'].nil?
|
513
|
+
form_params["inputFile5"] = opts[:'input_file5'] if !opts[:'input_file5'].nil?
|
514
|
+
form_params["inputFile6"] = opts[:'input_file6'] if !opts[:'input_file6'].nil?
|
515
|
+
form_params["inputFile7"] = opts[:'input_file7'] if !opts[:'input_file7'].nil?
|
516
|
+
form_params["inputFile8"] = opts[:'input_file8'] if !opts[:'input_file8'].nil?
|
517
|
+
form_params["inputFile9"] = opts[:'input_file9'] if !opts[:'input_file9'].nil?
|
518
|
+
form_params["inputFile10"] = opts[:'input_file10'] if !opts[:'input_file10'].nil?
|
519
|
+
|
520
|
+
# http body (model)
|
521
|
+
post_body = nil
|
522
|
+
auth_names = ['Apikey']
|
523
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
524
|
+
:header_params => header_params,
|
525
|
+
:query_params => query_params,
|
526
|
+
:form_params => form_params,
|
527
|
+
:body => post_body,
|
528
|
+
:auth_names => auth_names,
|
529
|
+
:return_type => 'String')
|
530
|
+
if @api_client.config.debugging
|
531
|
+
@api_client.config.logger.debug "API called: MergeDocumentApi#merge_document_pptx_multi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
532
|
+
end
|
533
|
+
return data, status_code, headers
|
534
|
+
end
|
535
|
+
|
536
|
+
# Merge Two Excel XLSX Together
|
537
|
+
# Combine two Office Excel spreadsheets (xlsx) into a single Office Excel spreadsheet
|
277
538
|
# @param input_file1 First input file to perform the operation on.
|
278
539
|
# @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
|
279
540
|
# @param [Hash] opts the optional parameters
|
@@ -283,8 +544,8 @@ module CloudmersiveConvertApiClient
|
|
283
544
|
return data
|
284
545
|
end
|
285
546
|
|
286
|
-
# Merge
|
287
|
-
# Combine
|
547
|
+
# Merge Two Excel XLSX Together
|
548
|
+
# Combine two Office Excel spreadsheets (xlsx) into a single Office Excel spreadsheet
|
288
549
|
# @param input_file1 First input file to perform the operation on.
|
289
550
|
# @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
|
290
551
|
# @param [Hash] opts the optional parameters
|
@@ -334,5 +595,92 @@ module CloudmersiveConvertApiClient
|
|
334
595
|
end
|
335
596
|
return data, status_code, headers
|
336
597
|
end
|
598
|
+
|
599
|
+
# Merge Multple Excel XLSX Together
|
600
|
+
# Combine multiple Office Excel spreadsheets (xlsx) into a single Office Excel spreadsheet
|
601
|
+
# @param input_file1 First input file to perform the operation on.
|
602
|
+
# @param input_file2 Second input file to perform the operation on.
|
603
|
+
# @param [Hash] opts the optional parameters
|
604
|
+
# @option opts [File] :input_file3 Third input file to perform the operation on.
|
605
|
+
# @option opts [File] :input_file4 Fourth input file to perform the operation on.
|
606
|
+
# @option opts [File] :input_file5 Fifth input file to perform the operation on.
|
607
|
+
# @option opts [File] :input_file6 Sixth input file to perform the operation on.
|
608
|
+
# @option opts [File] :input_file7 Seventh input file to perform the operation on.
|
609
|
+
# @option opts [File] :input_file8 Eighth input file to perform the operation on.
|
610
|
+
# @option opts [File] :input_file9 Ninth input file to perform the operation on.
|
611
|
+
# @option opts [File] :input_file10 Tenth input file to perform the operation on.
|
612
|
+
# @return [String]
|
613
|
+
def merge_document_xlsx_multi(input_file1, input_file2, opts = {})
|
614
|
+
data, _status_code, _headers = merge_document_xlsx_multi_with_http_info(input_file1, input_file2, opts)
|
615
|
+
return data
|
616
|
+
end
|
617
|
+
|
618
|
+
# Merge Multple Excel XLSX Together
|
619
|
+
# Combine multiple Office Excel spreadsheets (xlsx) into a single Office Excel spreadsheet
|
620
|
+
# @param input_file1 First input file to perform the operation on.
|
621
|
+
# @param input_file2 Second input file to perform the operation on.
|
622
|
+
# @param [Hash] opts the optional parameters
|
623
|
+
# @option opts [File] :input_file3 Third input file to perform the operation on.
|
624
|
+
# @option opts [File] :input_file4 Fourth input file to perform the operation on.
|
625
|
+
# @option opts [File] :input_file5 Fifth input file to perform the operation on.
|
626
|
+
# @option opts [File] :input_file6 Sixth input file to perform the operation on.
|
627
|
+
# @option opts [File] :input_file7 Seventh input file to perform the operation on.
|
628
|
+
# @option opts [File] :input_file8 Eighth input file to perform the operation on.
|
629
|
+
# @option opts [File] :input_file9 Ninth input file to perform the operation on.
|
630
|
+
# @option opts [File] :input_file10 Tenth input file to perform the operation on.
|
631
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
632
|
+
def merge_document_xlsx_multi_with_http_info(input_file1, input_file2, opts = {})
|
633
|
+
if @api_client.config.debugging
|
634
|
+
@api_client.config.logger.debug "Calling API: MergeDocumentApi.merge_document_xlsx_multi ..."
|
635
|
+
end
|
636
|
+
# verify the required parameter 'input_file1' is set
|
637
|
+
if @api_client.config.client_side_validation && input_file1.nil?
|
638
|
+
fail ArgumentError, "Missing the required parameter 'input_file1' when calling MergeDocumentApi.merge_document_xlsx_multi"
|
639
|
+
end
|
640
|
+
# verify the required parameter 'input_file2' is set
|
641
|
+
if @api_client.config.client_side_validation && input_file2.nil?
|
642
|
+
fail ArgumentError, "Missing the required parameter 'input_file2' when calling MergeDocumentApi.merge_document_xlsx_multi"
|
643
|
+
end
|
644
|
+
# resource path
|
645
|
+
local_var_path = "/convert/merge/xlsx/multi"
|
646
|
+
|
647
|
+
# query parameters
|
648
|
+
query_params = {}
|
649
|
+
|
650
|
+
# header parameters
|
651
|
+
header_params = {}
|
652
|
+
# HTTP header 'Accept' (if needed)
|
653
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
654
|
+
# HTTP header 'Content-Type'
|
655
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
656
|
+
|
657
|
+
# form parameters
|
658
|
+
form_params = {}
|
659
|
+
form_params["inputFile1"] = input_file1
|
660
|
+
form_params["inputFile2"] = input_file2
|
661
|
+
form_params["inputFile3"] = opts[:'input_file3'] if !opts[:'input_file3'].nil?
|
662
|
+
form_params["inputFile4"] = opts[:'input_file4'] if !opts[:'input_file4'].nil?
|
663
|
+
form_params["inputFile5"] = opts[:'input_file5'] if !opts[:'input_file5'].nil?
|
664
|
+
form_params["inputFile6"] = opts[:'input_file6'] if !opts[:'input_file6'].nil?
|
665
|
+
form_params["inputFile7"] = opts[:'input_file7'] if !opts[:'input_file7'].nil?
|
666
|
+
form_params["inputFile8"] = opts[:'input_file8'] if !opts[:'input_file8'].nil?
|
667
|
+
form_params["inputFile9"] = opts[:'input_file9'] if !opts[:'input_file9'].nil?
|
668
|
+
form_params["inputFile10"] = opts[:'input_file10'] if !opts[:'input_file10'].nil?
|
669
|
+
|
670
|
+
# http body (model)
|
671
|
+
post_body = nil
|
672
|
+
auth_names = ['Apikey']
|
673
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
674
|
+
:header_params => header_params,
|
675
|
+
:query_params => query_params,
|
676
|
+
:form_params => form_params,
|
677
|
+
:body => post_body,
|
678
|
+
:auth_names => auth_names,
|
679
|
+
:return_type => 'String')
|
680
|
+
if @api_client.config.debugging
|
681
|
+
@api_client.config.logger.debug "API called: MergeDocumentApi#merge_document_xlsx_multi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
682
|
+
end
|
683
|
+
return data, status_code, headers
|
684
|
+
end
|
337
685
|
end
|
338
686
|
end
|