cloudmersive-convert-api-client 1.2.3 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +201 -0
- data/build.ps1 +12 -0
- data/client/Gemfile +7 -0
- data/client/README.md +184 -0
- data/client/Rakefile +8 -0
- data/client/cloudmersive-convert-api-client.gemspec +45 -0
- data/client/docs/CompareDocumentApi.md +66 -0
- data/client/docs/ConvertDataApi.md +118 -0
- data/client/docs/ConvertDocumentApi.md +723 -0
- data/client/docs/ConvertImageApi.md +69 -0
- data/client/docs/ConvertTemplateApi.md +63 -0
- data/client/docs/ConvertWebApi.md +283 -0
- data/client/docs/ConvertedPngPage.md +9 -0
- data/client/docs/DocumentValidationError.md +11 -0
- data/client/docs/DocumentValidationResult.md +11 -0
- data/client/docs/DocxFooter.md +9 -0
- data/client/docs/DocxHeader.md +9 -0
- data/client/docs/DocxInsertImageRequest.md +13 -0
- data/client/docs/DocxInsertImageResponse.md +9 -0
- data/client/docs/DocxParagraph.md +10 -0
- data/client/docs/DocxRun.md +14 -0
- data/client/docs/DocxSection.md +8 -0
- data/client/docs/DocxSetFooterRequest.md +10 -0
- data/client/docs/DocxSetFooterResponse.md +9 -0
- data/client/docs/DocxSetHeaderRequest.md +10 -0
- data/client/docs/DocxSetHeaderResponse.md +9 -0
- data/client/docs/DocxStyle.md +13 -0
- data/client/docs/DocxTable.md +45 -0
- data/client/docs/DocxTableCell.md +14 -0
- data/client/docs/DocxTableRow.md +9 -0
- data/client/docs/DocxText.md +9 -0
- data/client/docs/EditDocumentApi.md +668 -0
- data/client/docs/FinishEditingRequest.md +8 -0
- data/client/docs/GetDocxHeadersAndFootersRequest.md +9 -0
- data/client/docs/GetDocxHeadersAndFootersResponse.md +10 -0
- data/client/docs/GetDocxStylesRequest.md +9 -0
- data/client/docs/GetDocxStylesResponse.md +9 -0
- data/client/docs/GetDocxTablesRequest.md +9 -0
- data/client/docs/GetDocxTablesResponse.md +9 -0
- data/client/docs/HtmlMdResult.md +9 -0
- data/client/docs/HtmlTemplateApplicationRequest.md +10 -0
- data/client/docs/HtmlTemplateApplicationResponse.md +9 -0
- data/client/docs/HtmlTemplateOperation.md +10 -0
- data/client/docs/HtmlToOfficeRequest.md +8 -0
- data/client/docs/HtmlToPdfRequest.md +9 -0
- data/client/docs/InsertDocxTablesRequest.md +10 -0
- data/client/docs/InsertDocxTablesResponse.md +9 -0
- data/client/docs/MergeDocumentApi.md +182 -0
- data/client/docs/PdfToPngResult.md +9 -0
- data/client/docs/RemoveDocxHeadersAndFootersRequest.md +11 -0
- data/client/docs/RemoveDocxHeadersAndFootersResponse.md +9 -0
- data/client/docs/ReplaceStringRequest.md +12 -0
- data/client/docs/ScreenshotRequest.md +9 -0
- data/client/docs/ValidateDocumentApi.md +173 -0
- data/client/docs/ViewerResponse.md +9 -0
- data/client/docs/ViewerToolsApi.md +63 -0
- data/client/git_push.sh +55 -0
- data/client/lib/cloudmersive-convert-api-client.rb +89 -0
- data/client/lib/cloudmersive-convert-api-client/api/compare_document_api.rb +86 -0
- data/client/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +135 -0
- data/client/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +751 -0
- data/client/lib/cloudmersive-convert-api-client/api/convert_image_api.rb +91 -0
- data/client/lib/cloudmersive-convert-api-client/api/convert_template_api.rb +78 -0
- data/client/lib/cloudmersive-convert-api-client/api/convert_web_api.rb +299 -0
- data/client/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +684 -0
- data/client/lib/cloudmersive-convert-api-client/api/merge_document_api.rb +212 -0
- data/client/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +191 -0
- data/client/lib/cloudmersive-convert-api-client/api/viewer_tools_api.rb +79 -0
- data/client/lib/cloudmersive-convert-api-client/api_client.rb +389 -0
- data/client/lib/cloudmersive-convert-api-client/api_error.rb +38 -0
- data/client/lib/cloudmersive-convert-api-client/configuration.rb +209 -0
- data/client/lib/cloudmersive-convert-api-client/models/converted_png_page.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/document_validation_error.rb +219 -0
- data/client/lib/cloudmersive-convert-api-client/models/document_validation_result.rb +221 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_footer.rb +203 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_header.rb +203 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_insert_image_request.rb +271 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_insert_image_response.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_paragraph.rb +211 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_run.rb +251 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_section.rb +191 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_set_footer_request.rb +225 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_set_footer_response.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_set_header_request.rb +225 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_set_header_response.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_style.rb +239 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_table.rb +561 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_table_cell.rb +251 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_table_row.rb +201 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_text.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/finish_editing_request.rb +189 -0
- data/client/lib/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_request.rb +215 -0
- data/client/lib/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_response.rb +211 -0
- data/client/lib/cloudmersive-convert-api-client/models/get_docx_styles_request.rb +215 -0
- data/client/lib/cloudmersive-convert-api-client/models/get_docx_styles_response.rb +201 -0
- data/client/lib/cloudmersive-convert-api-client/models/get_docx_tables_request.rb +215 -0
- data/client/lib/cloudmersive-convert-api-client/models/get_docx_tables_response.rb +201 -0
- data/client/lib/cloudmersive-convert-api-client/models/html_md_result.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/html_template_application_request.rb +208 -0
- data/client/lib/cloudmersive-convert-api-client/models/html_template_application_response.rb +197 -0
- data/client/lib/cloudmersive-convert-api-client/models/html_template_operation.rb +239 -0
- data/client/lib/cloudmersive-convert-api-client/models/html_to_office_request.rb +188 -0
- data/client/lib/cloudmersive-convert-api-client/models/html_to_pdf_request.rb +197 -0
- data/client/lib/cloudmersive-convert-api-client/models/insert_docx_tables_request.rb +225 -0
- data/client/lib/cloudmersive-convert-api-client/models/insert_docx_tables_response.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/pdf_to_png_result.rb +201 -0
- data/client/lib/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_request.rb +235 -0
- data/client/lib/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_response.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/replace_string_request.rb +245 -0
- data/client/lib/cloudmersive-convert-api-client/models/screenshot_request.rb +197 -0
- data/client/lib/cloudmersive-convert-api-client/models/viewer_response.rb +197 -0
- data/client/lib/cloudmersive-convert-api-client/version.rb +15 -0
- data/client/spec/api/compare_document_api_spec.rb +48 -0
- data/client/spec/api/convert_data_api_spec.rb +59 -0
- data/client/spec/api/convert_document_api_spec.rb +191 -0
- data/client/spec/api/convert_image_api_spec.rb +49 -0
- data/client/spec/api/convert_template_api_spec.rb +47 -0
- data/client/spec/api/convert_web_api_spec.rb +95 -0
- data/client/spec/api/edit_document_api_spec.rb +179 -0
- data/client/spec/api/merge_document_api_spec.rb +74 -0
- data/client/spec/api/validate_document_api_spec.rb +71 -0
- data/client/spec/api/viewer_tools_api_spec.rb +47 -0
- data/client/spec/api_client_spec.rb +226 -0
- data/client/spec/configuration_spec.rb +42 -0
- data/client/spec/models/converted_png_page_spec.rb +48 -0
- data/client/spec/models/document_validation_error_spec.rb +60 -0
- data/client/spec/models/document_validation_result_spec.rb +60 -0
- data/client/spec/models/docx_footer_spec.rb +48 -0
- data/client/spec/models/docx_header_spec.rb +48 -0
- data/client/spec/models/docx_insert_image_request_spec.rb +72 -0
- data/client/spec/models/docx_insert_image_response_spec.rb +48 -0
- data/client/spec/models/docx_paragraph_spec.rb +54 -0
- data/client/spec/models/docx_run_spec.rb +78 -0
- data/client/spec/models/docx_section_spec.rb +42 -0
- data/client/spec/models/docx_set_footer_request_spec.rb +54 -0
- data/client/spec/models/docx_set_footer_response_spec.rb +48 -0
- data/client/spec/models/docx_set_header_request_spec.rb +54 -0
- data/client/spec/models/docx_set_header_response_spec.rb +48 -0
- data/client/spec/models/docx_style_spec.rb +72 -0
- data/client/spec/models/docx_table_cell_spec.rb +78 -0
- data/client/spec/models/docx_table_row_spec.rb +48 -0
- data/client/spec/models/docx_table_spec.rb +264 -0
- data/client/spec/models/docx_text_spec.rb +48 -0
- data/client/spec/models/finish_editing_request_spec.rb +42 -0
- data/client/spec/models/get_docx_headers_and_footers_request_spec.rb +48 -0
- data/client/spec/models/get_docx_headers_and_footers_response_spec.rb +54 -0
- data/client/spec/models/get_docx_styles_request_spec.rb +48 -0
- data/client/spec/models/get_docx_styles_response_spec.rb +48 -0
- data/client/spec/models/get_docx_tables_request_spec.rb +48 -0
- data/client/spec/models/get_docx_tables_response_spec.rb +48 -0
- data/client/spec/models/html_md_result_spec.rb +48 -0
- data/client/spec/models/html_template_application_request_spec.rb +54 -0
- data/client/spec/models/html_template_application_response_spec.rb +48 -0
- data/client/spec/models/html_template_operation_spec.rb +58 -0
- data/client/spec/models/html_to_office_request_spec.rb +42 -0
- data/client/spec/models/html_to_pdf_request_spec.rb +48 -0
- data/client/spec/models/insert_docx_tables_request_spec.rb +54 -0
- data/client/spec/models/insert_docx_tables_response_spec.rb +48 -0
- data/client/spec/models/pdf_to_png_result_spec.rb +48 -0
- data/client/spec/models/remove_docx_headers_and_footers_request_spec.rb +60 -0
- data/client/spec/models/remove_docx_headers_and_footers_response_spec.rb +48 -0
- data/client/spec/models/replace_string_request_spec.rb +66 -0
- data/client/spec/models/screenshot_request_spec.rb +48 -0
- data/client/spec/models/viewer_response_spec.rb +48 -0
- data/client/spec/spec_helper.rb +111 -0
- data/cloudmersiveConvertApiClient-1.2.6.gem +0 -0
- data/cloudmersiveConvertApiClient-1.2.7.gem +0 -0
- data/packageconfig.json +11 -0
- data/swagger-codegen-cli.jar +0 -0
- metadata +173 -3
@@ -0,0 +1,212 @@
|
|
1
|
+
=begin
|
2
|
+
#convertapi
|
3
|
+
|
4
|
+
#Convert API lets you effortlessly convert file formats and types.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: unset
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require "uri"
|
14
|
+
|
15
|
+
module CloudmersiveConvertApiClient
|
16
|
+
class MergeDocumentApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# Merge Multple Word DOCX Together
|
24
|
+
# Combine multiple Office Word Documents (docx) into one single Office Word document
|
25
|
+
# @param input_file1 First input file to perform the operation on.
|
26
|
+
# @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @return [String]
|
29
|
+
def merge_document_docx(input_file1, input_file2, opts = {})
|
30
|
+
data, _status_code, _headers = merge_document_docx_with_http_info(input_file1, input_file2, opts)
|
31
|
+
return data
|
32
|
+
end
|
33
|
+
|
34
|
+
# Merge Multple Word DOCX Together
|
35
|
+
# Combine multiple Office Word Documents (docx) into one single Office Word document
|
36
|
+
# @param input_file1 First input file to perform the operation on.
|
37
|
+
# @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
40
|
+
def merge_document_docx_with_http_info(input_file1, input_file2, opts = {})
|
41
|
+
if @api_client.config.debugging
|
42
|
+
@api_client.config.logger.debug "Calling API: MergeDocumentApi.merge_document_docx ..."
|
43
|
+
end
|
44
|
+
# verify the required parameter 'input_file1' is set
|
45
|
+
if @api_client.config.client_side_validation && input_file1.nil?
|
46
|
+
fail ArgumentError, "Missing the required parameter 'input_file1' when calling MergeDocumentApi.merge_document_docx"
|
47
|
+
end
|
48
|
+
# verify the required parameter 'input_file2' is set
|
49
|
+
if @api_client.config.client_side_validation && input_file2.nil?
|
50
|
+
fail ArgumentError, "Missing the required parameter 'input_file2' when calling MergeDocumentApi.merge_document_docx"
|
51
|
+
end
|
52
|
+
# resource path
|
53
|
+
local_var_path = "/convert/merge/docx"
|
54
|
+
|
55
|
+
# query parameters
|
56
|
+
query_params = {}
|
57
|
+
|
58
|
+
# header parameters
|
59
|
+
header_params = {}
|
60
|
+
# HTTP header 'Accept' (if needed)
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
62
|
+
# HTTP header 'Content-Type'
|
63
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
64
|
+
|
65
|
+
# form parameters
|
66
|
+
form_params = {}
|
67
|
+
form_params["inputFile1"] = input_file1
|
68
|
+
form_params["inputFile2"] = input_file2
|
69
|
+
|
70
|
+
# http body (model)
|
71
|
+
post_body = nil
|
72
|
+
auth_names = ['Apikey']
|
73
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
74
|
+
:header_params => header_params,
|
75
|
+
:query_params => query_params,
|
76
|
+
:form_params => form_params,
|
77
|
+
:body => post_body,
|
78
|
+
:auth_names => auth_names,
|
79
|
+
:return_type => 'String')
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: MergeDocumentApi#merge_document_docx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# Merge Multple PowerPoint PPTX Together
|
87
|
+
# Combine multiple Office PowerPoint presentations (pptx) into one single Office PowerPoint presentation
|
88
|
+
# @param input_file1 First input file to perform the operation on.
|
89
|
+
# @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @return [String]
|
92
|
+
def merge_document_pptx(input_file1, input_file2, opts = {})
|
93
|
+
data, _status_code, _headers = merge_document_pptx_with_http_info(input_file1, input_file2, opts)
|
94
|
+
return data
|
95
|
+
end
|
96
|
+
|
97
|
+
# Merge Multple PowerPoint PPTX Together
|
98
|
+
# Combine multiple Office PowerPoint presentations (pptx) into one single Office PowerPoint presentation
|
99
|
+
# @param input_file1 First input file to perform the operation on.
|
100
|
+
# @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
|
101
|
+
# @param [Hash] opts the optional parameters
|
102
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
103
|
+
def merge_document_pptx_with_http_info(input_file1, input_file2, opts = {})
|
104
|
+
if @api_client.config.debugging
|
105
|
+
@api_client.config.logger.debug "Calling API: MergeDocumentApi.merge_document_pptx ..."
|
106
|
+
end
|
107
|
+
# verify the required parameter 'input_file1' is set
|
108
|
+
if @api_client.config.client_side_validation && input_file1.nil?
|
109
|
+
fail ArgumentError, "Missing the required parameter 'input_file1' when calling MergeDocumentApi.merge_document_pptx"
|
110
|
+
end
|
111
|
+
# verify the required parameter 'input_file2' is set
|
112
|
+
if @api_client.config.client_side_validation && input_file2.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'input_file2' when calling MergeDocumentApi.merge_document_pptx"
|
114
|
+
end
|
115
|
+
# resource path
|
116
|
+
local_var_path = "/convert/merge/pptx"
|
117
|
+
|
118
|
+
# query parameters
|
119
|
+
query_params = {}
|
120
|
+
|
121
|
+
# header parameters
|
122
|
+
header_params = {}
|
123
|
+
# HTTP header 'Accept' (if needed)
|
124
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
125
|
+
# HTTP header 'Content-Type'
|
126
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
127
|
+
|
128
|
+
# form parameters
|
129
|
+
form_params = {}
|
130
|
+
form_params["inputFile1"] = input_file1
|
131
|
+
form_params["inputFile2"] = input_file2
|
132
|
+
|
133
|
+
# http body (model)
|
134
|
+
post_body = nil
|
135
|
+
auth_names = ['Apikey']
|
136
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
137
|
+
:header_params => header_params,
|
138
|
+
:query_params => query_params,
|
139
|
+
:form_params => form_params,
|
140
|
+
:body => post_body,
|
141
|
+
:auth_names => auth_names,
|
142
|
+
:return_type => 'String')
|
143
|
+
if @api_client.config.debugging
|
144
|
+
@api_client.config.logger.debug "API called: MergeDocumentApi#merge_document_pptx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
145
|
+
end
|
146
|
+
return data, status_code, headers
|
147
|
+
end
|
148
|
+
|
149
|
+
# Merge Multple Excel XLSX Together
|
150
|
+
# Combine multiple Office Excel spreadsheets (xlsx) into a single Office Excel spreadsheet
|
151
|
+
# @param input_file1 First input file to perform the operation on.
|
152
|
+
# @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
|
153
|
+
# @param [Hash] opts the optional parameters
|
154
|
+
# @return [String]
|
155
|
+
def merge_document_xlsx(input_file1, input_file2, opts = {})
|
156
|
+
data, _status_code, _headers = merge_document_xlsx_with_http_info(input_file1, input_file2, opts)
|
157
|
+
return data
|
158
|
+
end
|
159
|
+
|
160
|
+
# Merge Multple Excel XLSX Together
|
161
|
+
# Combine multiple Office Excel spreadsheets (xlsx) into a single Office Excel spreadsheet
|
162
|
+
# @param input_file1 First input file to perform the operation on.
|
163
|
+
# @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
|
164
|
+
# @param [Hash] opts the optional parameters
|
165
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
166
|
+
def merge_document_xlsx_with_http_info(input_file1, input_file2, opts = {})
|
167
|
+
if @api_client.config.debugging
|
168
|
+
@api_client.config.logger.debug "Calling API: MergeDocumentApi.merge_document_xlsx ..."
|
169
|
+
end
|
170
|
+
# verify the required parameter 'input_file1' is set
|
171
|
+
if @api_client.config.client_side_validation && input_file1.nil?
|
172
|
+
fail ArgumentError, "Missing the required parameter 'input_file1' when calling MergeDocumentApi.merge_document_xlsx"
|
173
|
+
end
|
174
|
+
# verify the required parameter 'input_file2' is set
|
175
|
+
if @api_client.config.client_side_validation && input_file2.nil?
|
176
|
+
fail ArgumentError, "Missing the required parameter 'input_file2' when calling MergeDocumentApi.merge_document_xlsx"
|
177
|
+
end
|
178
|
+
# resource path
|
179
|
+
local_var_path = "/convert/merge/xlsx"
|
180
|
+
|
181
|
+
# query parameters
|
182
|
+
query_params = {}
|
183
|
+
|
184
|
+
# header parameters
|
185
|
+
header_params = {}
|
186
|
+
# HTTP header 'Accept' (if needed)
|
187
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
188
|
+
# HTTP header 'Content-Type'
|
189
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
190
|
+
|
191
|
+
# form parameters
|
192
|
+
form_params = {}
|
193
|
+
form_params["inputFile1"] = input_file1
|
194
|
+
form_params["inputFile2"] = input_file2
|
195
|
+
|
196
|
+
# http body (model)
|
197
|
+
post_body = nil
|
198
|
+
auth_names = ['Apikey']
|
199
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
200
|
+
:header_params => header_params,
|
201
|
+
:query_params => query_params,
|
202
|
+
:form_params => form_params,
|
203
|
+
:body => post_body,
|
204
|
+
:auth_names => auth_names,
|
205
|
+
:return_type => 'String')
|
206
|
+
if @api_client.config.debugging
|
207
|
+
@api_client.config.logger.debug "API called: MergeDocumentApi#merge_document_xlsx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
208
|
+
end
|
209
|
+
return data, status_code, headers
|
210
|
+
end
|
211
|
+
end
|
212
|
+
end
|
@@ -0,0 +1,191 @@
|
|
1
|
+
=begin
|
2
|
+
#convertapi
|
3
|
+
|
4
|
+
#Convert API lets you effortlessly convert file formats and types.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: unset
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require "uri"
|
14
|
+
|
15
|
+
module CloudmersiveConvertApiClient
|
16
|
+
class ValidateDocumentApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# Validate a Word document (DOCX)
|
24
|
+
# Validate a Word document (DOCX); if the document is not valid, identifies the errors in the document
|
25
|
+
# @param input_file Input file to perform the operation on.
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [DocumentValidationResult]
|
28
|
+
def validate_document_docx_validation(input_file, opts = {})
|
29
|
+
data, _status_code, _headers = validate_document_docx_validation_with_http_info(input_file, opts)
|
30
|
+
return data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Validate a Word document (DOCX)
|
34
|
+
# Validate a Word document (DOCX); if the document is not valid, identifies the errors in the document
|
35
|
+
# @param input_file Input file to perform the operation on.
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
|
38
|
+
def validate_document_docx_validation_with_http_info(input_file, opts = {})
|
39
|
+
if @api_client.config.debugging
|
40
|
+
@api_client.config.logger.debug "Calling API: ValidateDocumentApi.validate_document_docx_validation ..."
|
41
|
+
end
|
42
|
+
# verify the required parameter 'input_file' is set
|
43
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_docx_validation"
|
45
|
+
end
|
46
|
+
# resource path
|
47
|
+
local_var_path = "/convert/validate/docx"
|
48
|
+
|
49
|
+
# query parameters
|
50
|
+
query_params = {}
|
51
|
+
|
52
|
+
# header parameters
|
53
|
+
header_params = {}
|
54
|
+
# HTTP header 'Accept' (if needed)
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
56
|
+
# HTTP header 'Content-Type'
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
58
|
+
|
59
|
+
# form parameters
|
60
|
+
form_params = {}
|
61
|
+
form_params["inputFile"] = input_file
|
62
|
+
|
63
|
+
# http body (model)
|
64
|
+
post_body = nil
|
65
|
+
auth_names = ['Apikey']
|
66
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
67
|
+
:header_params => header_params,
|
68
|
+
:query_params => query_params,
|
69
|
+
:form_params => form_params,
|
70
|
+
:body => post_body,
|
71
|
+
:auth_names => auth_names,
|
72
|
+
:return_type => 'DocumentValidationResult')
|
73
|
+
if @api_client.config.debugging
|
74
|
+
@api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_docx_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
75
|
+
end
|
76
|
+
return data, status_code, headers
|
77
|
+
end
|
78
|
+
|
79
|
+
# Validate a PowerPoint presentation (PPTX)
|
80
|
+
# Validate a PowerPoint presentation (PPTX); if the document is not valid, identifies the errors in the document
|
81
|
+
# @param input_file Input file to perform the operation on.
|
82
|
+
# @param [Hash] opts the optional parameters
|
83
|
+
# @return [DocumentValidationResult]
|
84
|
+
def validate_document_pptx_validation(input_file, opts = {})
|
85
|
+
data, _status_code, _headers = validate_document_pptx_validation_with_http_info(input_file, opts)
|
86
|
+
return data
|
87
|
+
end
|
88
|
+
|
89
|
+
# Validate a PowerPoint presentation (PPTX)
|
90
|
+
# Validate a PowerPoint presentation (PPTX); if the document is not valid, identifies the errors in the document
|
91
|
+
# @param input_file Input file to perform the operation on.
|
92
|
+
# @param [Hash] opts the optional parameters
|
93
|
+
# @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
|
94
|
+
def validate_document_pptx_validation_with_http_info(input_file, opts = {})
|
95
|
+
if @api_client.config.debugging
|
96
|
+
@api_client.config.logger.debug "Calling API: ValidateDocumentApi.validate_document_pptx_validation ..."
|
97
|
+
end
|
98
|
+
# verify the required parameter 'input_file' is set
|
99
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
100
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_pptx_validation"
|
101
|
+
end
|
102
|
+
# resource path
|
103
|
+
local_var_path = "/convert/validate/pptx"
|
104
|
+
|
105
|
+
# query parameters
|
106
|
+
query_params = {}
|
107
|
+
|
108
|
+
# header parameters
|
109
|
+
header_params = {}
|
110
|
+
# HTTP header 'Accept' (if needed)
|
111
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
112
|
+
# HTTP header 'Content-Type'
|
113
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
114
|
+
|
115
|
+
# form parameters
|
116
|
+
form_params = {}
|
117
|
+
form_params["inputFile"] = input_file
|
118
|
+
|
119
|
+
# http body (model)
|
120
|
+
post_body = nil
|
121
|
+
auth_names = ['Apikey']
|
122
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
123
|
+
:header_params => header_params,
|
124
|
+
:query_params => query_params,
|
125
|
+
:form_params => form_params,
|
126
|
+
:body => post_body,
|
127
|
+
:auth_names => auth_names,
|
128
|
+
:return_type => 'DocumentValidationResult')
|
129
|
+
if @api_client.config.debugging
|
130
|
+
@api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_pptx_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
131
|
+
end
|
132
|
+
return data, status_code, headers
|
133
|
+
end
|
134
|
+
|
135
|
+
# Validate a Excel document (XLSX)
|
136
|
+
# Validate a Excel document (XLSX); if the document is not valid, identifies the errors in the document
|
137
|
+
# @param input_file Input file to perform the operation on.
|
138
|
+
# @param [Hash] opts the optional parameters
|
139
|
+
# @return [DocumentValidationResult]
|
140
|
+
def validate_document_xlsx_validation(input_file, opts = {})
|
141
|
+
data, _status_code, _headers = validate_document_xlsx_validation_with_http_info(input_file, opts)
|
142
|
+
return data
|
143
|
+
end
|
144
|
+
|
145
|
+
# Validate a Excel document (XLSX)
|
146
|
+
# Validate a Excel document (XLSX); if the document is not valid, identifies the errors in the document
|
147
|
+
# @param input_file Input file to perform the operation on.
|
148
|
+
# @param [Hash] opts the optional parameters
|
149
|
+
# @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
|
150
|
+
def validate_document_xlsx_validation_with_http_info(input_file, opts = {})
|
151
|
+
if @api_client.config.debugging
|
152
|
+
@api_client.config.logger.debug "Calling API: ValidateDocumentApi.validate_document_xlsx_validation ..."
|
153
|
+
end
|
154
|
+
# verify the required parameter 'input_file' is set
|
155
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
156
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_xlsx_validation"
|
157
|
+
end
|
158
|
+
# resource path
|
159
|
+
local_var_path = "/convert/validate/xlsx"
|
160
|
+
|
161
|
+
# query parameters
|
162
|
+
query_params = {}
|
163
|
+
|
164
|
+
# header parameters
|
165
|
+
header_params = {}
|
166
|
+
# HTTP header 'Accept' (if needed)
|
167
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
168
|
+
# HTTP header 'Content-Type'
|
169
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
170
|
+
|
171
|
+
# form parameters
|
172
|
+
form_params = {}
|
173
|
+
form_params["inputFile"] = input_file
|
174
|
+
|
175
|
+
# http body (model)
|
176
|
+
post_body = nil
|
177
|
+
auth_names = ['Apikey']
|
178
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
179
|
+
:header_params => header_params,
|
180
|
+
:query_params => query_params,
|
181
|
+
:form_params => form_params,
|
182
|
+
:body => post_body,
|
183
|
+
:auth_names => auth_names,
|
184
|
+
:return_type => 'DocumentValidationResult')
|
185
|
+
if @api_client.config.debugging
|
186
|
+
@api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_xlsx_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
187
|
+
end
|
188
|
+
return data, status_code, headers
|
189
|
+
end
|
190
|
+
end
|
191
|
+
end
|
@@ -0,0 +1,79 @@
|
|
1
|
+
=begin
|
2
|
+
#convertapi
|
3
|
+
|
4
|
+
#Convert API lets you effortlessly convert file formats and types.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: unset
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require "uri"
|
14
|
+
|
15
|
+
module CloudmersiveConvertApiClient
|
16
|
+
class ViewerToolsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# Create a web-based viewer
|
24
|
+
# Creates an HTML embed code for a simple web-based viewer of a document; supports Office document types and PDF.
|
25
|
+
# @param input_file Input file to perform the operation on.
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [ViewerResponse]
|
28
|
+
def viewer_tools_create_simple(input_file, opts = {})
|
29
|
+
data, _status_code, _headers = viewer_tools_create_simple_with_http_info(input_file, opts)
|
30
|
+
return data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Create a web-based viewer
|
34
|
+
# Creates an HTML embed code for a simple web-based viewer of a document; supports Office document types and PDF.
|
35
|
+
# @param input_file Input file to perform the operation on.
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(ViewerResponse, Fixnum, Hash)>] ViewerResponse data, response status code and response headers
|
38
|
+
def viewer_tools_create_simple_with_http_info(input_file, opts = {})
|
39
|
+
if @api_client.config.debugging
|
40
|
+
@api_client.config.logger.debug "Calling API: ViewerToolsApi.viewer_tools_create_simple ..."
|
41
|
+
end
|
42
|
+
# verify the required parameter 'input_file' is set
|
43
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling ViewerToolsApi.viewer_tools_create_simple"
|
45
|
+
end
|
46
|
+
# resource path
|
47
|
+
local_var_path = "/convert/viewer/create/web/simple"
|
48
|
+
|
49
|
+
# query parameters
|
50
|
+
query_params = {}
|
51
|
+
|
52
|
+
# header parameters
|
53
|
+
header_params = {}
|
54
|
+
# HTTP header 'Accept' (if needed)
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
56
|
+
# HTTP header 'Content-Type'
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
58
|
+
|
59
|
+
# form parameters
|
60
|
+
form_params = {}
|
61
|
+
form_params["inputFile"] = input_file
|
62
|
+
|
63
|
+
# http body (model)
|
64
|
+
post_body = nil
|
65
|
+
auth_names = ['Apikey']
|
66
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
67
|
+
:header_params => header_params,
|
68
|
+
:query_params => query_params,
|
69
|
+
:form_params => form_params,
|
70
|
+
:body => post_body,
|
71
|
+
:auth_names => auth_names,
|
72
|
+
:return_type => 'ViewerResponse')
|
73
|
+
if @api_client.config.debugging
|
74
|
+
@api_client.config.logger.debug "API called: ViewerToolsApi#viewer_tools_create_simple\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
75
|
+
end
|
76
|
+
return data, status_code, headers
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|