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,9 @@
1
+ # CloudmersiveConvertApiClient::ViewerResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **html_embed** | **String** | | [optional]
7
+ **successful** | **BOOLEAN** | | [optional]
8
+
9
+
@@ -0,0 +1,63 @@
1
+ # CloudmersiveConvertApiClient::ViewerToolsApi
2
+
3
+ All URIs are relative to *https://api.cloudmersive.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**viewer_tools_create_simple**](ViewerToolsApi.md#viewer_tools_create_simple) | **POST** /convert/viewer/create/web/simple | Create a web-based viewer
8
+
9
+
10
+ # **viewer_tools_create_simple**
11
+ > ViewerResponse viewer_tools_create_simple(input_file)
12
+
13
+ Create a web-based viewer
14
+
15
+ Creates an HTML embed code for a simple web-based viewer of a document; supports Office document types and PDF.
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'cloudmersive-convert-api-client'
21
+ # setup authorization
22
+ CloudmersiveConvertApiClient.configure do |config|
23
+ # Configure API key authorization: Apikey
24
+ config.api_key['Apikey'] = 'YOUR API KEY'
25
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
26
+ #config.api_key_prefix['Apikey'] = 'Bearer'
27
+ end
28
+
29
+ api_instance = CloudmersiveConvertApiClient::ViewerToolsApi.new
30
+
31
+ input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
32
+
33
+
34
+ begin
35
+ #Create a web-based viewer
36
+ result = api_instance.viewer_tools_create_simple(input_file)
37
+ p result
38
+ rescue CloudmersiveConvertApiClient::ApiError => e
39
+ puts "Exception when calling ViewerToolsApi->viewer_tools_create_simple: #{e}"
40
+ end
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ Name | Type | Description | Notes
46
+ ------------- | ------------- | ------------- | -------------
47
+ **input_file** | **File**| Input file to perform the operation on. |
48
+
49
+ ### Return type
50
+
51
+ [**ViewerResponse**](ViewerResponse.md)
52
+
53
+ ### Authorization
54
+
55
+ [Apikey](../README.md#Apikey)
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: multipart/form-data
60
+ - **Accept**: application/json, text/json, application/xml, text/xml
61
+
62
+
63
+
@@ -0,0 +1,55 @@
1
+ #!/bin/sh
2
+ #
3
+ # Generated by: https://github.com/swagger-api/swagger-codegen.git
4
+ #
5
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
6
+ #
7
+ # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
8
+
9
+ git_user_id=$1
10
+ git_repo_id=$2
11
+ release_note=$3
12
+
13
+ if [ "$git_user_id" = "" ]; then
14
+ git_user_id="GIT_USER_ID"
15
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
16
+ fi
17
+
18
+ if [ "$git_repo_id" = "" ]; then
19
+ git_repo_id="GIT_REPO_ID"
20
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
21
+ fi
22
+
23
+ if [ "$release_note" = "" ]; then
24
+ release_note="Minor update"
25
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
26
+ fi
27
+
28
+ # Initialize the local directory as a Git repository
29
+ git init
30
+
31
+ # Adds the files in the local repository and stages them for commit.
32
+ git add .
33
+
34
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
35
+ git commit -m "$release_note"
36
+
37
+ # Sets the new remote
38
+ git_remote=`git remote`
39
+ if [ "$git_remote" = "" ]; then # git remote not defined
40
+
41
+ if [ "$GIT_TOKEN" = "" ]; then
42
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
43
+ git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
44
+ else
45
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
46
+ fi
47
+
48
+ fi
49
+
50
+ git pull origin master
51
+
52
+ # Pushes (Forces) the changes in the local repository up to the remote repository
53
+ echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
54
+ git push origin master 2>&1 | grep -v 'To https'
55
+
@@ -0,0 +1,89 @@
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
+ # Common files
14
+ require 'cloudmersive-convert-api-client/api_client'
15
+ require 'cloudmersive-convert-api-client/api_error'
16
+ require 'cloudmersive-convert-api-client/version'
17
+ require 'cloudmersive-convert-api-client/configuration'
18
+
19
+ # Models
20
+ require 'cloudmersive-convert-api-client/models/converted_png_page'
21
+ require 'cloudmersive-convert-api-client/models/document_validation_error'
22
+ require 'cloudmersive-convert-api-client/models/document_validation_result'
23
+ require 'cloudmersive-convert-api-client/models/docx_footer'
24
+ require 'cloudmersive-convert-api-client/models/docx_header'
25
+ require 'cloudmersive-convert-api-client/models/docx_insert_image_request'
26
+ require 'cloudmersive-convert-api-client/models/docx_insert_image_response'
27
+ require 'cloudmersive-convert-api-client/models/docx_paragraph'
28
+ require 'cloudmersive-convert-api-client/models/docx_run'
29
+ require 'cloudmersive-convert-api-client/models/docx_section'
30
+ require 'cloudmersive-convert-api-client/models/docx_set_footer_request'
31
+ require 'cloudmersive-convert-api-client/models/docx_set_footer_response'
32
+ require 'cloudmersive-convert-api-client/models/docx_set_header_request'
33
+ require 'cloudmersive-convert-api-client/models/docx_set_header_response'
34
+ require 'cloudmersive-convert-api-client/models/docx_style'
35
+ require 'cloudmersive-convert-api-client/models/docx_table'
36
+ require 'cloudmersive-convert-api-client/models/docx_table_cell'
37
+ require 'cloudmersive-convert-api-client/models/docx_table_row'
38
+ require 'cloudmersive-convert-api-client/models/docx_text'
39
+ require 'cloudmersive-convert-api-client/models/finish_editing_request'
40
+ require 'cloudmersive-convert-api-client/models/get_docx_headers_and_footers_request'
41
+ require 'cloudmersive-convert-api-client/models/get_docx_headers_and_footers_response'
42
+ require 'cloudmersive-convert-api-client/models/get_docx_styles_request'
43
+ require 'cloudmersive-convert-api-client/models/get_docx_styles_response'
44
+ require 'cloudmersive-convert-api-client/models/get_docx_tables_request'
45
+ require 'cloudmersive-convert-api-client/models/get_docx_tables_response'
46
+ require 'cloudmersive-convert-api-client/models/html_md_result'
47
+ require 'cloudmersive-convert-api-client/models/html_template_application_request'
48
+ require 'cloudmersive-convert-api-client/models/html_template_application_response'
49
+ require 'cloudmersive-convert-api-client/models/html_template_operation'
50
+ require 'cloudmersive-convert-api-client/models/html_to_office_request'
51
+ require 'cloudmersive-convert-api-client/models/html_to_pdf_request'
52
+ require 'cloudmersive-convert-api-client/models/insert_docx_tables_request'
53
+ require 'cloudmersive-convert-api-client/models/insert_docx_tables_response'
54
+ require 'cloudmersive-convert-api-client/models/pdf_to_png_result'
55
+ require 'cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_request'
56
+ require 'cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_response'
57
+ require 'cloudmersive-convert-api-client/models/replace_string_request'
58
+ require 'cloudmersive-convert-api-client/models/screenshot_request'
59
+ require 'cloudmersive-convert-api-client/models/viewer_response'
60
+
61
+ # APIs
62
+ require 'cloudmersive-convert-api-client/api/compare_document_api'
63
+ require 'cloudmersive-convert-api-client/api/convert_data_api'
64
+ require 'cloudmersive-convert-api-client/api/convert_document_api'
65
+ require 'cloudmersive-convert-api-client/api/convert_image_api'
66
+ require 'cloudmersive-convert-api-client/api/convert_template_api'
67
+ require 'cloudmersive-convert-api-client/api/convert_web_api'
68
+ require 'cloudmersive-convert-api-client/api/edit_document_api'
69
+ require 'cloudmersive-convert-api-client/api/merge_document_api'
70
+ require 'cloudmersive-convert-api-client/api/validate_document_api'
71
+ require 'cloudmersive-convert-api-client/api/viewer_tools_api'
72
+
73
+ module CloudmersiveConvertApiClient
74
+ class << self
75
+ # Customize default settings for the SDK using block.
76
+ # CloudmersiveConvertApiClient.configure do |config|
77
+ # config.username = "xxx"
78
+ # config.password = "xxx"
79
+ # end
80
+ # If no block given, return the default Configuration object.
81
+ def configure
82
+ if block_given?
83
+ yield(Configuration.default)
84
+ else
85
+ Configuration.default
86
+ end
87
+ end
88
+ end
89
+ end
@@ -0,0 +1,86 @@
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 CompareDocumentApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Compare Two Word DOCX
24
+ # Compare two Office Word Documents (docx) files and highlight the differences
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 compare_document_docx(input_file1, input_file2, opts = {})
30
+ data, _status_code, _headers = compare_document_docx_with_http_info(input_file1, input_file2, opts)
31
+ return data
32
+ end
33
+
34
+ # Compare Two Word DOCX
35
+ # Compare two Office Word Documents (docx) files and highlight the differences
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 compare_document_docx_with_http_info(input_file1, input_file2, opts = {})
41
+ if @api_client.config.debugging
42
+ @api_client.config.logger.debug "Calling API: CompareDocumentApi.compare_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 CompareDocumentApi.compare_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 CompareDocumentApi.compare_document_docx"
51
+ end
52
+ # resource path
53
+ local_var_path = "/convert/compare/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: CompareDocumentApi#compare_document_docx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+ end
86
+ end
@@ -0,0 +1,135 @@
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 ConvertDataApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # CSV to JSON conversion
24
+ # Convert a CSV file to a JSON object array
25
+ # @param input_file Input file to perform the operation on.
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [Object]
28
+ def convert_data_csv_to_json(input_file, opts = {})
29
+ data, _status_code, _headers = convert_data_csv_to_json_with_http_info(input_file, opts)
30
+ return data
31
+ end
32
+
33
+ # CSV to JSON conversion
34
+ # Convert a CSV file to a JSON object array
35
+ # @param input_file Input file to perform the operation on.
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
38
+ def convert_data_csv_to_json_with_http_info(input_file, opts = {})
39
+ if @api_client.config.debugging
40
+ @api_client.config.logger.debug "Calling API: ConvertDataApi.convert_data_csv_to_json ..."
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 ConvertDataApi.convert_data_csv_to_json"
45
+ end
46
+ # resource path
47
+ local_var_path = "/convert/csv/to/json"
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 => 'Object')
73
+ if @api_client.config.debugging
74
+ @api_client.config.logger.debug "API called: ConvertDataApi#convert_data_csv_to_json\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
75
+ end
76
+ return data, status_code, headers
77
+ end
78
+
79
+ # XML to JSON conversion
80
+ # Convert an XML string or file into JSON
81
+ # @param input_file Input file to perform the operation on.
82
+ # @param [Hash] opts the optional parameters
83
+ # @return [Object]
84
+ def convert_data_xml_to_json(input_file, opts = {})
85
+ data, _status_code, _headers = convert_data_xml_to_json_with_http_info(input_file, opts)
86
+ return data
87
+ end
88
+
89
+ # XML to JSON conversion
90
+ # Convert an XML string or file into JSON
91
+ # @param input_file Input file to perform the operation on.
92
+ # @param [Hash] opts the optional parameters
93
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
94
+ def convert_data_xml_to_json_with_http_info(input_file, opts = {})
95
+ if @api_client.config.debugging
96
+ @api_client.config.logger.debug "Calling API: ConvertDataApi.convert_data_xml_to_json ..."
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 ConvertDataApi.convert_data_xml_to_json"
101
+ end
102
+ # resource path
103
+ local_var_path = "/convert/xml/to/json"
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/json', 'text/json', 'application/xml', 'text/xml'])
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 => 'Object')
129
+ if @api_client.config.debugging
130
+ @api_client.config.logger.debug "API called: ConvertDataApi#convert_data_xml_to_json\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
131
+ end
132
+ return data, status_code, headers
133
+ end
134
+ end
135
+ end
@@ -0,0 +1,751 @@
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 ConvertDocumentApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Convert Document to PDF
24
+ # Automatically detect file type and convert it to PDF.
25
+ # @param input_file Input file to perform the operation on.
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [String]
28
+ def convert_document_autodetect_to_pdf(input_file, opts = {})
29
+ data, _status_code, _headers = convert_document_autodetect_to_pdf_with_http_info(input_file, opts)
30
+ return data
31
+ end
32
+
33
+ # Convert Document to PDF
34
+ # Automatically detect file type and convert it to PDF.
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 convert_document_autodetect_to_pdf_with_http_info(input_file, opts = {})
39
+ if @api_client.config.debugging
40
+ @api_client.config.logger.debug "Calling API: ConvertDocumentApi.convert_document_autodetect_to_pdf ..."
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 ConvertDocumentApi.convert_document_autodetect_to_pdf"
45
+ end
46
+ # resource path
47
+ local_var_path = "/convert/autodetect/to/pdf"
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: ConvertDocumentApi#convert_document_autodetect_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
75
+ end
76
+ return data, status_code, headers
77
+ end
78
+
79
+ # CSV to Excel XLSX
80
+ # Convert CSV file to Office Excel XLSX Workbooks file format.
81
+ # @param input_file Input file to perform the operation on.
82
+ # @param [Hash] opts the optional parameters
83
+ # @return [String]
84
+ def convert_document_csv_to_xlsx(input_file, opts = {})
85
+ data, _status_code, _headers = convert_document_csv_to_xlsx_with_http_info(input_file, opts)
86
+ return data
87
+ end
88
+
89
+ # CSV to Excel XLSX
90
+ # Convert CSV file to Office Excel XLSX Workbooks file format.
91
+ # @param input_file Input file to perform the operation on.
92
+ # @param [Hash] opts the optional parameters
93
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
94
+ def convert_document_csv_to_xlsx_with_http_info(input_file, opts = {})
95
+ if @api_client.config.debugging
96
+ @api_client.config.logger.debug "Calling API: ConvertDocumentApi.convert_document_csv_to_xlsx ..."
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 ConvertDocumentApi.convert_document_csv_to_xlsx"
101
+ end
102
+ # resource path
103
+ local_var_path = "/convert/csv/to/xlsx"
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 => 'String')
129
+ if @api_client.config.debugging
130
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_csv_to_xlsx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
131
+ end
132
+ return data, status_code, headers
133
+ end
134
+
135
+ # Word DOC (97-03) to DOCX
136
+ # Convert/upgrade Office Word (97-2003 Format) Documents (doc) to the modern DOCX format
137
+ # @param input_file Input file to perform the operation on.
138
+ # @param [Hash] opts the optional parameters
139
+ # @return [String]
140
+ def convert_document_doc_to_docx(input_file, opts = {})
141
+ data, _status_code, _headers = convert_document_doc_to_docx_with_http_info(input_file, opts)
142
+ return data
143
+ end
144
+
145
+ # Word DOC (97-03) to DOCX
146
+ # Convert/upgrade Office Word (97-2003 Format) Documents (doc) to the modern DOCX format
147
+ # @param input_file Input file to perform the operation on.
148
+ # @param [Hash] opts the optional parameters
149
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
150
+ def convert_document_doc_to_docx_with_http_info(input_file, opts = {})
151
+ if @api_client.config.debugging
152
+ @api_client.config.logger.debug "Calling API: ConvertDocumentApi.convert_document_doc_to_docx ..."
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 ConvertDocumentApi.convert_document_doc_to_docx"
157
+ end
158
+ # resource path
159
+ local_var_path = "/convert/doc/to/docx"
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 => 'String')
185
+ if @api_client.config.debugging
186
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_doc_to_docx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
187
+ end
188
+ return data, status_code, headers
189
+ end
190
+
191
+ # Word DOC (97-03) to PDF
192
+ # Convert Office Word (97-2003 Format) Documents (doc) to standard PDF
193
+ # @param input_file Input file to perform the operation on.
194
+ # @param [Hash] opts the optional parameters
195
+ # @return [String]
196
+ def convert_document_doc_to_pdf(input_file, opts = {})
197
+ data, _status_code, _headers = convert_document_doc_to_pdf_with_http_info(input_file, opts)
198
+ return data
199
+ end
200
+
201
+ # Word DOC (97-03) to PDF
202
+ # Convert Office Word (97-2003 Format) Documents (doc) to standard PDF
203
+ # @param input_file Input file to perform the operation on.
204
+ # @param [Hash] opts the optional parameters
205
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
206
+ def convert_document_doc_to_pdf_with_http_info(input_file, opts = {})
207
+ if @api_client.config.debugging
208
+ @api_client.config.logger.debug "Calling API: ConvertDocumentApi.convert_document_doc_to_pdf ..."
209
+ end
210
+ # verify the required parameter 'input_file' is set
211
+ if @api_client.config.client_side_validation && input_file.nil?
212
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_doc_to_pdf"
213
+ end
214
+ # resource path
215
+ local_var_path = "/convert/doc/to/pdf"
216
+
217
+ # query parameters
218
+ query_params = {}
219
+
220
+ # header parameters
221
+ header_params = {}
222
+ # HTTP header 'Accept' (if needed)
223
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
224
+ # HTTP header 'Content-Type'
225
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
226
+
227
+ # form parameters
228
+ form_params = {}
229
+ form_params["inputFile"] = input_file
230
+
231
+ # http body (model)
232
+ post_body = nil
233
+ auth_names = ['Apikey']
234
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
235
+ :header_params => header_params,
236
+ :query_params => query_params,
237
+ :form_params => form_params,
238
+ :body => post_body,
239
+ :auth_names => auth_names,
240
+ :return_type => 'String')
241
+ if @api_client.config.debugging
242
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_doc_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
243
+ end
244
+ return data, status_code, headers
245
+ end
246
+
247
+ # Word DOCX to PDF
248
+ # Convert Office Word Documents (docx) to standard PDF
249
+ # @param input_file Input file to perform the operation on.
250
+ # @param [Hash] opts the optional parameters
251
+ # @return [String]
252
+ def convert_document_docx_to_pdf(input_file, opts = {})
253
+ data, _status_code, _headers = convert_document_docx_to_pdf_with_http_info(input_file, opts)
254
+ return data
255
+ end
256
+
257
+ # Word DOCX to PDF
258
+ # Convert Office Word Documents (docx) to standard PDF
259
+ # @param input_file Input file to perform the operation on.
260
+ # @param [Hash] opts the optional parameters
261
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
262
+ def convert_document_docx_to_pdf_with_http_info(input_file, opts = {})
263
+ if @api_client.config.debugging
264
+ @api_client.config.logger.debug "Calling API: ConvertDocumentApi.convert_document_docx_to_pdf ..."
265
+ end
266
+ # verify the required parameter 'input_file' is set
267
+ if @api_client.config.client_side_validation && input_file.nil?
268
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_docx_to_pdf"
269
+ end
270
+ # resource path
271
+ local_var_path = "/convert/docx/to/pdf"
272
+
273
+ # query parameters
274
+ query_params = {}
275
+
276
+ # header parameters
277
+ header_params = {}
278
+ # HTTP header 'Accept' (if needed)
279
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
280
+ # HTTP header 'Content-Type'
281
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
282
+
283
+ # form parameters
284
+ form_params = {}
285
+ form_params["inputFile"] = input_file
286
+
287
+ # http body (model)
288
+ post_body = nil
289
+ auth_names = ['Apikey']
290
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
291
+ :header_params => header_params,
292
+ :query_params => query_params,
293
+ :form_params => form_params,
294
+ :body => post_body,
295
+ :auth_names => auth_names,
296
+ :return_type => 'String')
297
+ if @api_client.config.debugging
298
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_docx_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
299
+ end
300
+ return data, status_code, headers
301
+ end
302
+
303
+ # PDF to PNG Array
304
+ # Convert PDF document to PNG array, one image per page.
305
+ # @param input_file Input file to perform the operation on.
306
+ # @param [Hash] opts the optional parameters
307
+ # @return [PdfToPngResult]
308
+ def convert_document_pdf_to_png_array(input_file, opts = {})
309
+ data, _status_code, _headers = convert_document_pdf_to_png_array_with_http_info(input_file, opts)
310
+ return data
311
+ end
312
+
313
+ # PDF to PNG Array
314
+ # Convert PDF document to PNG array, one image per page.
315
+ # @param input_file Input file to perform the operation on.
316
+ # @param [Hash] opts the optional parameters
317
+ # @return [Array<(PdfToPngResult, Fixnum, Hash)>] PdfToPngResult data, response status code and response headers
318
+ def convert_document_pdf_to_png_array_with_http_info(input_file, opts = {})
319
+ if @api_client.config.debugging
320
+ @api_client.config.logger.debug "Calling API: ConvertDocumentApi.convert_document_pdf_to_png_array ..."
321
+ end
322
+ # verify the required parameter 'input_file' is set
323
+ if @api_client.config.client_side_validation && input_file.nil?
324
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_pdf_to_png_array"
325
+ end
326
+ # resource path
327
+ local_var_path = "/convert/pdf/to/png"
328
+
329
+ # query parameters
330
+ query_params = {}
331
+
332
+ # header parameters
333
+ header_params = {}
334
+ # HTTP header 'Accept' (if needed)
335
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
336
+ # HTTP header 'Content-Type'
337
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
338
+
339
+ # form parameters
340
+ form_params = {}
341
+ form_params["inputFile"] = input_file
342
+
343
+ # http body (model)
344
+ post_body = nil
345
+ auth_names = ['Apikey']
346
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
347
+ :header_params => header_params,
348
+ :query_params => query_params,
349
+ :form_params => form_params,
350
+ :body => post_body,
351
+ :auth_names => auth_names,
352
+ :return_type => 'PdfToPngResult')
353
+ if @api_client.config.debugging
354
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pdf_to_png_array\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
355
+ end
356
+ return data, status_code, headers
357
+ end
358
+
359
+ # PowerPoint PPT (97-03) to PDF
360
+ # Convert Office PowerPoint (97-2003) Documents (ppt) to standard PDF
361
+ # @param input_file Input file to perform the operation on.
362
+ # @param [Hash] opts the optional parameters
363
+ # @return [String]
364
+ def convert_document_ppt_to_pdf(input_file, opts = {})
365
+ data, _status_code, _headers = convert_document_ppt_to_pdf_with_http_info(input_file, opts)
366
+ return data
367
+ end
368
+
369
+ # PowerPoint PPT (97-03) to PDF
370
+ # Convert Office PowerPoint (97-2003) Documents (ppt) to standard PDF
371
+ # @param input_file Input file to perform the operation on.
372
+ # @param [Hash] opts the optional parameters
373
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
374
+ def convert_document_ppt_to_pdf_with_http_info(input_file, opts = {})
375
+ if @api_client.config.debugging
376
+ @api_client.config.logger.debug "Calling API: ConvertDocumentApi.convert_document_ppt_to_pdf ..."
377
+ end
378
+ # verify the required parameter 'input_file' is set
379
+ if @api_client.config.client_side_validation && input_file.nil?
380
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_ppt_to_pdf"
381
+ end
382
+ # resource path
383
+ local_var_path = "/convert/ppt/to/pdf"
384
+
385
+ # query parameters
386
+ query_params = {}
387
+
388
+ # header parameters
389
+ header_params = {}
390
+ # HTTP header 'Accept' (if needed)
391
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
392
+ # HTTP header 'Content-Type'
393
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
394
+
395
+ # form parameters
396
+ form_params = {}
397
+ form_params["inputFile"] = input_file
398
+
399
+ # http body (model)
400
+ post_body = nil
401
+ auth_names = ['Apikey']
402
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
403
+ :header_params => header_params,
404
+ :query_params => query_params,
405
+ :form_params => form_params,
406
+ :body => post_body,
407
+ :auth_names => auth_names,
408
+ :return_type => 'String')
409
+ if @api_client.config.debugging
410
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_ppt_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
411
+ end
412
+ return data, status_code, headers
413
+ end
414
+
415
+ # PowerPoint PPT (97-03) to PPTX
416
+ # Convert/upgrade Office PowerPoint (97-2003) Documents (ppt) to modern PPTX
417
+ # @param input_file Input file to perform the operation on.
418
+ # @param [Hash] opts the optional parameters
419
+ # @return [String]
420
+ def convert_document_ppt_to_pptx(input_file, opts = {})
421
+ data, _status_code, _headers = convert_document_ppt_to_pptx_with_http_info(input_file, opts)
422
+ return data
423
+ end
424
+
425
+ # PowerPoint PPT (97-03) to PPTX
426
+ # Convert/upgrade Office PowerPoint (97-2003) Documents (ppt) to modern PPTX
427
+ # @param input_file Input file to perform the operation on.
428
+ # @param [Hash] opts the optional parameters
429
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
430
+ def convert_document_ppt_to_pptx_with_http_info(input_file, opts = {})
431
+ if @api_client.config.debugging
432
+ @api_client.config.logger.debug "Calling API: ConvertDocumentApi.convert_document_ppt_to_pptx ..."
433
+ end
434
+ # verify the required parameter 'input_file' is set
435
+ if @api_client.config.client_side_validation && input_file.nil?
436
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_ppt_to_pptx"
437
+ end
438
+ # resource path
439
+ local_var_path = "/convert/ppt/to/pptx"
440
+
441
+ # query parameters
442
+ query_params = {}
443
+
444
+ # header parameters
445
+ header_params = {}
446
+ # HTTP header 'Accept' (if needed)
447
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
448
+ # HTTP header 'Content-Type'
449
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
450
+
451
+ # form parameters
452
+ form_params = {}
453
+ form_params["inputFile"] = input_file
454
+
455
+ # http body (model)
456
+ post_body = nil
457
+ auth_names = ['Apikey']
458
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
459
+ :header_params => header_params,
460
+ :query_params => query_params,
461
+ :form_params => form_params,
462
+ :body => post_body,
463
+ :auth_names => auth_names,
464
+ :return_type => 'String')
465
+ if @api_client.config.debugging
466
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_ppt_to_pptx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
467
+ end
468
+ return data, status_code, headers
469
+ end
470
+
471
+ # PowerPoint PPTX to PDF
472
+ # Convert Office PowerPoint Documents (pptx) to standard PDF
473
+ # @param input_file Input file to perform the operation on.
474
+ # @param [Hash] opts the optional parameters
475
+ # @return [String]
476
+ def convert_document_pptx_to_pdf(input_file, opts = {})
477
+ data, _status_code, _headers = convert_document_pptx_to_pdf_with_http_info(input_file, opts)
478
+ return data
479
+ end
480
+
481
+ # PowerPoint PPTX to PDF
482
+ # Convert Office PowerPoint Documents (pptx) to standard PDF
483
+ # @param input_file Input file to perform the operation on.
484
+ # @param [Hash] opts the optional parameters
485
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
486
+ def convert_document_pptx_to_pdf_with_http_info(input_file, opts = {})
487
+ if @api_client.config.debugging
488
+ @api_client.config.logger.debug "Calling API: ConvertDocumentApi.convert_document_pptx_to_pdf ..."
489
+ end
490
+ # verify the required parameter 'input_file' is set
491
+ if @api_client.config.client_side_validation && input_file.nil?
492
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_pptx_to_pdf"
493
+ end
494
+ # resource path
495
+ local_var_path = "/convert/pptx/to/pdf"
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["inputFile"] = input_file
510
+
511
+ # http body (model)
512
+ post_body = nil
513
+ auth_names = ['Apikey']
514
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
515
+ :header_params => header_params,
516
+ :query_params => query_params,
517
+ :form_params => form_params,
518
+ :body => post_body,
519
+ :auth_names => auth_names,
520
+ :return_type => 'String')
521
+ if @api_client.config.debugging
522
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pptx_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
523
+ end
524
+ return data, status_code, headers
525
+ end
526
+
527
+ # Excel XLS (97-03) to PDF
528
+ # Convert Office Excel (97-2003) Workbooks (xls) to standard PDF. Converts all worksheets in the workbook to PDF.
529
+ # @param input_file Input file to perform the operation on.
530
+ # @param [Hash] opts the optional parameters
531
+ # @return [Object]
532
+ def convert_document_xls_to_pdf(input_file, opts = {})
533
+ data, _status_code, _headers = convert_document_xls_to_pdf_with_http_info(input_file, opts)
534
+ return data
535
+ end
536
+
537
+ # Excel XLS (97-03) to PDF
538
+ # Convert Office Excel (97-2003) Workbooks (xls) to standard PDF. Converts all worksheets in the workbook to PDF.
539
+ # @param input_file Input file to perform the operation on.
540
+ # @param [Hash] opts the optional parameters
541
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
542
+ def convert_document_xls_to_pdf_with_http_info(input_file, opts = {})
543
+ if @api_client.config.debugging
544
+ @api_client.config.logger.debug "Calling API: ConvertDocumentApi.convert_document_xls_to_pdf ..."
545
+ end
546
+ # verify the required parameter 'input_file' is set
547
+ if @api_client.config.client_side_validation && input_file.nil?
548
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xls_to_pdf"
549
+ end
550
+ # resource path
551
+ local_var_path = "/convert/xls/to/pdf"
552
+
553
+ # query parameters
554
+ query_params = {}
555
+
556
+ # header parameters
557
+ header_params = {}
558
+ # HTTP header 'Accept' (if needed)
559
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
560
+ # HTTP header 'Content-Type'
561
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
562
+
563
+ # form parameters
564
+ form_params = {}
565
+ form_params["inputFile"] = input_file
566
+
567
+ # http body (model)
568
+ post_body = nil
569
+ auth_names = ['Apikey']
570
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
571
+ :header_params => header_params,
572
+ :query_params => query_params,
573
+ :form_params => form_params,
574
+ :body => post_body,
575
+ :auth_names => auth_names,
576
+ :return_type => 'Object')
577
+ if @api_client.config.debugging
578
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xls_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
579
+ end
580
+ return data, status_code, headers
581
+ end
582
+
583
+ # Excel XLS (97-03) to XLSX
584
+ # Convert/upgrade Office Excel (97-2003) Workbooks (xls) to modern XLSX format.
585
+ # @param input_file Input file to perform the operation on.
586
+ # @param [Hash] opts the optional parameters
587
+ # @return [String]
588
+ def convert_document_xls_to_xlsx(input_file, opts = {})
589
+ data, _status_code, _headers = convert_document_xls_to_xlsx_with_http_info(input_file, opts)
590
+ return data
591
+ end
592
+
593
+ # Excel XLS (97-03) to XLSX
594
+ # Convert/upgrade Office Excel (97-2003) Workbooks (xls) to modern XLSX format.
595
+ # @param input_file Input file to perform the operation on.
596
+ # @param [Hash] opts the optional parameters
597
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
598
+ def convert_document_xls_to_xlsx_with_http_info(input_file, opts = {})
599
+ if @api_client.config.debugging
600
+ @api_client.config.logger.debug "Calling API: ConvertDocumentApi.convert_document_xls_to_xlsx ..."
601
+ end
602
+ # verify the required parameter 'input_file' is set
603
+ if @api_client.config.client_side_validation && input_file.nil?
604
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xls_to_xlsx"
605
+ end
606
+ # resource path
607
+ local_var_path = "/convert/xls/to/xlsx"
608
+
609
+ # query parameters
610
+ query_params = {}
611
+
612
+ # header parameters
613
+ header_params = {}
614
+ # HTTP header 'Accept' (if needed)
615
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
616
+ # HTTP header 'Content-Type'
617
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
618
+
619
+ # form parameters
620
+ form_params = {}
621
+ form_params["inputFile"] = input_file
622
+
623
+ # http body (model)
624
+ post_body = nil
625
+ auth_names = ['Apikey']
626
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
627
+ :header_params => header_params,
628
+ :query_params => query_params,
629
+ :form_params => form_params,
630
+ :body => post_body,
631
+ :auth_names => auth_names,
632
+ :return_type => 'String')
633
+ if @api_client.config.debugging
634
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xls_to_xlsx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
635
+ end
636
+ return data, status_code, headers
637
+ end
638
+
639
+ # Excel XLSX to CSV
640
+ # Convert Office Excel Workbooks (xlsx) to standard Comma-Separated Values (CSV) format.
641
+ # @param input_file Input file to perform the operation on.
642
+ # @param [Hash] opts the optional parameters
643
+ # @return [String]
644
+ def convert_document_xlsx_to_csv(input_file, opts = {})
645
+ data, _status_code, _headers = convert_document_xlsx_to_csv_with_http_info(input_file, opts)
646
+ return data
647
+ end
648
+
649
+ # Excel XLSX to CSV
650
+ # Convert Office Excel Workbooks (xlsx) to standard Comma-Separated Values (CSV) format.
651
+ # @param input_file Input file to perform the operation on.
652
+ # @param [Hash] opts the optional parameters
653
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
654
+ def convert_document_xlsx_to_csv_with_http_info(input_file, opts = {})
655
+ if @api_client.config.debugging
656
+ @api_client.config.logger.debug "Calling API: ConvertDocumentApi.convert_document_xlsx_to_csv ..."
657
+ end
658
+ # verify the required parameter 'input_file' is set
659
+ if @api_client.config.client_side_validation && input_file.nil?
660
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xlsx_to_csv"
661
+ end
662
+ # resource path
663
+ local_var_path = "/convert/xlsx/to/csv"
664
+
665
+ # query parameters
666
+ query_params = {}
667
+
668
+ # header parameters
669
+ header_params = {}
670
+ # HTTP header 'Accept' (if needed)
671
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
672
+ # HTTP header 'Content-Type'
673
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
674
+
675
+ # form parameters
676
+ form_params = {}
677
+ form_params["inputFile"] = input_file
678
+
679
+ # http body (model)
680
+ post_body = nil
681
+ auth_names = ['Apikey']
682
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
683
+ :header_params => header_params,
684
+ :query_params => query_params,
685
+ :form_params => form_params,
686
+ :body => post_body,
687
+ :auth_names => auth_names,
688
+ :return_type => 'String')
689
+ if @api_client.config.debugging
690
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xlsx_to_csv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
691
+ end
692
+ return data, status_code, headers
693
+ end
694
+
695
+ # Excel XLSX to PDF
696
+ # Convert Office Excel Workbooks (xlsx) to standard PDF. Converts all worksheets in the workbook to PDF.
697
+ # @param input_file Input file to perform the operation on.
698
+ # @param [Hash] opts the optional parameters
699
+ # @return [String]
700
+ def convert_document_xlsx_to_pdf(input_file, opts = {})
701
+ data, _status_code, _headers = convert_document_xlsx_to_pdf_with_http_info(input_file, opts)
702
+ return data
703
+ end
704
+
705
+ # Excel XLSX to PDF
706
+ # Convert Office Excel Workbooks (xlsx) to standard PDF. Converts all worksheets in the workbook to PDF.
707
+ # @param input_file Input file to perform the operation on.
708
+ # @param [Hash] opts the optional parameters
709
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
710
+ def convert_document_xlsx_to_pdf_with_http_info(input_file, opts = {})
711
+ if @api_client.config.debugging
712
+ @api_client.config.logger.debug "Calling API: ConvertDocumentApi.convert_document_xlsx_to_pdf ..."
713
+ end
714
+ # verify the required parameter 'input_file' is set
715
+ if @api_client.config.client_side_validation && input_file.nil?
716
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xlsx_to_pdf"
717
+ end
718
+ # resource path
719
+ local_var_path = "/convert/xlsx/to/pdf"
720
+
721
+ # query parameters
722
+ query_params = {}
723
+
724
+ # header parameters
725
+ header_params = {}
726
+ # HTTP header 'Accept' (if needed)
727
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
728
+ # HTTP header 'Content-Type'
729
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
730
+
731
+ # form parameters
732
+ form_params = {}
733
+ form_params["inputFile"] = input_file
734
+
735
+ # http body (model)
736
+ post_body = nil
737
+ auth_names = ['Apikey']
738
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
739
+ :header_params => header_params,
740
+ :query_params => query_params,
741
+ :form_params => form_params,
742
+ :body => post_body,
743
+ :auth_names => auth_names,
744
+ :return_type => 'String')
745
+ if @api_client.config.debugging
746
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xlsx_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
747
+ end
748
+ return data, status_code, headers
749
+ end
750
+ end
751
+ end