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.
Files changed (171) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +201 -0
  3. data/build.ps1 +12 -0
  4. data/client/Gemfile +7 -0
  5. data/client/README.md +184 -0
  6. data/client/Rakefile +8 -0
  7. data/client/cloudmersive-convert-api-client.gemspec +45 -0
  8. data/client/docs/CompareDocumentApi.md +66 -0
  9. data/client/docs/ConvertDataApi.md +118 -0
  10. data/client/docs/ConvertDocumentApi.md +723 -0
  11. data/client/docs/ConvertImageApi.md +69 -0
  12. data/client/docs/ConvertTemplateApi.md +63 -0
  13. data/client/docs/ConvertWebApi.md +283 -0
  14. data/client/docs/ConvertedPngPage.md +9 -0
  15. data/client/docs/DocumentValidationError.md +11 -0
  16. data/client/docs/DocumentValidationResult.md +11 -0
  17. data/client/docs/DocxFooter.md +9 -0
  18. data/client/docs/DocxHeader.md +9 -0
  19. data/client/docs/DocxInsertImageRequest.md +13 -0
  20. data/client/docs/DocxInsertImageResponse.md +9 -0
  21. data/client/docs/DocxParagraph.md +10 -0
  22. data/client/docs/DocxRun.md +14 -0
  23. data/client/docs/DocxSection.md +8 -0
  24. data/client/docs/DocxSetFooterRequest.md +10 -0
  25. data/client/docs/DocxSetFooterResponse.md +9 -0
  26. data/client/docs/DocxSetHeaderRequest.md +10 -0
  27. data/client/docs/DocxSetHeaderResponse.md +9 -0
  28. data/client/docs/DocxStyle.md +13 -0
  29. data/client/docs/DocxTable.md +45 -0
  30. data/client/docs/DocxTableCell.md +14 -0
  31. data/client/docs/DocxTableRow.md +9 -0
  32. data/client/docs/DocxText.md +9 -0
  33. data/client/docs/EditDocumentApi.md +668 -0
  34. data/client/docs/FinishEditingRequest.md +8 -0
  35. data/client/docs/GetDocxHeadersAndFootersRequest.md +9 -0
  36. data/client/docs/GetDocxHeadersAndFootersResponse.md +10 -0
  37. data/client/docs/GetDocxStylesRequest.md +9 -0
  38. data/client/docs/GetDocxStylesResponse.md +9 -0
  39. data/client/docs/GetDocxTablesRequest.md +9 -0
  40. data/client/docs/GetDocxTablesResponse.md +9 -0
  41. data/client/docs/HtmlMdResult.md +9 -0
  42. data/client/docs/HtmlTemplateApplicationRequest.md +10 -0
  43. data/client/docs/HtmlTemplateApplicationResponse.md +9 -0
  44. data/client/docs/HtmlTemplateOperation.md +10 -0
  45. data/client/docs/HtmlToOfficeRequest.md +8 -0
  46. data/client/docs/HtmlToPdfRequest.md +9 -0
  47. data/client/docs/InsertDocxTablesRequest.md +10 -0
  48. data/client/docs/InsertDocxTablesResponse.md +9 -0
  49. data/client/docs/MergeDocumentApi.md +182 -0
  50. data/client/docs/PdfToPngResult.md +9 -0
  51. data/client/docs/RemoveDocxHeadersAndFootersRequest.md +11 -0
  52. data/client/docs/RemoveDocxHeadersAndFootersResponse.md +9 -0
  53. data/client/docs/ReplaceStringRequest.md +12 -0
  54. data/client/docs/ScreenshotRequest.md +9 -0
  55. data/client/docs/ValidateDocumentApi.md +173 -0
  56. data/client/docs/ViewerResponse.md +9 -0
  57. data/client/docs/ViewerToolsApi.md +63 -0
  58. data/client/git_push.sh +55 -0
  59. data/client/lib/cloudmersive-convert-api-client.rb +89 -0
  60. data/client/lib/cloudmersive-convert-api-client/api/compare_document_api.rb +86 -0
  61. data/client/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +135 -0
  62. data/client/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +751 -0
  63. data/client/lib/cloudmersive-convert-api-client/api/convert_image_api.rb +91 -0
  64. data/client/lib/cloudmersive-convert-api-client/api/convert_template_api.rb +78 -0
  65. data/client/lib/cloudmersive-convert-api-client/api/convert_web_api.rb +299 -0
  66. data/client/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +684 -0
  67. data/client/lib/cloudmersive-convert-api-client/api/merge_document_api.rb +212 -0
  68. data/client/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +191 -0
  69. data/client/lib/cloudmersive-convert-api-client/api/viewer_tools_api.rb +79 -0
  70. data/client/lib/cloudmersive-convert-api-client/api_client.rb +389 -0
  71. data/client/lib/cloudmersive-convert-api-client/api_error.rb +38 -0
  72. data/client/lib/cloudmersive-convert-api-client/configuration.rb +209 -0
  73. data/client/lib/cloudmersive-convert-api-client/models/converted_png_page.rb +199 -0
  74. data/client/lib/cloudmersive-convert-api-client/models/document_validation_error.rb +219 -0
  75. data/client/lib/cloudmersive-convert-api-client/models/document_validation_result.rb +221 -0
  76. data/client/lib/cloudmersive-convert-api-client/models/docx_footer.rb +203 -0
  77. data/client/lib/cloudmersive-convert-api-client/models/docx_header.rb +203 -0
  78. data/client/lib/cloudmersive-convert-api-client/models/docx_insert_image_request.rb +271 -0
  79. data/client/lib/cloudmersive-convert-api-client/models/docx_insert_image_response.rb +199 -0
  80. data/client/lib/cloudmersive-convert-api-client/models/docx_paragraph.rb +211 -0
  81. data/client/lib/cloudmersive-convert-api-client/models/docx_run.rb +251 -0
  82. data/client/lib/cloudmersive-convert-api-client/models/docx_section.rb +191 -0
  83. data/client/lib/cloudmersive-convert-api-client/models/docx_set_footer_request.rb +225 -0
  84. data/client/lib/cloudmersive-convert-api-client/models/docx_set_footer_response.rb +199 -0
  85. data/client/lib/cloudmersive-convert-api-client/models/docx_set_header_request.rb +225 -0
  86. data/client/lib/cloudmersive-convert-api-client/models/docx_set_header_response.rb +199 -0
  87. data/client/lib/cloudmersive-convert-api-client/models/docx_style.rb +239 -0
  88. data/client/lib/cloudmersive-convert-api-client/models/docx_table.rb +561 -0
  89. data/client/lib/cloudmersive-convert-api-client/models/docx_table_cell.rb +251 -0
  90. data/client/lib/cloudmersive-convert-api-client/models/docx_table_row.rb +201 -0
  91. data/client/lib/cloudmersive-convert-api-client/models/docx_text.rb +199 -0
  92. data/client/lib/cloudmersive-convert-api-client/models/finish_editing_request.rb +189 -0
  93. data/client/lib/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_request.rb +215 -0
  94. data/client/lib/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_response.rb +211 -0
  95. data/client/lib/cloudmersive-convert-api-client/models/get_docx_styles_request.rb +215 -0
  96. data/client/lib/cloudmersive-convert-api-client/models/get_docx_styles_response.rb +201 -0
  97. data/client/lib/cloudmersive-convert-api-client/models/get_docx_tables_request.rb +215 -0
  98. data/client/lib/cloudmersive-convert-api-client/models/get_docx_tables_response.rb +201 -0
  99. data/client/lib/cloudmersive-convert-api-client/models/html_md_result.rb +199 -0
  100. data/client/lib/cloudmersive-convert-api-client/models/html_template_application_request.rb +208 -0
  101. data/client/lib/cloudmersive-convert-api-client/models/html_template_application_response.rb +197 -0
  102. data/client/lib/cloudmersive-convert-api-client/models/html_template_operation.rb +239 -0
  103. data/client/lib/cloudmersive-convert-api-client/models/html_to_office_request.rb +188 -0
  104. data/client/lib/cloudmersive-convert-api-client/models/html_to_pdf_request.rb +197 -0
  105. data/client/lib/cloudmersive-convert-api-client/models/insert_docx_tables_request.rb +225 -0
  106. data/client/lib/cloudmersive-convert-api-client/models/insert_docx_tables_response.rb +199 -0
  107. data/client/lib/cloudmersive-convert-api-client/models/pdf_to_png_result.rb +201 -0
  108. data/client/lib/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_request.rb +235 -0
  109. data/client/lib/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_response.rb +199 -0
  110. data/client/lib/cloudmersive-convert-api-client/models/replace_string_request.rb +245 -0
  111. data/client/lib/cloudmersive-convert-api-client/models/screenshot_request.rb +197 -0
  112. data/client/lib/cloudmersive-convert-api-client/models/viewer_response.rb +197 -0
  113. data/client/lib/cloudmersive-convert-api-client/version.rb +15 -0
  114. data/client/spec/api/compare_document_api_spec.rb +48 -0
  115. data/client/spec/api/convert_data_api_spec.rb +59 -0
  116. data/client/spec/api/convert_document_api_spec.rb +191 -0
  117. data/client/spec/api/convert_image_api_spec.rb +49 -0
  118. data/client/spec/api/convert_template_api_spec.rb +47 -0
  119. data/client/spec/api/convert_web_api_spec.rb +95 -0
  120. data/client/spec/api/edit_document_api_spec.rb +179 -0
  121. data/client/spec/api/merge_document_api_spec.rb +74 -0
  122. data/client/spec/api/validate_document_api_spec.rb +71 -0
  123. data/client/spec/api/viewer_tools_api_spec.rb +47 -0
  124. data/client/spec/api_client_spec.rb +226 -0
  125. data/client/spec/configuration_spec.rb +42 -0
  126. data/client/spec/models/converted_png_page_spec.rb +48 -0
  127. data/client/spec/models/document_validation_error_spec.rb +60 -0
  128. data/client/spec/models/document_validation_result_spec.rb +60 -0
  129. data/client/spec/models/docx_footer_spec.rb +48 -0
  130. data/client/spec/models/docx_header_spec.rb +48 -0
  131. data/client/spec/models/docx_insert_image_request_spec.rb +72 -0
  132. data/client/spec/models/docx_insert_image_response_spec.rb +48 -0
  133. data/client/spec/models/docx_paragraph_spec.rb +54 -0
  134. data/client/spec/models/docx_run_spec.rb +78 -0
  135. data/client/spec/models/docx_section_spec.rb +42 -0
  136. data/client/spec/models/docx_set_footer_request_spec.rb +54 -0
  137. data/client/spec/models/docx_set_footer_response_spec.rb +48 -0
  138. data/client/spec/models/docx_set_header_request_spec.rb +54 -0
  139. data/client/spec/models/docx_set_header_response_spec.rb +48 -0
  140. data/client/spec/models/docx_style_spec.rb +72 -0
  141. data/client/spec/models/docx_table_cell_spec.rb +78 -0
  142. data/client/spec/models/docx_table_row_spec.rb +48 -0
  143. data/client/spec/models/docx_table_spec.rb +264 -0
  144. data/client/spec/models/docx_text_spec.rb +48 -0
  145. data/client/spec/models/finish_editing_request_spec.rb +42 -0
  146. data/client/spec/models/get_docx_headers_and_footers_request_spec.rb +48 -0
  147. data/client/spec/models/get_docx_headers_and_footers_response_spec.rb +54 -0
  148. data/client/spec/models/get_docx_styles_request_spec.rb +48 -0
  149. data/client/spec/models/get_docx_styles_response_spec.rb +48 -0
  150. data/client/spec/models/get_docx_tables_request_spec.rb +48 -0
  151. data/client/spec/models/get_docx_tables_response_spec.rb +48 -0
  152. data/client/spec/models/html_md_result_spec.rb +48 -0
  153. data/client/spec/models/html_template_application_request_spec.rb +54 -0
  154. data/client/spec/models/html_template_application_response_spec.rb +48 -0
  155. data/client/spec/models/html_template_operation_spec.rb +58 -0
  156. data/client/spec/models/html_to_office_request_spec.rb +42 -0
  157. data/client/spec/models/html_to_pdf_request_spec.rb +48 -0
  158. data/client/spec/models/insert_docx_tables_request_spec.rb +54 -0
  159. data/client/spec/models/insert_docx_tables_response_spec.rb +48 -0
  160. data/client/spec/models/pdf_to_png_result_spec.rb +48 -0
  161. data/client/spec/models/remove_docx_headers_and_footers_request_spec.rb +60 -0
  162. data/client/spec/models/remove_docx_headers_and_footers_response_spec.rb +48 -0
  163. data/client/spec/models/replace_string_request_spec.rb +66 -0
  164. data/client/spec/models/screenshot_request_spec.rb +48 -0
  165. data/client/spec/models/viewer_response_spec.rb +48 -0
  166. data/client/spec/spec_helper.rb +111 -0
  167. data/cloudmersiveConvertApiClient-1.2.6.gem +0 -0
  168. data/cloudmersiveConvertApiClient-1.2.7.gem +0 -0
  169. data/packageconfig.json +11 -0
  170. data/swagger-codegen-cli.jar +0 -0
  171. metadata +173 -3
@@ -0,0 +1,684 @@
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 EditDocumentApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Begin editing a document
24
+ # Uploads a document to Cloudmersive to begin a series of one or more editing operations
25
+ # @param input_file Input file to perform the operation on.
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [String]
28
+ def edit_document_begin_editing(input_file, opts = {})
29
+ data, _status_code, _headers = edit_document_begin_editing_with_http_info(input_file, opts)
30
+ return data
31
+ end
32
+
33
+ # Begin editing a document
34
+ # Uploads a document to Cloudmersive to begin a series of one or more editing operations
35
+ # @param input_file Input file to perform the operation on.
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
38
+ def edit_document_begin_editing_with_http_info(input_file, opts = {})
39
+ if @api_client.config.debugging
40
+ @api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_begin_editing ..."
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 EditDocumentApi.edit_document_begin_editing"
45
+ end
46
+ # resource path
47
+ local_var_path = "/convert/edit/begin-editing"
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 => 'String')
73
+ if @api_client.config.debugging
74
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_begin_editing\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
75
+ end
76
+ return data, status_code, headers
77
+ end
78
+
79
+ # Get content of a footer from a DOCX
80
+ # Returns the footer content from a Word Document (DOCX) format file
81
+ # @param req_config
82
+ # @param [Hash] opts the optional parameters
83
+ # @return [GetDocxHeadersAndFootersResponse]
84
+ def edit_document_docx_get_headers_and_footers(req_config, opts = {})
85
+ data, _status_code, _headers = edit_document_docx_get_headers_and_footers_with_http_info(req_config, opts)
86
+ return data
87
+ end
88
+
89
+ # Get content of a footer from a DOCX
90
+ # Returns the footer content from a Word Document (DOCX) format file
91
+ # @param req_config
92
+ # @param [Hash] opts the optional parameters
93
+ # @return [Array<(GetDocxHeadersAndFootersResponse, Fixnum, Hash)>] GetDocxHeadersAndFootersResponse data, response status code and response headers
94
+ def edit_document_docx_get_headers_and_footers_with_http_info(req_config, opts = {})
95
+ if @api_client.config.debugging
96
+ @api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_docx_get_headers_and_footers ..."
97
+ end
98
+ # verify the required parameter 'req_config' is set
99
+ if @api_client.config.client_side_validation && req_config.nil?
100
+ fail ArgumentError, "Missing the required parameter 'req_config' when calling EditDocumentApi.edit_document_docx_get_headers_and_footers"
101
+ end
102
+ # resource path
103
+ local_var_path = "/convert/edit/docx/get-headers-and-footers"
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(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
114
+
115
+ # form parameters
116
+ form_params = {}
117
+
118
+ # http body (model)
119
+ post_body = @api_client.object_to_http_body(req_config)
120
+ auth_names = ['Apikey']
121
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
122
+ :header_params => header_params,
123
+ :query_params => query_params,
124
+ :form_params => form_params,
125
+ :body => post_body,
126
+ :auth_names => auth_names,
127
+ :return_type => 'GetDocxHeadersAndFootersResponse')
128
+ if @api_client.config.debugging
129
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_get_headers_and_footers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
130
+ end
131
+ return data, status_code, headers
132
+ end
133
+
134
+ # Get styles from a DOCX
135
+ # Returns the styles defined in the Word Document (DOCX) format file
136
+ # @param req_config
137
+ # @param [Hash] opts the optional parameters
138
+ # @return [GetDocxStylesResponse]
139
+ def edit_document_docx_get_styles(req_config, opts = {})
140
+ data, _status_code, _headers = edit_document_docx_get_styles_with_http_info(req_config, opts)
141
+ return data
142
+ end
143
+
144
+ # Get styles from a DOCX
145
+ # Returns the styles defined in the Word Document (DOCX) format file
146
+ # @param req_config
147
+ # @param [Hash] opts the optional parameters
148
+ # @return [Array<(GetDocxStylesResponse, Fixnum, Hash)>] GetDocxStylesResponse data, response status code and response headers
149
+ def edit_document_docx_get_styles_with_http_info(req_config, opts = {})
150
+ if @api_client.config.debugging
151
+ @api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_docx_get_styles ..."
152
+ end
153
+ # verify the required parameter 'req_config' is set
154
+ if @api_client.config.client_side_validation && req_config.nil?
155
+ fail ArgumentError, "Missing the required parameter 'req_config' when calling EditDocumentApi.edit_document_docx_get_styles"
156
+ end
157
+ # resource path
158
+ local_var_path = "/convert/edit/docx/get-styles"
159
+
160
+ # query parameters
161
+ query_params = {}
162
+
163
+ # header parameters
164
+ header_params = {}
165
+ # HTTP header 'Accept' (if needed)
166
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
167
+ # HTTP header 'Content-Type'
168
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
169
+
170
+ # form parameters
171
+ form_params = {}
172
+
173
+ # http body (model)
174
+ post_body = @api_client.object_to_http_body(req_config)
175
+ auth_names = ['Apikey']
176
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
177
+ :header_params => header_params,
178
+ :query_params => query_params,
179
+ :form_params => form_params,
180
+ :body => post_body,
181
+ :auth_names => auth_names,
182
+ :return_type => 'GetDocxStylesResponse')
183
+ if @api_client.config.debugging
184
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_get_styles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
185
+ end
186
+ return data, status_code, headers
187
+ end
188
+
189
+ # Get tables in DOCX
190
+ # Returns all the table objects in an Office Word Document (docx)
191
+ # @param req_config
192
+ # @param [Hash] opts the optional parameters
193
+ # @return [GetDocxTablesResponse]
194
+ def edit_document_docx_get_tables(req_config, opts = {})
195
+ data, _status_code, _headers = edit_document_docx_get_tables_with_http_info(req_config, opts)
196
+ return data
197
+ end
198
+
199
+ # Get tables in DOCX
200
+ # Returns all the table objects in an Office Word Document (docx)
201
+ # @param req_config
202
+ # @param [Hash] opts the optional parameters
203
+ # @return [Array<(GetDocxTablesResponse, Fixnum, Hash)>] GetDocxTablesResponse data, response status code and response headers
204
+ def edit_document_docx_get_tables_with_http_info(req_config, opts = {})
205
+ if @api_client.config.debugging
206
+ @api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_docx_get_tables ..."
207
+ end
208
+ # verify the required parameter 'req_config' is set
209
+ if @api_client.config.client_side_validation && req_config.nil?
210
+ fail ArgumentError, "Missing the required parameter 'req_config' when calling EditDocumentApi.edit_document_docx_get_tables"
211
+ end
212
+ # resource path
213
+ local_var_path = "/convert/edit/docx/get-tables"
214
+
215
+ # query parameters
216
+ query_params = {}
217
+
218
+ # header parameters
219
+ header_params = {}
220
+ # HTTP header 'Accept' (if needed)
221
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
222
+ # HTTP header 'Content-Type'
223
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
224
+
225
+ # form parameters
226
+ form_params = {}
227
+
228
+ # http body (model)
229
+ post_body = @api_client.object_to_http_body(req_config)
230
+ auth_names = ['Apikey']
231
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
232
+ :header_params => header_params,
233
+ :query_params => query_params,
234
+ :form_params => form_params,
235
+ :body => post_body,
236
+ :auth_names => auth_names,
237
+ :return_type => 'GetDocxTablesResponse')
238
+ if @api_client.config.debugging
239
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_get_tables\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
240
+ end
241
+ return data, status_code, headers
242
+ end
243
+
244
+ # Insert image into a DOCX
245
+ # Set the footer in a Word Document (DOCX)
246
+ # @param req_config
247
+ # @param [Hash] opts the optional parameters
248
+ # @return [DocxInsertImageResponse]
249
+ def edit_document_docx_insert_image(req_config, opts = {})
250
+ data, _status_code, _headers = edit_document_docx_insert_image_with_http_info(req_config, opts)
251
+ return data
252
+ end
253
+
254
+ # Insert image into a DOCX
255
+ # Set the footer in a Word Document (DOCX)
256
+ # @param req_config
257
+ # @param [Hash] opts the optional parameters
258
+ # @return [Array<(DocxInsertImageResponse, Fixnum, Hash)>] DocxInsertImageResponse data, response status code and response headers
259
+ def edit_document_docx_insert_image_with_http_info(req_config, opts = {})
260
+ if @api_client.config.debugging
261
+ @api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_docx_insert_image ..."
262
+ end
263
+ # verify the required parameter 'req_config' is set
264
+ if @api_client.config.client_side_validation && req_config.nil?
265
+ fail ArgumentError, "Missing the required parameter 'req_config' when calling EditDocumentApi.edit_document_docx_insert_image"
266
+ end
267
+ # resource path
268
+ local_var_path = "/convert/edit/docx/insert-image"
269
+
270
+ # query parameters
271
+ query_params = {}
272
+
273
+ # header parameters
274
+ header_params = {}
275
+ # HTTP header 'Accept' (if needed)
276
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
277
+ # HTTP header 'Content-Type'
278
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
279
+
280
+ # form parameters
281
+ form_params = {}
282
+
283
+ # http body (model)
284
+ post_body = @api_client.object_to_http_body(req_config)
285
+ auth_names = ['Apikey']
286
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
287
+ :header_params => header_params,
288
+ :query_params => query_params,
289
+ :form_params => form_params,
290
+ :body => post_body,
291
+ :auth_names => auth_names,
292
+ :return_type => 'DocxInsertImageResponse')
293
+ if @api_client.config.debugging
294
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_insert_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
295
+ end
296
+ return data, status_code, headers
297
+ end
298
+
299
+ # Insert a new table into a DOCX
300
+ # Adds a new table into a DOCX and returns the result
301
+ # @param req_config
302
+ # @param [Hash] opts the optional parameters
303
+ # @return [InsertDocxTablesResponse]
304
+ def edit_document_docx_insert_table(req_config, opts = {})
305
+ data, _status_code, _headers = edit_document_docx_insert_table_with_http_info(req_config, opts)
306
+ return data
307
+ end
308
+
309
+ # Insert a new table into a DOCX
310
+ # Adds a new table into a DOCX and returns the result
311
+ # @param req_config
312
+ # @param [Hash] opts the optional parameters
313
+ # @return [Array<(InsertDocxTablesResponse, Fixnum, Hash)>] InsertDocxTablesResponse data, response status code and response headers
314
+ def edit_document_docx_insert_table_with_http_info(req_config, opts = {})
315
+ if @api_client.config.debugging
316
+ @api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_docx_insert_table ..."
317
+ end
318
+ # verify the required parameter 'req_config' is set
319
+ if @api_client.config.client_side_validation && req_config.nil?
320
+ fail ArgumentError, "Missing the required parameter 'req_config' when calling EditDocumentApi.edit_document_docx_insert_table"
321
+ end
322
+ # resource path
323
+ local_var_path = "/convert/edit/docx/insert-table"
324
+
325
+ # query parameters
326
+ query_params = {}
327
+
328
+ # header parameters
329
+ header_params = {}
330
+ # HTTP header 'Accept' (if needed)
331
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
332
+ # HTTP header 'Content-Type'
333
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
334
+
335
+ # form parameters
336
+ form_params = {}
337
+
338
+ # http body (model)
339
+ post_body = @api_client.object_to_http_body(req_config)
340
+ auth_names = ['Apikey']
341
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
342
+ :header_params => header_params,
343
+ :query_params => query_params,
344
+ :form_params => form_params,
345
+ :body => post_body,
346
+ :auth_names => auth_names,
347
+ :return_type => 'InsertDocxTablesResponse')
348
+ if @api_client.config.debugging
349
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_insert_table\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
350
+ end
351
+ return data, status_code, headers
352
+ end
353
+
354
+ # Remove headers and footers from DOCX
355
+ # Remove all headers, or footers, or both from a Word Document (DOCX)
356
+ # @param req_config
357
+ # @param [Hash] opts the optional parameters
358
+ # @return [RemoveDocxHeadersAndFootersResponse]
359
+ def edit_document_docx_remove_headers_and_footers(req_config, opts = {})
360
+ data, _status_code, _headers = edit_document_docx_remove_headers_and_footers_with_http_info(req_config, opts)
361
+ return data
362
+ end
363
+
364
+ # Remove headers and footers from DOCX
365
+ # Remove all headers, or footers, or both from a Word Document (DOCX)
366
+ # @param req_config
367
+ # @param [Hash] opts the optional parameters
368
+ # @return [Array<(RemoveDocxHeadersAndFootersResponse, Fixnum, Hash)>] RemoveDocxHeadersAndFootersResponse data, response status code and response headers
369
+ def edit_document_docx_remove_headers_and_footers_with_http_info(req_config, opts = {})
370
+ if @api_client.config.debugging
371
+ @api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_docx_remove_headers_and_footers ..."
372
+ end
373
+ # verify the required parameter 'req_config' is set
374
+ if @api_client.config.client_side_validation && req_config.nil?
375
+ fail ArgumentError, "Missing the required parameter 'req_config' when calling EditDocumentApi.edit_document_docx_remove_headers_and_footers"
376
+ end
377
+ # resource path
378
+ local_var_path = "/convert/edit/docx/remove-headers-and-footers"
379
+
380
+ # query parameters
381
+ query_params = {}
382
+
383
+ # header parameters
384
+ header_params = {}
385
+ # HTTP header 'Accept' (if needed)
386
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
387
+ # HTTP header 'Content-Type'
388
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
389
+
390
+ # form parameters
391
+ form_params = {}
392
+
393
+ # http body (model)
394
+ post_body = @api_client.object_to_http_body(req_config)
395
+ auth_names = ['Apikey']
396
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
397
+ :header_params => header_params,
398
+ :query_params => query_params,
399
+ :form_params => form_params,
400
+ :body => post_body,
401
+ :auth_names => auth_names,
402
+ :return_type => 'RemoveDocxHeadersAndFootersResponse')
403
+ if @api_client.config.debugging
404
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_remove_headers_and_footers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
405
+ end
406
+ return data, status_code, headers
407
+ end
408
+
409
+ # Replace string in DOCX
410
+ # Replace all instances of a string in an Office Word Document (docx)
411
+ # @param req_config
412
+ # @param [Hash] opts the optional parameters
413
+ # @return [String]
414
+ def edit_document_docx_replace(req_config, opts = {})
415
+ data, _status_code, _headers = edit_document_docx_replace_with_http_info(req_config, opts)
416
+ return data
417
+ end
418
+
419
+ # Replace string in DOCX
420
+ # Replace all instances of a string in an Office Word Document (docx)
421
+ # @param req_config
422
+ # @param [Hash] opts the optional parameters
423
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
424
+ def edit_document_docx_replace_with_http_info(req_config, opts = {})
425
+ if @api_client.config.debugging
426
+ @api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_docx_replace ..."
427
+ end
428
+ # verify the required parameter 'req_config' is set
429
+ if @api_client.config.client_side_validation && req_config.nil?
430
+ fail ArgumentError, "Missing the required parameter 'req_config' when calling EditDocumentApi.edit_document_docx_replace"
431
+ end
432
+ # resource path
433
+ local_var_path = "/convert/edit/docx/replace-all"
434
+
435
+ # query parameters
436
+ query_params = {}
437
+
438
+ # header parameters
439
+ header_params = {}
440
+ # HTTP header 'Accept' (if needed)
441
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
442
+ # HTTP header 'Content-Type'
443
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
444
+
445
+ # form parameters
446
+ form_params = {}
447
+
448
+ # http body (model)
449
+ post_body = @api_client.object_to_http_body(req_config)
450
+ auth_names = ['Apikey']
451
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
452
+ :header_params => header_params,
453
+ :query_params => query_params,
454
+ :form_params => form_params,
455
+ :body => post_body,
456
+ :auth_names => auth_names,
457
+ :return_type => 'String')
458
+ if @api_client.config.debugging
459
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
460
+ end
461
+ return data, status_code, headers
462
+ end
463
+
464
+ # Set the footer in a DOCX
465
+ # Set the footer in a Word Document (DOCX)
466
+ # @param req_config
467
+ # @param [Hash] opts the optional parameters
468
+ # @return [DocxSetFooterResponse]
469
+ def edit_document_docx_set_footer(req_config, opts = {})
470
+ data, _status_code, _headers = edit_document_docx_set_footer_with_http_info(req_config, opts)
471
+ return data
472
+ end
473
+
474
+ # Set the footer in a DOCX
475
+ # Set the footer in a Word Document (DOCX)
476
+ # @param req_config
477
+ # @param [Hash] opts the optional parameters
478
+ # @return [Array<(DocxSetFooterResponse, Fixnum, Hash)>] DocxSetFooterResponse data, response status code and response headers
479
+ def edit_document_docx_set_footer_with_http_info(req_config, opts = {})
480
+ if @api_client.config.debugging
481
+ @api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_docx_set_footer ..."
482
+ end
483
+ # verify the required parameter 'req_config' is set
484
+ if @api_client.config.client_side_validation && req_config.nil?
485
+ fail ArgumentError, "Missing the required parameter 'req_config' when calling EditDocumentApi.edit_document_docx_set_footer"
486
+ end
487
+ # resource path
488
+ local_var_path = "/convert/edit/docx/set-footer"
489
+
490
+ # query parameters
491
+ query_params = {}
492
+
493
+ # header parameters
494
+ header_params = {}
495
+ # HTTP header 'Accept' (if needed)
496
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
497
+ # HTTP header 'Content-Type'
498
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
499
+
500
+ # form parameters
501
+ form_params = {}
502
+
503
+ # http body (model)
504
+ post_body = @api_client.object_to_http_body(req_config)
505
+ auth_names = ['Apikey']
506
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
507
+ :header_params => header_params,
508
+ :query_params => query_params,
509
+ :form_params => form_params,
510
+ :body => post_body,
511
+ :auth_names => auth_names,
512
+ :return_type => 'DocxSetFooterResponse')
513
+ if @api_client.config.debugging
514
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_set_footer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
515
+ end
516
+ return data, status_code, headers
517
+ end
518
+
519
+ # Set the header in a DOCX
520
+ # Set the header in a Word Document (DOCX)
521
+ # @param req_config
522
+ # @param [Hash] opts the optional parameters
523
+ # @return [DocxSetHeaderResponse]
524
+ def edit_document_docx_set_header(req_config, opts = {})
525
+ data, _status_code, _headers = edit_document_docx_set_header_with_http_info(req_config, opts)
526
+ return data
527
+ end
528
+
529
+ # Set the header in a DOCX
530
+ # Set the header in a Word Document (DOCX)
531
+ # @param req_config
532
+ # @param [Hash] opts the optional parameters
533
+ # @return [Array<(DocxSetHeaderResponse, Fixnum, Hash)>] DocxSetHeaderResponse data, response status code and response headers
534
+ def edit_document_docx_set_header_with_http_info(req_config, opts = {})
535
+ if @api_client.config.debugging
536
+ @api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_docx_set_header ..."
537
+ end
538
+ # verify the required parameter 'req_config' is set
539
+ if @api_client.config.client_side_validation && req_config.nil?
540
+ fail ArgumentError, "Missing the required parameter 'req_config' when calling EditDocumentApi.edit_document_docx_set_header"
541
+ end
542
+ # resource path
543
+ local_var_path = "/convert/edit/docx/set-header"
544
+
545
+ # query parameters
546
+ query_params = {}
547
+
548
+ # header parameters
549
+ header_params = {}
550
+ # HTTP header 'Accept' (if needed)
551
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
552
+ # HTTP header 'Content-Type'
553
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
554
+
555
+ # form parameters
556
+ form_params = {}
557
+
558
+ # http body (model)
559
+ post_body = @api_client.object_to_http_body(req_config)
560
+ auth_names = ['Apikey']
561
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
562
+ :header_params => header_params,
563
+ :query_params => query_params,
564
+ :form_params => form_params,
565
+ :body => post_body,
566
+ :auth_names => auth_names,
567
+ :return_type => 'DocxSetHeaderResponse')
568
+ if @api_client.config.debugging
569
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_set_header\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
570
+ end
571
+ return data, status_code, headers
572
+ end
573
+
574
+ # Download result from document editing
575
+ # Once done editing a document, download the result. Begin editing a document by calling begin-editing, then perform operations, then call finish-editing to get the result.
576
+ # @param req_config
577
+ # @param [Hash] opts the optional parameters
578
+ # @return [String]
579
+ def edit_document_finish_editing(req_config, opts = {})
580
+ data, _status_code, _headers = edit_document_finish_editing_with_http_info(req_config, opts)
581
+ return data
582
+ end
583
+
584
+ # Download result from document editing
585
+ # Once done editing a document, download the result. Begin editing a document by calling begin-editing, then perform operations, then call finish-editing to get the result.
586
+ # @param req_config
587
+ # @param [Hash] opts the optional parameters
588
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
589
+ def edit_document_finish_editing_with_http_info(req_config, opts = {})
590
+ if @api_client.config.debugging
591
+ @api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_finish_editing ..."
592
+ end
593
+ # verify the required parameter 'req_config' is set
594
+ if @api_client.config.client_side_validation && req_config.nil?
595
+ fail ArgumentError, "Missing the required parameter 'req_config' when calling EditDocumentApi.edit_document_finish_editing"
596
+ end
597
+ # resource path
598
+ local_var_path = "/convert/edit/finish-editing"
599
+
600
+ # query parameters
601
+ query_params = {}
602
+
603
+ # header parameters
604
+ header_params = {}
605
+ # HTTP header 'Accept' (if needed)
606
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
607
+ # HTTP header 'Content-Type'
608
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
609
+
610
+ # form parameters
611
+ form_params = {}
612
+
613
+ # http body (model)
614
+ post_body = @api_client.object_to_http_body(req_config)
615
+ auth_names = ['Apikey']
616
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
617
+ :header_params => header_params,
618
+ :query_params => query_params,
619
+ :form_params => form_params,
620
+ :body => post_body,
621
+ :auth_names => auth_names,
622
+ :return_type => 'String')
623
+ if @api_client.config.debugging
624
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_finish_editing\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
625
+ end
626
+ return data, status_code, headers
627
+ end
628
+
629
+ # Replace string in PPTX
630
+ # Replace all instances of a string in an Office PowerPoint Document (pptx)
631
+ # @param req_config
632
+ # @param [Hash] opts the optional parameters
633
+ # @return [String]
634
+ def edit_document_pptx_replace(req_config, opts = {})
635
+ data, _status_code, _headers = edit_document_pptx_replace_with_http_info(req_config, opts)
636
+ return data
637
+ end
638
+
639
+ # Replace string in PPTX
640
+ # Replace all instances of a string in an Office PowerPoint Document (pptx)
641
+ # @param req_config
642
+ # @param [Hash] opts the optional parameters
643
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
644
+ def edit_document_pptx_replace_with_http_info(req_config, opts = {})
645
+ if @api_client.config.debugging
646
+ @api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_pptx_replace ..."
647
+ end
648
+ # verify the required parameter 'req_config' is set
649
+ if @api_client.config.client_side_validation && req_config.nil?
650
+ fail ArgumentError, "Missing the required parameter 'req_config' when calling EditDocumentApi.edit_document_pptx_replace"
651
+ end
652
+ # resource path
653
+ local_var_path = "/convert/edit/pptx/replace-all"
654
+
655
+ # query parameters
656
+ query_params = {}
657
+
658
+ # header parameters
659
+ header_params = {}
660
+ # HTTP header 'Accept' (if needed)
661
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
662
+ # HTTP header 'Content-Type'
663
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
664
+
665
+ # form parameters
666
+ form_params = {}
667
+
668
+ # http body (model)
669
+ post_body = @api_client.object_to_http_body(req_config)
670
+ auth_names = ['Apikey']
671
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
672
+ :header_params => header_params,
673
+ :query_params => query_params,
674
+ :form_params => form_params,
675
+ :body => post_body,
676
+ :auth_names => auth_names,
677
+ :return_type => 'String')
678
+ if @api_client.config.debugging
679
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_pptx_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
680
+ end
681
+ return data, status_code, headers
682
+ end
683
+ end
684
+ end