cloudmersive-convert-api-client 2.0.6 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (783) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +7 -0
  3. data/README.md +597 -0
  4. data/Rakefile +8 -0
  5. data/cloudmersive-convert-api-client.gemspec +45 -0
  6. data/docs/AddPdfAnnotationRequest.md +9 -0
  7. data/docs/AlternateFileFormatCandidate.md +10 -0
  8. data/docs/AppendXlsxRowRequest.md +11 -0
  9. data/docs/AppendXlsxRowResponse.md +9 -0
  10. data/docs/AutodetectDocumentValidationResult.md +12 -0
  11. data/docs/AutodetectGetInfoResult.md +14 -0
  12. data/docs/AutodetectToJpgResult.md +9 -0
  13. data/docs/AutodetectToPngResult.md +9 -0
  14. data/docs/AutodetectToThumbnailsResult.md +9 -0
  15. data/docs/Base64DecodeRequest.md +8 -0
  16. data/docs/Base64DecodeResponse.md +9 -0
  17. data/docs/Base64DetectRequest.md +8 -0
  18. data/docs/Base64DetectResponse.md +9 -0
  19. data/docs/Base64EncodeRequest.md +8 -0
  20. data/docs/Base64EncodeResponse.md +9 -0
  21. data/docs/ChangeLineEndingResponse.md +9 -0
  22. data/docs/ClearXlsxCellRequest.md +12 -0
  23. data/docs/ClearXlsxCellResponse.md +9 -0
  24. data/docs/ClearXlsxRowRequest.md +11 -0
  25. data/docs/ClearXlsxRowResponse.md +9 -0
  26. data/docs/CompareDocumentApi.md +66 -0
  27. data/docs/ConvertDataApi.md +1016 -0
  28. data/docs/ConvertDocumentApi.md +4503 -0
  29. data/docs/ConvertImageApi.md +243 -0
  30. data/docs/ConvertTemplateApi.md +122 -0
  31. data/docs/ConvertWebApi.md +448 -0
  32. data/docs/ConvertedJpgPage.md +9 -0
  33. data/docs/ConvertedPngPage.md +9 -0
  34. data/docs/CreateBlankDocxRequest.md +8 -0
  35. data/docs/CreateBlankDocxResponse.md +9 -0
  36. data/docs/CreateBlankSpreadsheetRequest.md +8 -0
  37. data/docs/CreateBlankSpreadsheetResponse.md +9 -0
  38. data/docs/CreateSpreadsheetFromDataRequest.md +9 -0
  39. data/docs/CreateSpreadsheetFromDataResponse.md +9 -0
  40. data/docs/CreateZipArchiveRequest.md +9 -0
  41. data/docs/CsvCollection.md +10 -0
  42. data/docs/CsvFileResult.md +9 -0
  43. data/docs/DeleteDocxTableRowRangeRequest.md +12 -0
  44. data/docs/DeleteDocxTableRowRangeResponse.md +9 -0
  45. data/docs/DeleteDocxTableRowRequest.md +11 -0
  46. data/docs/DeleteDocxTableRowResponse.md +9 -0
  47. data/docs/DetectLineEndingsResponse.md +11 -0
  48. data/docs/DisableSharedWorkbookRequest.md +9 -0
  49. data/docs/DisableSharedWorkbookResponse.md +9 -0
  50. data/docs/DocumentValidationError.md +11 -0
  51. data/docs/DocumentValidationResult.md +12 -0
  52. data/docs/DocxBody.md +10 -0
  53. data/docs/DocxCellStyle.md +11 -0
  54. data/docs/DocxComment.md +16 -0
  55. data/docs/DocxFooter.md +10 -0
  56. data/docs/DocxHeader.md +10 -0
  57. data/docs/DocxImage.md +20 -0
  58. data/docs/DocxInsertCommentOnParagraphRequest.md +11 -0
  59. data/docs/DocxInsertImageRequest.md +16 -0
  60. data/docs/DocxInsertImageResponse.md +9 -0
  61. data/docs/DocxPage.md +9 -0
  62. data/docs/DocxParagraph.md +11 -0
  63. data/docs/DocxRemoveObjectRequest.md +10 -0
  64. data/docs/DocxRemoveObjectResponse.md +9 -0
  65. data/docs/DocxRun.md +15 -0
  66. data/docs/DocxSection.md +9 -0
  67. data/docs/DocxSetFooterAddPageNumberRequest.md +10 -0
  68. data/docs/DocxSetFooterRequest.md +10 -0
  69. data/docs/DocxSetFooterResponse.md +9 -0
  70. data/docs/DocxSetHeaderRequest.md +10 -0
  71. data/docs/DocxSetHeaderResponse.md +9 -0
  72. data/docs/DocxStyle.md +14 -0
  73. data/docs/DocxTable.md +46 -0
  74. data/docs/DocxTableCell.md +15 -0
  75. data/docs/DocxTableRow.md +10 -0
  76. data/docs/DocxTemplateApplicationRequest.md +8 -0
  77. data/docs/DocxTemplateOperation.md +10 -0
  78. data/docs/DocxText.md +10 -0
  79. data/docs/DocxToJpgResult.md +9 -0
  80. data/docs/DocxToPngResult.md +9 -0
  81. data/docs/DocxTopLevelComment.md +14 -0
  82. data/docs/EditDocumentApi.md +3253 -0
  83. data/docs/EditHtmlApi.md +329 -0
  84. data/docs/EditPdfApi.md +1310 -0
  85. data/docs/EditTextApi.md +726 -0
  86. data/docs/EmlAttachment.md +9 -0
  87. data/docs/EmlToHtmlResult.md +16 -0
  88. data/docs/EmlToJpgResult.md +9 -0
  89. data/docs/EmlToPngResult.md +9 -0
  90. data/docs/EnableSharedWorkbookRequest.md +9 -0
  91. data/docs/EnableSharedWorkbookResponse.md +9 -0
  92. data/docs/ExifValue.md +10 -0
  93. data/docs/FindDocxParagraphRequest.md +11 -0
  94. data/docs/FindDocxParagraphResponse.md +10 -0
  95. data/docs/FindRegexMatch.md +12 -0
  96. data/docs/FindStringMatch.md +10 -0
  97. data/docs/FindStringRegexRequest.md +10 -0
  98. data/docs/FindStringRegexResponse.md +10 -0
  99. data/docs/FindStringSimpleRequest.md +9 -0
  100. data/docs/FindStringSimpleResponse.md +10 -0
  101. data/docs/FinishEditingRequest.md +8 -0
  102. data/docs/GetDocxBodyRequest.md +9 -0
  103. data/docs/GetDocxBodyResponse.md +9 -0
  104. data/docs/GetDocxCommentsHierarchicalResponse.md +10 -0
  105. data/docs/GetDocxCommentsResponse.md +10 -0
  106. data/docs/GetDocxGetCommentsHierarchicalRequest.md +9 -0
  107. data/docs/GetDocxGetCommentsRequest.md +9 -0
  108. data/docs/GetDocxHeadersAndFootersRequest.md +9 -0
  109. data/docs/GetDocxHeadersAndFootersResponse.md +10 -0
  110. data/docs/GetDocxImagesRequest.md +9 -0
  111. data/docs/GetDocxImagesResponse.md +9 -0
  112. data/docs/GetDocxPagesRequest.md +10 -0
  113. data/docs/GetDocxPagesResponse.md +10 -0
  114. data/docs/GetDocxSectionsRequest.md +9 -0
  115. data/docs/GetDocxSectionsResponse.md +9 -0
  116. data/docs/GetDocxStylesRequest.md +9 -0
  117. data/docs/GetDocxStylesResponse.md +9 -0
  118. data/docs/GetDocxTableByIndexRequest.md +10 -0
  119. data/docs/GetDocxTableByIndexResponse.md +9 -0
  120. data/docs/GetDocxTableRowRequest.md +11 -0
  121. data/docs/GetDocxTableRowResponse.md +9 -0
  122. data/docs/GetDocxTablesRequest.md +9 -0
  123. data/docs/GetDocxTablesResponse.md +9 -0
  124. data/docs/GetFileTypeIconResult.md +10 -0
  125. data/docs/GetImageInfoResult.md +24 -0
  126. data/docs/GetPdfAnnotationsResult.md +9 -0
  127. data/docs/GetXlsxCellByIdentifierRequest.md +11 -0
  128. data/docs/GetXlsxCellByIdentifierResponse.md +9 -0
  129. data/docs/GetXlsxCellRequest.md +12 -0
  130. data/docs/GetXlsxCellResponse.md +9 -0
  131. data/docs/GetXlsxColumnsRequest.md +10 -0
  132. data/docs/GetXlsxColumnsResponse.md +9 -0
  133. data/docs/GetXlsxImagesRequest.md +10 -0
  134. data/docs/GetXlsxImagesResponse.md +9 -0
  135. data/docs/GetXlsxRowsAndCellsRequest.md +10 -0
  136. data/docs/GetXlsxRowsAndCellsResponse.md +9 -0
  137. data/docs/GetXlsxSpecificRowRequest.md +11 -0
  138. data/docs/GetXlsxSpecificRowResponse.md +9 -0
  139. data/docs/GetXlsxStylesRequest.md +9 -0
  140. data/docs/GetXlsxStylesResponse.md +9 -0
  141. data/docs/GetXlsxWorksheetsRequest.md +9 -0
  142. data/docs/GetXlsxWorksheetsResponse.md +9 -0
  143. data/docs/HtmlMdResult.md +9 -0
  144. data/docs/HtmlTemplateApplicationRequest.md +10 -0
  145. data/docs/HtmlTemplateApplicationResponse.md +9 -0
  146. data/docs/HtmlTemplateOperation.md +10 -0
  147. data/docs/HtmlToOfficeRequest.md +8 -0
  148. data/docs/HtmlToPdfRequest.md +11 -0
  149. data/docs/HtmlToPngRequest.md +11 -0
  150. data/docs/HtmlToTextRequest.md +8 -0
  151. data/docs/HtmlToTextResponse.md +9 -0
  152. data/docs/InsertDocxCommentOnParagraphResponse.md +9 -0
  153. data/docs/InsertDocxInsertParagraphRequest.md +12 -0
  154. data/docs/InsertDocxInsertParagraphResponse.md +9 -0
  155. data/docs/InsertDocxTableRowRequest.md +12 -0
  156. data/docs/InsertDocxTableRowResponse.md +9 -0
  157. data/docs/InsertDocxTablesRequest.md +12 -0
  158. data/docs/InsertDocxTablesResponse.md +9 -0
  159. data/docs/InsertXlsxWorksheetRequest.md +10 -0
  160. data/docs/InsertXlsxWorksheetResponse.md +9 -0
  161. data/docs/KeynoteToJpgResult.md +9 -0
  162. data/docs/KeynoteToPngResult.md +9 -0
  163. data/docs/MergeDocumentApi.md +812 -0
  164. data/docs/MsgAttachment.md +9 -0
  165. data/docs/MsgToHtmlResult.md +16 -0
  166. data/docs/MsgToJpgResult.md +9 -0
  167. data/docs/MsgToPngResult.md +9 -0
  168. data/docs/MultiReplaceStringRequest.md +10 -0
  169. data/docs/MultipageImageFormatConversionResult.md +10 -0
  170. data/docs/OdpToJpgResult.md +9 -0
  171. data/docs/OdpToPngResult.md +9 -0
  172. data/docs/OdsToJpgResult.md +9 -0
  173. data/docs/OdsToPngResult.md +9 -0
  174. data/docs/OdtToJpgResult.md +9 -0
  175. data/docs/OdtToPngResult.md +9 -0
  176. data/docs/PageConversionResult.md +9 -0
  177. data/docs/PdfAnnotation.md +19 -0
  178. data/docs/PdfDocument.md +10 -0
  179. data/docs/PdfFormField.md +11 -0
  180. data/docs/PdfFormFields.md +9 -0
  181. data/docs/PdfMetadata.md +16 -0
  182. data/docs/PdfPageText.md +9 -0
  183. data/docs/PdfTextByPageResult.md +9 -0
  184. data/docs/PdfToJpgResult.md +9 -0
  185. data/docs/PdfToPngResult.md +9 -0
  186. data/docs/PptxToPngResult.md +9 -0
  187. data/docs/PresentationResult.md +10 -0
  188. data/docs/RemoveDocxHeadersAndFootersRequest.md +11 -0
  189. data/docs/RemoveDocxHeadersAndFootersResponse.md +9 -0
  190. data/docs/RemoveDocxPagesRequest.md +11 -0
  191. data/docs/RemoveHtmlFromTextRequest.md +8 -0
  192. data/docs/RemoveHtmlFromTextResponse.md +9 -0
  193. data/docs/RemovePptxSlidesRequest.md +11 -0
  194. data/docs/RemoveWhitespaceFromTextRequest.md +8 -0
  195. data/docs/RemoveWhitespaceFromTextResponse.md +9 -0
  196. data/docs/RemoveXlsxWorksheetRequest.md +10 -0
  197. data/docs/RenameXlsxWorksheetRequest.md +11 -0
  198. data/docs/RenameXlsxWorksheetResponse.md +9 -0
  199. data/docs/ReplaceDocxParagraphRequest.md +12 -0
  200. data/docs/ReplaceDocxParagraphResponse.md +9 -0
  201. data/docs/ReplaceStringRegexRequest.md +10 -0
  202. data/docs/ReplaceStringRegexResponse.md +9 -0
  203. data/docs/ReplaceStringRequest.md +12 -0
  204. data/docs/ReplaceStringSimpleRequest.md +10 -0
  205. data/docs/ReplaceStringSimpleResponse.md +9 -0
  206. data/docs/RtfToJpgResult.md +9 -0
  207. data/docs/RtfToPngResult.md +9 -0
  208. data/docs/ScreenshotRequest.md +11 -0
  209. data/docs/SetFormFieldValue.md +11 -0
  210. data/docs/SetPdfFormFieldsRequest.md +9 -0
  211. data/docs/SetPdfMetadataRequest.md +9 -0
  212. data/docs/SetXlsxCellByIdentifierRequest.md +12 -0
  213. data/docs/SetXlsxCellByIdentifierResponse.md +9 -0
  214. data/docs/SetXlsxCellRequest.md +13 -0
  215. data/docs/SetXlsxCellResponse.md +9 -0
  216. data/docs/SingleReplaceString.md +10 -0
  217. data/docs/SplitDocumentApi.md +361 -0
  218. data/docs/SplitDocumentResult.md +10 -0
  219. data/docs/SplitDocxDocumentResult.md +9 -0
  220. data/docs/SplitPdfResult.md +9 -0
  221. data/docs/SplitPptxPresentationResult.md +9 -0
  222. data/docs/SplitTextDocumentByLinesResult.md +10 -0
  223. data/docs/SplitTextDocumentByStringResult.md +10 -0
  224. data/docs/SplitXlsxWorksheetResult.md +9 -0
  225. data/docs/TextConversionResult.md +9 -0
  226. data/docs/TextDocumentElement.md +9 -0
  227. data/docs/TextDocumentLine.md +9 -0
  228. data/docs/TextEncodingDetectResponse.md +9 -0
  229. data/docs/Thumbnail.md +9 -0
  230. data/docs/TransformDocumentApi.md +140 -0
  231. data/docs/UpdateDocxTableCellRequest.md +13 -0
  232. data/docs/UpdateDocxTableCellResponse.md +9 -0
  233. data/docs/UpdateDocxTableRowRequest.md +12 -0
  234. data/docs/UpdateDocxTableRowResponse.md +9 -0
  235. data/docs/UrlToPdfRequest.md +11 -0
  236. data/docs/UrlToTextRequest.md +8 -0
  237. data/docs/UrlToTextResponse.md +9 -0
  238. data/docs/ValidateDocumentApi.md +998 -0
  239. data/docs/ViewerResponse.md +9 -0
  240. data/docs/ViewerToolsApi.md +69 -0
  241. data/docs/WorksheetResult.md +11 -0
  242. data/docs/XlsxImage.md +12 -0
  243. data/docs/XlsxSpreadsheetCell.md +12 -0
  244. data/docs/XlsxSpreadsheetColumn.md +9 -0
  245. data/docs/XlsxSpreadsheetRow.md +9 -0
  246. data/docs/XlsxToPngResult.md +9 -0
  247. data/docs/XlsxWorksheet.md +9 -0
  248. data/docs/XmlAddAttributeWithXPathResult.md +10 -0
  249. data/docs/XmlAddChildWithXPathResult.md +10 -0
  250. data/docs/XmlFilterWithXPathResult.md +10 -0
  251. data/docs/XmlQueryWithXQueryMultiResult.md +10 -0
  252. data/docs/XmlQueryWithXQueryResult.md +10 -0
  253. data/docs/XmlRemoveAllChildrenWithXPathResult.md +10 -0
  254. data/docs/XmlRemoveWithXPathResult.md +11 -0
  255. data/docs/XmlReplaceWithXPathResult.md +10 -0
  256. data/docs/XmlSetValueWithXPathResult.md +10 -0
  257. data/docs/ZipArchiveApi.md +386 -0
  258. data/docs/ZipDirectory.md +10 -0
  259. data/docs/ZipEncryptionAdvancedRequest.md +10 -0
  260. data/docs/ZipExtractResponse.md +10 -0
  261. data/docs/ZipFile.md +9 -0
  262. data/git_push.sh +55 -0
  263. data/lib/cloudmersive-convert-api-client.rb +295 -0
  264. data/lib/cloudmersive-convert-api-client/api/compare_document_api.rb +85 -0
  265. data/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +1079 -0
  266. data/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +4516 -0
  267. data/lib/cloudmersive-convert-api-client/api/convert_image_api.rb +273 -0
  268. data/lib/cloudmersive-convert-api-client/api/convert_template_api.rb +135 -0
  269. data/lib/cloudmersive-convert-api-client/api/convert_web_api.rb +456 -0
  270. data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +3214 -0
  271. data/lib/cloudmersive-convert-api-client/api/edit_html_api.rb +339 -0
  272. data/lib/cloudmersive-convert-api-client/api/edit_pdf_api.rb +1393 -0
  273. data/lib/cloudmersive-convert-api-client/api/edit_text_api.rb +735 -0
  274. data/lib/cloudmersive-convert-api-client/api/merge_document_api.rb +911 -0
  275. data/lib/cloudmersive-convert-api-client/api/split_document_api.rb +375 -0
  276. data/lib/cloudmersive-convert-api-client/api/transform_document_api.rb +161 -0
  277. data/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +1013 -0
  278. data/lib/cloudmersive-convert-api-client/api/viewer_tools_api.rb +84 -0
  279. data/lib/cloudmersive-convert-api-client/api/zip_archive_api.rb +422 -0
  280. data/lib/cloudmersive-convert-api-client/api_client.rb +391 -0
  281. data/lib/cloudmersive-convert-api-client/api_error.rb +38 -0
  282. data/lib/cloudmersive-convert-api-client/configuration.rb +209 -0
  283. data/lib/cloudmersive-convert-api-client/models/add_pdf_annotation_request.rb +213 -0
  284. data/lib/cloudmersive-convert-api-client/models/alternate_file_format_candidate.rb +206 -0
  285. data/lib/cloudmersive-convert-api-client/models/append_xlsx_row_request.rb +231 -0
  286. data/lib/cloudmersive-convert-api-client/models/append_xlsx_row_response.rb +196 -0
  287. data/lib/cloudmersive-convert-api-client/models/autodetect_document_validation_result.rb +227 -0
  288. data/lib/cloudmersive-convert-api-client/models/autodetect_get_info_result.rb +248 -0
  289. data/lib/cloudmersive-convert-api-client/models/autodetect_to_jpg_result.rb +198 -0
  290. data/lib/cloudmersive-convert-api-client/models/autodetect_to_png_result.rb +198 -0
  291. data/lib/cloudmersive-convert-api-client/models/autodetect_to_thumbnails_result.rb +198 -0
  292. data/lib/cloudmersive-convert-api-client/models/base64_decode_request.rb +186 -0
  293. data/lib/cloudmersive-convert-api-client/models/base64_decode_response.rb +211 -0
  294. data/lib/cloudmersive-convert-api-client/models/base64_detect_request.rb +186 -0
  295. data/lib/cloudmersive-convert-api-client/models/base64_detect_response.rb +196 -0
  296. data/lib/cloudmersive-convert-api-client/models/base64_encode_request.rb +201 -0
  297. data/lib/cloudmersive-convert-api-client/models/base64_encode_response.rb +196 -0
  298. data/lib/cloudmersive-convert-api-client/models/change_line_ending_response.rb +196 -0
  299. data/lib/cloudmersive-convert-api-client/models/clear_xlsx_cell_request.rb +241 -0
  300. data/lib/cloudmersive-convert-api-client/models/clear_xlsx_cell_response.rb +196 -0
  301. data/lib/cloudmersive-convert-api-client/models/clear_xlsx_row_request.rb +231 -0
  302. data/lib/cloudmersive-convert-api-client/models/clear_xlsx_row_response.rb +196 -0
  303. data/lib/cloudmersive-convert-api-client/models/converted_jpg_page.rb +211 -0
  304. data/lib/cloudmersive-convert-api-client/models/converted_png_page.rb +196 -0
  305. data/lib/cloudmersive-convert-api-client/models/create_blank_docx_request.rb +186 -0
  306. data/lib/cloudmersive-convert-api-client/models/create_blank_docx_response.rb +196 -0
  307. data/lib/cloudmersive-convert-api-client/models/create_blank_spreadsheet_request.rb +186 -0
  308. data/lib/cloudmersive-convert-api-client/models/create_blank_spreadsheet_response.rb +196 -0
  309. data/lib/cloudmersive-convert-api-client/models/create_spreadsheet_from_data_request.rb +198 -0
  310. data/lib/cloudmersive-convert-api-client/models/create_spreadsheet_from_data_response.rb +196 -0
  311. data/lib/cloudmersive-convert-api-client/models/create_zip_archive_request.rb +200 -0
  312. data/lib/cloudmersive-convert-api-client/models/csv_collection.rb +208 -0
  313. data/lib/cloudmersive-convert-api-client/models/csv_file_result.rb +211 -0
  314. data/lib/cloudmersive-convert-api-client/models/delete_docx_table_row_range_request.rb +241 -0
  315. data/lib/cloudmersive-convert-api-client/models/delete_docx_table_row_range_response.rb +196 -0
  316. data/lib/cloudmersive-convert-api-client/models/delete_docx_table_row_request.rb +231 -0
  317. data/lib/cloudmersive-convert-api-client/models/delete_docx_table_row_response.rb +196 -0
  318. data/lib/cloudmersive-convert-api-client/models/detect_line_endings_response.rb +216 -0
  319. data/lib/cloudmersive-convert-api-client/models/disable_shared_workbook_request.rb +211 -0
  320. data/lib/cloudmersive-convert-api-client/models/disable_shared_workbook_response.rb +196 -0
  321. data/lib/cloudmersive-convert-api-client/models/document_validation_error.rb +216 -0
  322. data/lib/cloudmersive-convert-api-client/models/document_validation_result.rb +228 -0
  323. data/lib/cloudmersive-convert-api-client/models/docx_body.rb +209 -0
  324. data/lib/cloudmersive-convert-api-client/models/docx_cell_style.rb +216 -0
  325. data/lib/cloudmersive-convert-api-client/models/docx_comment.rb +266 -0
  326. data/lib/cloudmersive-convert-api-client/models/docx_footer.rb +210 -0
  327. data/lib/cloudmersive-convert-api-client/models/docx_header.rb +210 -0
  328. data/lib/cloudmersive-convert-api-client/models/docx_image.rb +305 -0
  329. data/lib/cloudmersive-convert-api-client/models/docx_insert_comment_on_paragraph_request.rb +231 -0
  330. data/lib/cloudmersive-convert-api-client/models/docx_insert_image_request.rb +296 -0
  331. data/lib/cloudmersive-convert-api-client/models/docx_insert_image_response.rb +196 -0
  332. data/lib/cloudmersive-convert-api-client/models/docx_page.rb +198 -0
  333. data/lib/cloudmersive-convert-api-client/models/docx_paragraph.rb +218 -0
  334. data/lib/cloudmersive-convert-api-client/models/docx_remove_object_request.rb +221 -0
  335. data/lib/cloudmersive-convert-api-client/models/docx_remove_object_response.rb +196 -0
  336. data/lib/cloudmersive-convert-api-client/models/docx_run.rb +258 -0
  337. data/lib/cloudmersive-convert-api-client/models/docx_section.rb +198 -0
  338. data/lib/cloudmersive-convert-api-client/models/docx_set_footer_add_page_number_request.rb +221 -0
  339. data/lib/cloudmersive-convert-api-client/models/docx_set_footer_request.rb +221 -0
  340. data/lib/cloudmersive-convert-api-client/models/docx_set_footer_response.rb +196 -0
  341. data/lib/cloudmersive-convert-api-client/models/docx_set_header_request.rb +221 -0
  342. data/lib/cloudmersive-convert-api-client/models/docx_set_header_response.rb +196 -0
  343. data/lib/cloudmersive-convert-api-client/models/docx_style.rb +246 -0
  344. data/lib/cloudmersive-convert-api-client/models/docx_table.rb +568 -0
  345. data/lib/cloudmersive-convert-api-client/models/docx_table_cell.rb +258 -0
  346. data/lib/cloudmersive-convert-api-client/models/docx_table_row.rb +208 -0
  347. data/lib/cloudmersive-convert-api-client/models/docx_template_application_request.rb +188 -0
  348. data/lib/cloudmersive-convert-api-client/models/docx_template_operation.rb +239 -0
  349. data/lib/cloudmersive-convert-api-client/models/docx_text.rb +206 -0
  350. data/lib/cloudmersive-convert-api-client/models/docx_to_jpg_result.rb +198 -0
  351. data/lib/cloudmersive-convert-api-client/models/docx_to_png_result.rb +198 -0
  352. data/lib/cloudmersive-convert-api-client/models/docx_top_level_comment.rb +248 -0
  353. data/lib/cloudmersive-convert-api-client/models/eml_attachment.rb +211 -0
  354. data/lib/cloudmersive-convert-api-client/models/eml_to_html_result.rb +268 -0
  355. data/lib/cloudmersive-convert-api-client/models/eml_to_jpg_result.rb +198 -0
  356. data/lib/cloudmersive-convert-api-client/models/eml_to_png_result.rb +198 -0
  357. data/lib/cloudmersive-convert-api-client/models/enable_shared_workbook_request.rb +211 -0
  358. data/lib/cloudmersive-convert-api-client/models/enable_shared_workbook_response.rb +196 -0
  359. data/lib/cloudmersive-convert-api-client/models/exif_value.rb +206 -0
  360. data/lib/cloudmersive-convert-api-client/models/find_docx_paragraph_request.rb +231 -0
  361. data/lib/cloudmersive-convert-api-client/models/find_docx_paragraph_response.rb +208 -0
  362. data/lib/cloudmersive-convert-api-client/models/find_regex_match.rb +228 -0
  363. data/lib/cloudmersive-convert-api-client/models/find_string_match.rb +206 -0
  364. data/lib/cloudmersive-convert-api-client/models/find_string_regex_request.rb +206 -0
  365. data/lib/cloudmersive-convert-api-client/models/find_string_regex_response.rb +208 -0
  366. data/lib/cloudmersive-convert-api-client/models/find_string_simple_request.rb +196 -0
  367. data/lib/cloudmersive-convert-api-client/models/find_string_simple_response.rb +208 -0
  368. data/lib/cloudmersive-convert-api-client/models/finish_editing_request.rb +186 -0
  369. data/lib/cloudmersive-convert-api-client/models/get_docx_body_request.rb +211 -0
  370. data/lib/cloudmersive-convert-api-client/models/get_docx_body_response.rb +196 -0
  371. data/lib/cloudmersive-convert-api-client/models/get_docx_comments_hierarchical_response.rb +208 -0
  372. data/lib/cloudmersive-convert-api-client/models/get_docx_comments_response.rb +208 -0
  373. data/lib/cloudmersive-convert-api-client/models/get_docx_get_comments_hierarchical_request.rb +211 -0
  374. data/lib/cloudmersive-convert-api-client/models/get_docx_get_comments_request.rb +211 -0
  375. data/lib/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_request.rb +211 -0
  376. data/lib/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_response.rb +208 -0
  377. data/lib/cloudmersive-convert-api-client/models/get_docx_images_request.rb +211 -0
  378. data/lib/cloudmersive-convert-api-client/models/get_docx_images_response.rb +198 -0
  379. data/lib/cloudmersive-convert-api-client/models/get_docx_pages_request.rb +221 -0
  380. data/lib/cloudmersive-convert-api-client/models/get_docx_pages_response.rb +208 -0
  381. data/lib/cloudmersive-convert-api-client/models/get_docx_sections_request.rb +211 -0
  382. data/lib/cloudmersive-convert-api-client/models/get_docx_sections_response.rb +198 -0
  383. data/lib/cloudmersive-convert-api-client/models/get_docx_styles_request.rb +211 -0
  384. data/lib/cloudmersive-convert-api-client/models/get_docx_styles_response.rb +198 -0
  385. data/lib/cloudmersive-convert-api-client/models/get_docx_table_by_index_request.rb +221 -0
  386. data/lib/cloudmersive-convert-api-client/models/get_docx_table_by_index_response.rb +196 -0
  387. data/lib/cloudmersive-convert-api-client/models/get_docx_table_row_request.rb +231 -0
  388. data/lib/cloudmersive-convert-api-client/models/get_docx_table_row_response.rb +196 -0
  389. data/lib/cloudmersive-convert-api-client/models/get_docx_tables_request.rb +211 -0
  390. data/lib/cloudmersive-convert-api-client/models/get_docx_tables_response.rb +198 -0
  391. data/lib/cloudmersive-convert-api-client/models/get_file_type_icon_result.rb +221 -0
  392. data/lib/cloudmersive-convert-api-client/models/get_image_info_result.rb +347 -0
  393. data/lib/cloudmersive-convert-api-client/models/get_pdf_annotations_result.rb +198 -0
  394. data/lib/cloudmersive-convert-api-client/models/get_xlsx_cell_by_identifier_request.rb +231 -0
  395. data/lib/cloudmersive-convert-api-client/models/get_xlsx_cell_by_identifier_response.rb +196 -0
  396. data/lib/cloudmersive-convert-api-client/models/get_xlsx_cell_request.rb +241 -0
  397. data/lib/cloudmersive-convert-api-client/models/get_xlsx_cell_response.rb +196 -0
  398. data/lib/cloudmersive-convert-api-client/models/get_xlsx_columns_request.rb +221 -0
  399. data/lib/cloudmersive-convert-api-client/models/get_xlsx_columns_response.rb +198 -0
  400. data/lib/cloudmersive-convert-api-client/models/get_xlsx_images_request.rb +221 -0
  401. data/lib/cloudmersive-convert-api-client/models/get_xlsx_images_response.rb +198 -0
  402. data/lib/cloudmersive-convert-api-client/models/get_xlsx_rows_and_cells_request.rb +221 -0
  403. data/lib/cloudmersive-convert-api-client/models/get_xlsx_rows_and_cells_response.rb +198 -0
  404. data/lib/cloudmersive-convert-api-client/models/get_xlsx_specific_row_request.rb +231 -0
  405. data/lib/cloudmersive-convert-api-client/models/get_xlsx_specific_row_response.rb +196 -0
  406. data/lib/cloudmersive-convert-api-client/models/get_xlsx_styles_request.rb +211 -0
  407. data/lib/cloudmersive-convert-api-client/models/get_xlsx_styles_response.rb +198 -0
  408. data/lib/cloudmersive-convert-api-client/models/get_xlsx_worksheets_request.rb +211 -0
  409. data/lib/cloudmersive-convert-api-client/models/get_xlsx_worksheets_response.rb +198 -0
  410. data/lib/cloudmersive-convert-api-client/models/html_md_result.rb +196 -0
  411. data/lib/cloudmersive-convert-api-client/models/html_template_application_request.rb +208 -0
  412. data/lib/cloudmersive-convert-api-client/models/html_template_application_response.rb +196 -0
  413. data/lib/cloudmersive-convert-api-client/models/html_template_operation.rb +239 -0
  414. data/lib/cloudmersive-convert-api-client/models/html_to_office_request.rb +186 -0
  415. data/lib/cloudmersive-convert-api-client/models/html_to_pdf_request.rb +216 -0
  416. data/lib/cloudmersive-convert-api-client/models/html_to_png_request.rb +216 -0
  417. data/lib/cloudmersive-convert-api-client/models/html_to_text_request.rb +186 -0
  418. data/lib/cloudmersive-convert-api-client/models/html_to_text_response.rb +196 -0
  419. data/lib/cloudmersive-convert-api-client/models/insert_docx_comment_on_paragraph_response.rb +196 -0
  420. data/lib/cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_request.rb +241 -0
  421. data/lib/cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_response.rb +196 -0
  422. data/lib/cloudmersive-convert-api-client/models/insert_docx_table_row_request.rb +241 -0
  423. data/lib/cloudmersive-convert-api-client/models/insert_docx_table_row_response.rb +196 -0
  424. data/lib/cloudmersive-convert-api-client/models/insert_docx_tables_request.rb +241 -0
  425. data/lib/cloudmersive-convert-api-client/models/insert_docx_tables_response.rb +196 -0
  426. data/lib/cloudmersive-convert-api-client/models/insert_xlsx_worksheet_request.rb +221 -0
  427. data/lib/cloudmersive-convert-api-client/models/insert_xlsx_worksheet_response.rb +196 -0
  428. data/lib/cloudmersive-convert-api-client/models/keynote_to_jpg_result.rb +198 -0
  429. data/lib/cloudmersive-convert-api-client/models/keynote_to_png_result.rb +198 -0
  430. data/lib/cloudmersive-convert-api-client/models/msg_attachment.rb +211 -0
  431. data/lib/cloudmersive-convert-api-client/models/msg_to_html_result.rb +268 -0
  432. data/lib/cloudmersive-convert-api-client/models/msg_to_jpg_result.rb +198 -0
  433. data/lib/cloudmersive-convert-api-client/models/msg_to_png_result.rb +198 -0
  434. data/lib/cloudmersive-convert-api-client/models/multi_replace_string_request.rb +223 -0
  435. data/lib/cloudmersive-convert-api-client/models/multipage_image_format_conversion_result.rb +208 -0
  436. data/lib/cloudmersive-convert-api-client/models/odp_to_jpg_result.rb +198 -0
  437. data/lib/cloudmersive-convert-api-client/models/odp_to_png_result.rb +198 -0
  438. data/lib/cloudmersive-convert-api-client/models/ods_to_jpg_result.rb +198 -0
  439. data/lib/cloudmersive-convert-api-client/models/ods_to_png_result.rb +198 -0
  440. data/lib/cloudmersive-convert-api-client/models/odt_to_jpg_result.rb +198 -0
  441. data/lib/cloudmersive-convert-api-client/models/odt_to_png_result.rb +198 -0
  442. data/lib/cloudmersive-convert-api-client/models/page_conversion_result.rb +211 -0
  443. data/lib/cloudmersive-convert-api-client/models/pdf_annotation.rb +296 -0
  444. data/lib/cloudmersive-convert-api-client/models/pdf_document.rb +221 -0
  445. data/lib/cloudmersive-convert-api-client/models/pdf_form_field.rb +216 -0
  446. data/lib/cloudmersive-convert-api-client/models/pdf_form_fields.rb +198 -0
  447. data/lib/cloudmersive-convert-api-client/models/pdf_metadata.rb +266 -0
  448. data/lib/cloudmersive-convert-api-client/models/pdf_page_text.rb +196 -0
  449. data/lib/cloudmersive-convert-api-client/models/pdf_text_by_page_result.rb +198 -0
  450. data/lib/cloudmersive-convert-api-client/models/pdf_to_jpg_result.rb +198 -0
  451. data/lib/cloudmersive-convert-api-client/models/pdf_to_png_result.rb +198 -0
  452. data/lib/cloudmersive-convert-api-client/models/pptx_to_png_result.rb +198 -0
  453. data/lib/cloudmersive-convert-api-client/models/presentation_result.rb +221 -0
  454. data/lib/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_request.rb +231 -0
  455. data/lib/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_response.rb +196 -0
  456. data/lib/cloudmersive-convert-api-client/models/remove_docx_pages_request.rb +231 -0
  457. data/lib/cloudmersive-convert-api-client/models/remove_html_from_text_request.rb +186 -0
  458. data/lib/cloudmersive-convert-api-client/models/remove_html_from_text_response.rb +196 -0
  459. data/lib/cloudmersive-convert-api-client/models/remove_pptx_slides_request.rb +231 -0
  460. data/lib/cloudmersive-convert-api-client/models/remove_whitespace_from_text_request.rb +186 -0
  461. data/lib/cloudmersive-convert-api-client/models/remove_whitespace_from_text_response.rb +196 -0
  462. data/lib/cloudmersive-convert-api-client/models/remove_xlsx_worksheet_request.rb +221 -0
  463. data/lib/cloudmersive-convert-api-client/models/rename_xlsx_worksheet_request.rb +231 -0
  464. data/lib/cloudmersive-convert-api-client/models/rename_xlsx_worksheet_response.rb +196 -0
  465. data/lib/cloudmersive-convert-api-client/models/replace_docx_paragraph_request.rb +241 -0
  466. data/lib/cloudmersive-convert-api-client/models/replace_docx_paragraph_response.rb +196 -0
  467. data/lib/cloudmersive-convert-api-client/models/replace_string_regex_request.rb +206 -0
  468. data/lib/cloudmersive-convert-api-client/models/replace_string_regex_response.rb +196 -0
  469. data/lib/cloudmersive-convert-api-client/models/replace_string_request.rb +241 -0
  470. data/lib/cloudmersive-convert-api-client/models/replace_string_simple_request.rb +206 -0
  471. data/lib/cloudmersive-convert-api-client/models/replace_string_simple_response.rb +196 -0
  472. data/lib/cloudmersive-convert-api-client/models/rtf_to_jpg_result.rb +198 -0
  473. data/lib/cloudmersive-convert-api-client/models/rtf_to_png_result.rb +198 -0
  474. data/lib/cloudmersive-convert-api-client/models/screenshot_request.rb +216 -0
  475. data/lib/cloudmersive-convert-api-client/models/set_form_field_value.rb +216 -0
  476. data/lib/cloudmersive-convert-api-client/models/set_pdf_form_fields_request.rb +213 -0
  477. data/lib/cloudmersive-convert-api-client/models/set_pdf_metadata_request.rb +211 -0
  478. data/lib/cloudmersive-convert-api-client/models/set_xlsx_cell_by_identifier_request.rb +241 -0
  479. data/lib/cloudmersive-convert-api-client/models/set_xlsx_cell_by_identifier_response.rb +196 -0
  480. data/lib/cloudmersive-convert-api-client/models/set_xlsx_cell_request.rb +251 -0
  481. data/lib/cloudmersive-convert-api-client/models/set_xlsx_cell_response.rb +196 -0
  482. data/lib/cloudmersive-convert-api-client/models/single_replace_string.rb +206 -0
  483. data/lib/cloudmersive-convert-api-client/models/split_document_result.rb +221 -0
  484. data/lib/cloudmersive-convert-api-client/models/split_docx_document_result.rb +197 -0
  485. data/lib/cloudmersive-convert-api-client/models/split_pdf_result.rb +198 -0
  486. data/lib/cloudmersive-convert-api-client/models/split_pptx_presentation_result.rb +197 -0
  487. data/lib/cloudmersive-convert-api-client/models/split_text_document_by_lines_result.rb +207 -0
  488. data/lib/cloudmersive-convert-api-client/models/split_text_document_by_string_result.rb +207 -0
  489. data/lib/cloudmersive-convert-api-client/models/split_xlsx_worksheet_result.rb +197 -0
  490. data/lib/cloudmersive-convert-api-client/models/text_conversion_result.rb +196 -0
  491. data/lib/cloudmersive-convert-api-client/models/text_document_element.rb +196 -0
  492. data/lib/cloudmersive-convert-api-client/models/text_document_line.rb +196 -0
  493. data/lib/cloudmersive-convert-api-client/models/text_encoding_detect_response.rb +196 -0
  494. data/lib/cloudmersive-convert-api-client/models/thumbnail.rb +211 -0
  495. data/lib/cloudmersive-convert-api-client/models/update_docx_table_cell_request.rb +251 -0
  496. data/lib/cloudmersive-convert-api-client/models/update_docx_table_cell_response.rb +196 -0
  497. data/lib/cloudmersive-convert-api-client/models/update_docx_table_row_request.rb +241 -0
  498. data/lib/cloudmersive-convert-api-client/models/update_docx_table_row_response.rb +196 -0
  499. data/lib/cloudmersive-convert-api-client/models/url_to_pdf_request.rb +216 -0
  500. data/lib/cloudmersive-convert-api-client/models/url_to_text_request.rb +186 -0
  501. data/lib/cloudmersive-convert-api-client/models/url_to_text_response.rb +196 -0
  502. data/lib/cloudmersive-convert-api-client/models/viewer_response.rb +194 -0
  503. data/lib/cloudmersive-convert-api-client/models/worksheet_result.rb +231 -0
  504. data/lib/cloudmersive-convert-api-client/models/xlsx_image.rb +225 -0
  505. data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_cell.rb +225 -0
  506. data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_column.rb +196 -0
  507. data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_row.rb +198 -0
  508. data/lib/cloudmersive-convert-api-client/models/xlsx_to_png_result.rb +198 -0
  509. data/lib/cloudmersive-convert-api-client/models/xlsx_worksheet.rb +196 -0
  510. data/lib/cloudmersive-convert-api-client/models/xml_add_attribute_with_x_path_result.rb +206 -0
  511. data/lib/cloudmersive-convert-api-client/models/xml_add_child_with_x_path_result.rb +206 -0
  512. data/lib/cloudmersive-convert-api-client/models/xml_filter_with_x_path_result.rb +208 -0
  513. data/lib/cloudmersive-convert-api-client/models/xml_query_with_x_query_multi_result.rb +206 -0
  514. data/lib/cloudmersive-convert-api-client/models/xml_query_with_x_query_result.rb +206 -0
  515. data/lib/cloudmersive-convert-api-client/models/xml_remove_all_children_with_x_path_result.rb +206 -0
  516. data/lib/cloudmersive-convert-api-client/models/xml_remove_with_x_path_result.rb +218 -0
  517. data/lib/cloudmersive-convert-api-client/models/xml_replace_with_x_path_result.rb +206 -0
  518. data/lib/cloudmersive-convert-api-client/models/xml_set_value_with_x_path_result.rb +206 -0
  519. data/lib/cloudmersive-convert-api-client/models/zip_directory.rb +210 -0
  520. data/lib/cloudmersive-convert-api-client/models/zip_encryption_advanced_request.rb +221 -0
  521. data/lib/cloudmersive-convert-api-client/models/zip_extract_response.rb +210 -0
  522. data/lib/cloudmersive-convert-api-client/models/zip_file.rb +211 -0
  523. data/lib/cloudmersive-convert-api-client/version.rb +15 -0
  524. data/spec/api/compare_document_api_spec.rb +48 -0
  525. data/spec/api/convert_data_api_spec.rb +265 -0
  526. data/spec/api/convert_document_api_spec.rb +1033 -0
  527. data/spec/api/convert_image_api_spec.rb +88 -0
  528. data/spec/api/convert_template_api_spec.rb +60 -0
  529. data/spec/api/convert_web_api_spec.rb +131 -0
  530. data/spec/api/edit_document_api_spec.rb +743 -0
  531. data/spec/api/edit_html_api_spec.rb +114 -0
  532. data/spec/api/edit_pdf_api_spec.rb +332 -0
  533. data/spec/api/edit_text_api_spec.rb +192 -0
  534. data/spec/api/merge_document_api_spec.rb +239 -0
  535. data/spec/api/split_document_api_spec.rb +113 -0
  536. data/spec/api/transform_document_api_spec.rb +67 -0
  537. data/spec/api/validate_document_api_spec.rb +251 -0
  538. data/spec/api/viewer_tools_api_spec.rb +49 -0
  539. data/spec/api/zip_archive_api_spec.rb +128 -0
  540. data/spec/api_client_spec.rb +243 -0
  541. data/spec/configuration_spec.rb +42 -0
  542. data/spec/models/add_pdf_annotation_request_spec.rb +47 -0
  543. data/spec/models/alternate_file_format_candidate_spec.rb +53 -0
  544. data/spec/models/append_xlsx_row_request_spec.rb +59 -0
  545. data/spec/models/append_xlsx_row_response_spec.rb +47 -0
  546. data/spec/models/autodetect_document_validation_result_spec.rb +65 -0
  547. data/spec/models/autodetect_get_info_result_spec.rb +77 -0
  548. data/spec/models/autodetect_to_jpg_result_spec.rb +47 -0
  549. data/spec/models/autodetect_to_png_result_spec.rb +47 -0
  550. data/spec/models/autodetect_to_thumbnails_result_spec.rb +47 -0
  551. data/spec/models/base64_decode_request_spec.rb +41 -0
  552. data/spec/models/base64_decode_response_spec.rb +47 -0
  553. data/spec/models/base64_detect_request_spec.rb +41 -0
  554. data/spec/models/base64_detect_response_spec.rb +47 -0
  555. data/spec/models/base64_encode_request_spec.rb +41 -0
  556. data/spec/models/base64_encode_response_spec.rb +47 -0
  557. data/spec/models/change_line_ending_response_spec.rb +47 -0
  558. data/spec/models/clear_xlsx_cell_request_spec.rb +65 -0
  559. data/spec/models/clear_xlsx_cell_response_spec.rb +47 -0
  560. data/spec/models/clear_xlsx_row_request_spec.rb +59 -0
  561. data/spec/models/clear_xlsx_row_response_spec.rb +47 -0
  562. data/spec/models/converted_jpg_page_spec.rb +47 -0
  563. data/spec/models/converted_png_page_spec.rb +47 -0
  564. data/spec/models/create_blank_docx_request_spec.rb +41 -0
  565. data/spec/models/create_blank_docx_response_spec.rb +47 -0
  566. data/spec/models/create_blank_spreadsheet_request_spec.rb +41 -0
  567. data/spec/models/create_blank_spreadsheet_response_spec.rb +47 -0
  568. data/spec/models/create_spreadsheet_from_data_request_spec.rb +47 -0
  569. data/spec/models/create_spreadsheet_from_data_response_spec.rb +47 -0
  570. data/spec/models/create_zip_archive_request_spec.rb +47 -0
  571. data/spec/models/csv_collection_spec.rb +53 -0
  572. data/spec/models/csv_file_result_spec.rb +47 -0
  573. data/spec/models/delete_docx_table_row_range_request_spec.rb +65 -0
  574. data/spec/models/delete_docx_table_row_range_response_spec.rb +47 -0
  575. data/spec/models/delete_docx_table_row_request_spec.rb +59 -0
  576. data/spec/models/delete_docx_table_row_response_spec.rb +47 -0
  577. data/spec/models/detect_line_endings_response_spec.rb +59 -0
  578. data/spec/models/disable_shared_workbook_request_spec.rb +47 -0
  579. data/spec/models/disable_shared_workbook_response_spec.rb +47 -0
  580. data/spec/models/document_validation_error_spec.rb +59 -0
  581. data/spec/models/document_validation_result_spec.rb +65 -0
  582. data/spec/models/docx_body_spec.rb +53 -0
  583. data/spec/models/docx_cell_style_spec.rb +59 -0
  584. data/spec/models/docx_comment_spec.rb +89 -0
  585. data/spec/models/docx_footer_spec.rb +53 -0
  586. data/spec/models/docx_header_spec.rb +53 -0
  587. data/spec/models/docx_image_spec.rb +113 -0
  588. data/spec/models/docx_insert_comment_on_paragraph_request_spec.rb +59 -0
  589. data/spec/models/docx_insert_image_request_spec.rb +89 -0
  590. data/spec/models/docx_insert_image_response_spec.rb +47 -0
  591. data/spec/models/docx_page_spec.rb +47 -0
  592. data/spec/models/docx_paragraph_spec.rb +59 -0
  593. data/spec/models/docx_remove_object_request_spec.rb +53 -0
  594. data/spec/models/docx_remove_object_response_spec.rb +47 -0
  595. data/spec/models/docx_run_spec.rb +83 -0
  596. data/spec/models/docx_section_spec.rb +47 -0
  597. data/spec/models/docx_set_footer_add_page_number_request_spec.rb +53 -0
  598. data/spec/models/docx_set_footer_request_spec.rb +53 -0
  599. data/spec/models/docx_set_footer_response_spec.rb +47 -0
  600. data/spec/models/docx_set_header_request_spec.rb +53 -0
  601. data/spec/models/docx_set_header_response_spec.rb +47 -0
  602. data/spec/models/docx_style_spec.rb +77 -0
  603. data/spec/models/docx_table_cell_spec.rb +83 -0
  604. data/spec/models/docx_table_row_spec.rb +53 -0
  605. data/spec/models/docx_table_spec.rb +269 -0
  606. data/spec/models/docx_template_application_request_spec.rb +41 -0
  607. data/spec/models/docx_template_operation_spec.rb +57 -0
  608. data/spec/models/docx_text_spec.rb +53 -0
  609. data/spec/models/docx_to_jpg_result_spec.rb +47 -0
  610. data/spec/models/docx_to_png_result_spec.rb +47 -0
  611. data/spec/models/docx_top_level_comment_spec.rb +77 -0
  612. data/spec/models/eml_attachment_spec.rb +47 -0
  613. data/spec/models/eml_to_html_result_spec.rb +89 -0
  614. data/spec/models/eml_to_jpg_result_spec.rb +47 -0
  615. data/spec/models/eml_to_png_result_spec.rb +47 -0
  616. data/spec/models/enable_shared_workbook_request_spec.rb +47 -0
  617. data/spec/models/enable_shared_workbook_response_spec.rb +47 -0
  618. data/spec/models/exif_value_spec.rb +53 -0
  619. data/spec/models/find_docx_paragraph_request_spec.rb +59 -0
  620. data/spec/models/find_docx_paragraph_response_spec.rb +53 -0
  621. data/spec/models/find_regex_match_spec.rb +65 -0
  622. data/spec/models/find_string_match_spec.rb +53 -0
  623. data/spec/models/find_string_regex_request_spec.rb +53 -0
  624. data/spec/models/find_string_regex_response_spec.rb +53 -0
  625. data/spec/models/find_string_simple_request_spec.rb +47 -0
  626. data/spec/models/find_string_simple_response_spec.rb +53 -0
  627. data/spec/models/finish_editing_request_spec.rb +41 -0
  628. data/spec/models/get_docx_body_request_spec.rb +47 -0
  629. data/spec/models/get_docx_body_response_spec.rb +47 -0
  630. data/spec/models/get_docx_comments_hierarchical_response_spec.rb +53 -0
  631. data/spec/models/get_docx_comments_response_spec.rb +53 -0
  632. data/spec/models/get_docx_get_comments_hierarchical_request_spec.rb +47 -0
  633. data/spec/models/get_docx_get_comments_request_spec.rb +47 -0
  634. data/spec/models/get_docx_headers_and_footers_request_spec.rb +47 -0
  635. data/spec/models/get_docx_headers_and_footers_response_spec.rb +53 -0
  636. data/spec/models/get_docx_images_request_spec.rb +47 -0
  637. data/spec/models/get_docx_images_response_spec.rb +47 -0
  638. data/spec/models/get_docx_pages_request_spec.rb +53 -0
  639. data/spec/models/get_docx_pages_response_spec.rb +53 -0
  640. data/spec/models/get_docx_sections_request_spec.rb +47 -0
  641. data/spec/models/get_docx_sections_response_spec.rb +47 -0
  642. data/spec/models/get_docx_styles_request_spec.rb +47 -0
  643. data/spec/models/get_docx_styles_response_spec.rb +47 -0
  644. data/spec/models/get_docx_table_by_index_request_spec.rb +53 -0
  645. data/spec/models/get_docx_table_by_index_response_spec.rb +47 -0
  646. data/spec/models/get_docx_table_row_request_spec.rb +59 -0
  647. data/spec/models/get_docx_table_row_response_spec.rb +47 -0
  648. data/spec/models/get_docx_tables_request_spec.rb +47 -0
  649. data/spec/models/get_docx_tables_response_spec.rb +47 -0
  650. data/spec/models/get_file_type_icon_result_spec.rb +53 -0
  651. data/spec/models/get_image_info_result_spec.rb +137 -0
  652. data/spec/models/get_pdf_annotations_result_spec.rb +47 -0
  653. data/spec/models/get_xlsx_cell_by_identifier_request_spec.rb +59 -0
  654. data/spec/models/get_xlsx_cell_by_identifier_response_spec.rb +47 -0
  655. data/spec/models/get_xlsx_cell_request_spec.rb +65 -0
  656. data/spec/models/get_xlsx_cell_response_spec.rb +47 -0
  657. data/spec/models/get_xlsx_columns_request_spec.rb +53 -0
  658. data/spec/models/get_xlsx_columns_response_spec.rb +47 -0
  659. data/spec/models/get_xlsx_images_request_spec.rb +53 -0
  660. data/spec/models/get_xlsx_images_response_spec.rb +47 -0
  661. data/spec/models/get_xlsx_rows_and_cells_request_spec.rb +53 -0
  662. data/spec/models/get_xlsx_rows_and_cells_response_spec.rb +47 -0
  663. data/spec/models/get_xlsx_specific_row_request_spec.rb +59 -0
  664. data/spec/models/get_xlsx_specific_row_response_spec.rb +47 -0
  665. data/spec/models/get_xlsx_styles_request_spec.rb +47 -0
  666. data/spec/models/get_xlsx_styles_response_spec.rb +47 -0
  667. data/spec/models/get_xlsx_worksheets_request_spec.rb +47 -0
  668. data/spec/models/get_xlsx_worksheets_response_spec.rb +47 -0
  669. data/spec/models/html_md_result_spec.rb +47 -0
  670. data/spec/models/html_template_application_request_spec.rb +53 -0
  671. data/spec/models/html_template_application_response_spec.rb +47 -0
  672. data/spec/models/html_template_operation_spec.rb +57 -0
  673. data/spec/models/html_to_office_request_spec.rb +41 -0
  674. data/spec/models/html_to_pdf_request_spec.rb +59 -0
  675. data/spec/models/html_to_png_request_spec.rb +59 -0
  676. data/spec/models/html_to_text_request_spec.rb +41 -0
  677. data/spec/models/html_to_text_response_spec.rb +47 -0
  678. data/spec/models/insert_docx_comment_on_paragraph_response_spec.rb +47 -0
  679. data/spec/models/insert_docx_insert_paragraph_request_spec.rb +65 -0
  680. data/spec/models/insert_docx_insert_paragraph_response_spec.rb +47 -0
  681. data/spec/models/insert_docx_table_row_request_spec.rb +65 -0
  682. data/spec/models/insert_docx_table_row_response_spec.rb +47 -0
  683. data/spec/models/insert_docx_tables_request_spec.rb +65 -0
  684. data/spec/models/insert_docx_tables_response_spec.rb +47 -0
  685. data/spec/models/insert_xlsx_worksheet_request_spec.rb +53 -0
  686. data/spec/models/insert_xlsx_worksheet_response_spec.rb +47 -0
  687. data/spec/models/keynote_to_jpg_result_spec.rb +47 -0
  688. data/spec/models/keynote_to_png_result_spec.rb +47 -0
  689. data/spec/models/msg_attachment_spec.rb +47 -0
  690. data/spec/models/msg_to_html_result_spec.rb +89 -0
  691. data/spec/models/msg_to_jpg_result_spec.rb +47 -0
  692. data/spec/models/msg_to_png_result_spec.rb +47 -0
  693. data/spec/models/multi_replace_string_request_spec.rb +53 -0
  694. data/spec/models/multipage_image_format_conversion_result_spec.rb +53 -0
  695. data/spec/models/odp_to_jpg_result_spec.rb +47 -0
  696. data/spec/models/odp_to_png_result_spec.rb +47 -0
  697. data/spec/models/ods_to_jpg_result_spec.rb +47 -0
  698. data/spec/models/ods_to_png_result_spec.rb +47 -0
  699. data/spec/models/odt_to_jpg_result_spec.rb +47 -0
  700. data/spec/models/odt_to_png_result_spec.rb +47 -0
  701. data/spec/models/page_conversion_result_spec.rb +47 -0
  702. data/spec/models/pdf_annotation_spec.rb +107 -0
  703. data/spec/models/pdf_document_spec.rb +53 -0
  704. data/spec/models/pdf_form_field_spec.rb +59 -0
  705. data/spec/models/pdf_form_fields_spec.rb +47 -0
  706. data/spec/models/pdf_metadata_spec.rb +89 -0
  707. data/spec/models/pdf_page_text_spec.rb +47 -0
  708. data/spec/models/pdf_text_by_page_result_spec.rb +47 -0
  709. data/spec/models/pdf_to_jpg_result_spec.rb +47 -0
  710. data/spec/models/pdf_to_png_result_spec.rb +47 -0
  711. data/spec/models/pptx_to_png_result_spec.rb +47 -0
  712. data/spec/models/presentation_result_spec.rb +53 -0
  713. data/spec/models/remove_docx_headers_and_footers_request_spec.rb +59 -0
  714. data/spec/models/remove_docx_headers_and_footers_response_spec.rb +47 -0
  715. data/spec/models/remove_docx_pages_request_spec.rb +59 -0
  716. data/spec/models/remove_html_from_text_request_spec.rb +41 -0
  717. data/spec/models/remove_html_from_text_response_spec.rb +47 -0
  718. data/spec/models/remove_pptx_slides_request_spec.rb +59 -0
  719. data/spec/models/remove_whitespace_from_text_request_spec.rb +41 -0
  720. data/spec/models/remove_whitespace_from_text_response_spec.rb +47 -0
  721. data/spec/models/remove_xlsx_worksheet_request_spec.rb +53 -0
  722. data/spec/models/rename_xlsx_worksheet_request_spec.rb +59 -0
  723. data/spec/models/rename_xlsx_worksheet_response_spec.rb +47 -0
  724. data/spec/models/replace_docx_paragraph_request_spec.rb +65 -0
  725. data/spec/models/replace_docx_paragraph_response_spec.rb +47 -0
  726. data/spec/models/replace_string_regex_request_spec.rb +53 -0
  727. data/spec/models/replace_string_regex_response_spec.rb +47 -0
  728. data/spec/models/replace_string_request_spec.rb +65 -0
  729. data/spec/models/replace_string_simple_request_spec.rb +53 -0
  730. data/spec/models/replace_string_simple_response_spec.rb +47 -0
  731. data/spec/models/rtf_to_jpg_result_spec.rb +47 -0
  732. data/spec/models/rtf_to_png_result_spec.rb +47 -0
  733. data/spec/models/screenshot_request_spec.rb +59 -0
  734. data/spec/models/set_form_field_value_spec.rb +59 -0
  735. data/spec/models/set_pdf_form_fields_request_spec.rb +47 -0
  736. data/spec/models/set_pdf_metadata_request_spec.rb +47 -0
  737. data/spec/models/set_xlsx_cell_by_identifier_request_spec.rb +65 -0
  738. data/spec/models/set_xlsx_cell_by_identifier_response_spec.rb +47 -0
  739. data/spec/models/set_xlsx_cell_request_spec.rb +71 -0
  740. data/spec/models/set_xlsx_cell_response_spec.rb +47 -0
  741. data/spec/models/single_replace_string_spec.rb +53 -0
  742. data/spec/models/split_document_result_spec.rb +53 -0
  743. data/spec/models/split_docx_document_result_spec.rb +47 -0
  744. data/spec/models/split_pdf_result_spec.rb +47 -0
  745. data/spec/models/split_pptx_presentation_result_spec.rb +47 -0
  746. data/spec/models/split_text_document_by_lines_result_spec.rb +53 -0
  747. data/spec/models/split_text_document_by_string_result_spec.rb +53 -0
  748. data/spec/models/split_xlsx_worksheet_result_spec.rb +47 -0
  749. data/spec/models/text_conversion_result_spec.rb +47 -0
  750. data/spec/models/text_document_element_spec.rb +47 -0
  751. data/spec/models/text_document_line_spec.rb +47 -0
  752. data/spec/models/text_encoding_detect_response_spec.rb +47 -0
  753. data/spec/models/thumbnail_spec.rb +47 -0
  754. data/spec/models/update_docx_table_cell_request_spec.rb +71 -0
  755. data/spec/models/update_docx_table_cell_response_spec.rb +47 -0
  756. data/spec/models/update_docx_table_row_request_spec.rb +65 -0
  757. data/spec/models/update_docx_table_row_response_spec.rb +47 -0
  758. data/spec/models/url_to_pdf_request_spec.rb +59 -0
  759. data/spec/models/url_to_text_request_spec.rb +41 -0
  760. data/spec/models/url_to_text_response_spec.rb +47 -0
  761. data/spec/models/viewer_response_spec.rb +47 -0
  762. data/spec/models/worksheet_result_spec.rb +59 -0
  763. data/spec/models/xlsx_image_spec.rb +65 -0
  764. data/spec/models/xlsx_spreadsheet_cell_spec.rb +65 -0
  765. data/spec/models/xlsx_spreadsheet_column_spec.rb +47 -0
  766. data/spec/models/xlsx_spreadsheet_row_spec.rb +47 -0
  767. data/spec/models/xlsx_to_png_result_spec.rb +47 -0
  768. data/spec/models/xlsx_worksheet_spec.rb +47 -0
  769. data/spec/models/xml_add_attribute_with_x_path_result_spec.rb +53 -0
  770. data/spec/models/xml_add_child_with_x_path_result_spec.rb +53 -0
  771. data/spec/models/xml_filter_with_x_path_result_spec.rb +53 -0
  772. data/spec/models/xml_query_with_x_query_multi_result_spec.rb +53 -0
  773. data/spec/models/xml_query_with_x_query_result_spec.rb +53 -0
  774. data/spec/models/xml_remove_all_children_with_x_path_result_spec.rb +53 -0
  775. data/spec/models/xml_remove_with_x_path_result_spec.rb +59 -0
  776. data/spec/models/xml_replace_with_x_path_result_spec.rb +53 -0
  777. data/spec/models/xml_set_value_with_x_path_result_spec.rb +53 -0
  778. data/spec/models/zip_directory_spec.rb +53 -0
  779. data/spec/models/zip_encryption_advanced_request_spec.rb +53 -0
  780. data/spec/models/zip_extract_response_spec.rb +53 -0
  781. data/spec/models/zip_file_spec.rb +47 -0
  782. data/spec/spec_helper.rb +111 -0
  783. metadata +785 -4
@@ -0,0 +1,4516 @@
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: 2.4.14
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
+ # Get document type information
23
+ # Auto-detects a document's type information; does not require file extension. Analyzes file contents to confirm file type. Even if no file extension is present, the auto-detect system will reliably analyze the contents of the file and identify its file type. Supports over 100 image file formats, Office document file formats, PDF, and more.
24
+ # @param input_file Input file to perform the operation on.
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [AutodetectGetInfoResult]
27
+ def convert_document_autodetect_get_info(input_file, opts = {})
28
+ data, _status_code, _headers = convert_document_autodetect_get_info_with_http_info(input_file, opts)
29
+ data
30
+ end
31
+
32
+ # Get document type information
33
+ # Auto-detects a document's type information; does not require file extension. Analyzes file contents to confirm file type. Even if no file extension is present, the auto-detect system will reliably analyze the contents of the file and identify its file type. Supports over 100 image file formats, Office document file formats, PDF, and more.
34
+ # @param input_file Input file to perform the operation on.
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(AutodetectGetInfoResult, Fixnum, Hash)>] AutodetectGetInfoResult data, response status code and response headers
37
+ def convert_document_autodetect_get_info_with_http_info(input_file, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_autodetect_get_info ...'
40
+ end
41
+ # verify the required parameter 'input_file' is set
42
+ if @api_client.config.client_side_validation && input_file.nil?
43
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_autodetect_get_info"
44
+ end
45
+ # resource path
46
+ local_var_path = '/convert/autodetect/get-info'
47
+
48
+ # query parameters
49
+ query_params = {}
50
+
51
+ # header parameters
52
+ header_params = {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
55
+ # HTTP header 'Content-Type'
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
57
+
58
+ # form parameters
59
+ form_params = {}
60
+ form_params['inputFile'] = input_file
61
+
62
+ # http body (model)
63
+ post_body = nil
64
+ auth_names = ['Apikey']
65
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
66
+ :header_params => header_params,
67
+ :query_params => query_params,
68
+ :form_params => form_params,
69
+ :body => post_body,
70
+ :auth_names => auth_names,
71
+ :return_type => 'AutodetectGetInfoResult')
72
+ if @api_client.config.debugging
73
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_autodetect_get_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
74
+ end
75
+ return data, status_code, headers
76
+ end
77
+ # Convert Document to JPG/JPEG image array
78
+ # Automatically detect file type and convert it to an array of JPG/JPEG Images. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT), over 100 image formats, HTML files, and even multi-page TIFF files. Customize image quality using quality header.
79
+ # @param input_file Input file to perform the operation on.
80
+ # @param [Hash] opts the optional parameters
81
+ # @option opts [Integer] :quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75.
82
+ # @return [AutodetectToJpgResult]
83
+ def convert_document_autodetect_to_jpg(input_file, opts = {})
84
+ data, _status_code, _headers = convert_document_autodetect_to_jpg_with_http_info(input_file, opts)
85
+ data
86
+ end
87
+
88
+ # Convert Document to JPG/JPEG image array
89
+ # Automatically detect file type and convert it to an array of JPG/JPEG Images. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT), over 100 image formats, HTML files, and even multi-page TIFF files. Customize image quality using quality header.
90
+ # @param input_file Input file to perform the operation on.
91
+ # @param [Hash] opts the optional parameters
92
+ # @option opts [Integer] :quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75.
93
+ # @return [Array<(AutodetectToJpgResult, Fixnum, Hash)>] AutodetectToJpgResult data, response status code and response headers
94
+ def convert_document_autodetect_to_jpg_with_http_info(input_file, opts = {})
95
+ if @api_client.config.debugging
96
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_autodetect_to_jpg ...'
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_autodetect_to_jpg"
101
+ end
102
+ # resource path
103
+ local_var_path = '/convert/autodetect/to/jpg'
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
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
115
+
116
+ # form parameters
117
+ form_params = {}
118
+ form_params['inputFile'] = input_file
119
+
120
+ # http body (model)
121
+ post_body = nil
122
+ auth_names = ['Apikey']
123
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
124
+ :header_params => header_params,
125
+ :query_params => query_params,
126
+ :form_params => form_params,
127
+ :body => post_body,
128
+ :auth_names => auth_names,
129
+ :return_type => 'AutodetectToJpgResult')
130
+ if @api_client.config.debugging
131
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_autodetect_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
132
+ end
133
+ return data, status_code, headers
134
+ end
135
+ # Convert Document to PDF
136
+ # Automatically detect file type and convert it to PDF. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT), over 100 image formats, HTML files, and even multi-page TIFF files.
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_autodetect_to_pdf(input_file, opts = {})
141
+ data, _status_code, _headers = convert_document_autodetect_to_pdf_with_http_info(input_file, opts)
142
+ data
143
+ end
144
+
145
+ # Convert Document to PDF
146
+ # Automatically detect file type and convert it to PDF. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT), over 100 image formats, HTML files, and even multi-page TIFF files.
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_autodetect_to_pdf_with_http_info(input_file, opts = {})
151
+ if @api_client.config.debugging
152
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_autodetect_to_pdf ...'
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_autodetect_to_pdf"
157
+ end
158
+ # resource path
159
+ local_var_path = '/convert/autodetect/to/pdf'
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_autodetect_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
187
+ end
188
+ return data, status_code, headers
189
+ end
190
+ # Convert Document to PNG array
191
+ # Automatically detect file type and convert it to an array of PNG images. Supports all of the major Office document file formats, over 100 image formats, and even multi-page TIFF files.
192
+ # @param input_file Input file to perform the operation on.
193
+ # @param [Hash] opts the optional parameters
194
+ # @return [AutodetectToPngResult]
195
+ def convert_document_autodetect_to_png_array(input_file, opts = {})
196
+ data, _status_code, _headers = convert_document_autodetect_to_png_array_with_http_info(input_file, opts)
197
+ data
198
+ end
199
+
200
+ # Convert Document to PNG array
201
+ # Automatically detect file type and convert it to an array of PNG images. Supports all of the major Office document file formats, over 100 image formats, and even multi-page TIFF files.
202
+ # @param input_file Input file to perform the operation on.
203
+ # @param [Hash] opts the optional parameters
204
+ # @return [Array<(AutodetectToPngResult, Fixnum, Hash)>] AutodetectToPngResult data, response status code and response headers
205
+ def convert_document_autodetect_to_png_array_with_http_info(input_file, opts = {})
206
+ if @api_client.config.debugging
207
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_autodetect_to_png_array ...'
208
+ end
209
+ # verify the required parameter 'input_file' is set
210
+ if @api_client.config.client_side_validation && input_file.nil?
211
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_autodetect_to_png_array"
212
+ end
213
+ # resource path
214
+ local_var_path = '/convert/autodetect/to/png'
215
+
216
+ # query parameters
217
+ query_params = {}
218
+
219
+ # header parameters
220
+ header_params = {}
221
+ # HTTP header 'Accept' (if needed)
222
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
223
+ # HTTP header 'Content-Type'
224
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
225
+
226
+ # form parameters
227
+ form_params = {}
228
+ form_params['inputFile'] = input_file
229
+
230
+ # http body (model)
231
+ post_body = nil
232
+ auth_names = ['Apikey']
233
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
234
+ :header_params => header_params,
235
+ :query_params => query_params,
236
+ :form_params => form_params,
237
+ :body => post_body,
238
+ :auth_names => auth_names,
239
+ :return_type => 'AutodetectToPngResult')
240
+ if @api_client.config.debugging
241
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_autodetect_to_png_array\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
242
+ end
243
+ return data, status_code, headers
244
+ end
245
+ # Convert File to Thumbnail Image
246
+ # Automatically detect file type and convert it to a PNG thumbnail. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT), over 100 image formats, HTML files, and even multi-page TIFF files. Returns a generic PNG thumbnail for unsupported formats. Maximum thumbnail size is 2048x2048.
247
+ # @param input_file Input file to perform the operation on.
248
+ # @param [Hash] opts the optional parameters
249
+ # @option opts [Integer] :max_width Optional; Maximum width of the output thumbnail - final image will be as large as possible while less than or equal to this width. Default is 128.
250
+ # @option opts [Integer] :max_height Optional; Maximum height of the output thumbnail - final image will be as large as possible while less than or equal to this width. Default is 128.
251
+ # @option opts [String] :extension Optional; Specify the file extension of the inputFile. This will improve the response time in most cases. Also allows unsupported files without extensions to still return a corresponding generic icon.
252
+ # @return [String]
253
+ def convert_document_autodetect_to_thumbnail(input_file, opts = {})
254
+ data, _status_code, _headers = convert_document_autodetect_to_thumbnail_with_http_info(input_file, opts)
255
+ data
256
+ end
257
+
258
+ # Convert File to Thumbnail Image
259
+ # Automatically detect file type and convert it to a PNG thumbnail. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT), over 100 image formats, HTML files, and even multi-page TIFF files. Returns a generic PNG thumbnail for unsupported formats. Maximum thumbnail size is 2048x2048.
260
+ # @param input_file Input file to perform the operation on.
261
+ # @param [Hash] opts the optional parameters
262
+ # @option opts [Integer] :max_width Optional; Maximum width of the output thumbnail - final image will be as large as possible while less than or equal to this width. Default is 128.
263
+ # @option opts [Integer] :max_height Optional; Maximum height of the output thumbnail - final image will be as large as possible while less than or equal to this width. Default is 128.
264
+ # @option opts [String] :extension Optional; Specify the file extension of the inputFile. This will improve the response time in most cases. Also allows unsupported files without extensions to still return a corresponding generic icon.
265
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
266
+ def convert_document_autodetect_to_thumbnail_with_http_info(input_file, opts = {})
267
+ if @api_client.config.debugging
268
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_autodetect_to_thumbnail ...'
269
+ end
270
+ # verify the required parameter 'input_file' is set
271
+ if @api_client.config.client_side_validation && input_file.nil?
272
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_autodetect_to_thumbnail"
273
+ end
274
+ # resource path
275
+ local_var_path = '/convert/autodetect/to/thumbnail'
276
+
277
+ # query parameters
278
+ query_params = {}
279
+
280
+ # header parameters
281
+ header_params = {}
282
+ # HTTP header 'Accept' (if needed)
283
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
284
+ # HTTP header 'Content-Type'
285
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
286
+ header_params[:'maxWidth'] = opts[:'max_width'] if !opts[:'max_width'].nil?
287
+ header_params[:'maxHeight'] = opts[:'max_height'] if !opts[:'max_height'].nil?
288
+ header_params[:'extension'] = opts[:'extension'] if !opts[:'extension'].nil?
289
+
290
+ # form parameters
291
+ form_params = {}
292
+ form_params['inputFile'] = input_file
293
+
294
+ # http body (model)
295
+ post_body = nil
296
+ auth_names = ['Apikey']
297
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
298
+ :header_params => header_params,
299
+ :query_params => query_params,
300
+ :form_params => form_params,
301
+ :body => post_body,
302
+ :auth_names => auth_names,
303
+ :return_type => 'String')
304
+ if @api_client.config.debugging
305
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_autodetect_to_thumbnail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
306
+ end
307
+ return data, status_code, headers
308
+ end
309
+ # Convert File to Thumbnail Image Object
310
+ # Automatically detect file type and convert it to an array of PNG thumbnails, returned as an object. May specify the number of pages for multiple thumbnails; default is one thumbnail. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT), over 100 image formats, HTML files, and even multi-page TIFF files. Returns a generic PNG thumbnail for unsupported formats. Maximum thumbnail size is 2048x2048.
311
+ # @param input_file Input file to perform the operation on.
312
+ # @param [Hash] opts the optional parameters
313
+ # @option opts [Integer] :pages Optional; Specify how many pages of the document will be converted to thumbnails. Default is 1 page.
314
+ # @option opts [Integer] :max_width Optional; Maximum width of the output thumbnail - final image will be as large as possible while less than or equal to this width. Default is 128.
315
+ # @option opts [Integer] :max_height Optional; Maximum height of the output thumbnail - final image will be as large as possible while less than or equal to this width. Default is 128.
316
+ # @option opts [String] :extension Optional; Specify the file extension of the inputFile. This will improve the response time in most cases. Also allows unsupported files without extensions to still return a corresponding generic icon.
317
+ # @return [AutodetectToThumbnailsResult]
318
+ def convert_document_autodetect_to_thumbnails_advanced(input_file, opts = {})
319
+ data, _status_code, _headers = convert_document_autodetect_to_thumbnails_advanced_with_http_info(input_file, opts)
320
+ data
321
+ end
322
+
323
+ # Convert File to Thumbnail Image Object
324
+ # Automatically detect file type and convert it to an array of PNG thumbnails, returned as an object. May specify the number of pages for multiple thumbnails; default is one thumbnail. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT), over 100 image formats, HTML files, and even multi-page TIFF files. Returns a generic PNG thumbnail for unsupported formats. Maximum thumbnail size is 2048x2048.
325
+ # @param input_file Input file to perform the operation on.
326
+ # @param [Hash] opts the optional parameters
327
+ # @option opts [Integer] :pages Optional; Specify how many pages of the document will be converted to thumbnails. Default is 1 page.
328
+ # @option opts [Integer] :max_width Optional; Maximum width of the output thumbnail - final image will be as large as possible while less than or equal to this width. Default is 128.
329
+ # @option opts [Integer] :max_height Optional; Maximum height of the output thumbnail - final image will be as large as possible while less than or equal to this width. Default is 128.
330
+ # @option opts [String] :extension Optional; Specify the file extension of the inputFile. This will improve the response time in most cases. Also allows unsupported files without extensions to still return a corresponding generic icon.
331
+ # @return [Array<(AutodetectToThumbnailsResult, Fixnum, Hash)>] AutodetectToThumbnailsResult data, response status code and response headers
332
+ def convert_document_autodetect_to_thumbnails_advanced_with_http_info(input_file, opts = {})
333
+ if @api_client.config.debugging
334
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_autodetect_to_thumbnails_advanced ...'
335
+ end
336
+ # verify the required parameter 'input_file' is set
337
+ if @api_client.config.client_side_validation && input_file.nil?
338
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_autodetect_to_thumbnails_advanced"
339
+ end
340
+ # resource path
341
+ local_var_path = '/convert/autodetect/to/thumbnail/advanced'
342
+
343
+ # query parameters
344
+ query_params = {}
345
+
346
+ # header parameters
347
+ header_params = {}
348
+ # HTTP header 'Accept' (if needed)
349
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
350
+ # HTTP header 'Content-Type'
351
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
352
+ header_params[:'pages'] = opts[:'pages'] if !opts[:'pages'].nil?
353
+ header_params[:'maxWidth'] = opts[:'max_width'] if !opts[:'max_width'].nil?
354
+ header_params[:'maxHeight'] = opts[:'max_height'] if !opts[:'max_height'].nil?
355
+ header_params[:'extension'] = opts[:'extension'] if !opts[:'extension'].nil?
356
+
357
+ # form parameters
358
+ form_params = {}
359
+ form_params['inputFile'] = input_file
360
+
361
+ # http body (model)
362
+ post_body = nil
363
+ auth_names = ['Apikey']
364
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
365
+ :header_params => header_params,
366
+ :query_params => query_params,
367
+ :form_params => form_params,
368
+ :body => post_body,
369
+ :auth_names => auth_names,
370
+ :return_type => 'AutodetectToThumbnailsResult')
371
+ if @api_client.config.debugging
372
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_autodetect_to_thumbnails_advanced\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
373
+ end
374
+ return data, status_code, headers
375
+ end
376
+ # Convert Document to Text (txt)
377
+ # Automatically detect file type and convert it to Text. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT) and PDF files. For spreadsheets, all worksheets will be included. If you wish to exclude certain pages, worksheets, slides, etc. use the Split document API first, or the delete pages/slides/worksheet APIs first to adjust the document to the target state prior to converting to text.
378
+ # @param input_file Input file to perform the operation on.
379
+ # @param [Hash] opts the optional parameters
380
+ # @option opts [String] :text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are &#39;preserveWhitespace&#39; which will attempt to preserve whitespace in the document and relative positioning of text within the document, and &#39;minimizeWhitespace&#39; which will not insert additional spaces into the document in most cases. Default is &#39;preserveWhitespace&#39;.
381
+ # @return [TextConversionResult]
382
+ def convert_document_autodetect_to_txt(input_file, opts = {})
383
+ data, _status_code, _headers = convert_document_autodetect_to_txt_with_http_info(input_file, opts)
384
+ data
385
+ end
386
+
387
+ # Convert Document to Text (txt)
388
+ # Automatically detect file type and convert it to Text. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT) and PDF files. For spreadsheets, all worksheets will be included. If you wish to exclude certain pages, worksheets, slides, etc. use the Split document API first, or the delete pages/slides/worksheet APIs first to adjust the document to the target state prior to converting to text.
389
+ # @param input_file Input file to perform the operation on.
390
+ # @param [Hash] opts the optional parameters
391
+ # @option opts [String] :text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are &#39;preserveWhitespace&#39; which will attempt to preserve whitespace in the document and relative positioning of text within the document, and &#39;minimizeWhitespace&#39; which will not insert additional spaces into the document in most cases. Default is &#39;preserveWhitespace&#39;.
392
+ # @return [Array<(TextConversionResult, Fixnum, Hash)>] TextConversionResult data, response status code and response headers
393
+ def convert_document_autodetect_to_txt_with_http_info(input_file, opts = {})
394
+ if @api_client.config.debugging
395
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_autodetect_to_txt ...'
396
+ end
397
+ # verify the required parameter 'input_file' is set
398
+ if @api_client.config.client_side_validation && input_file.nil?
399
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_autodetect_to_txt"
400
+ end
401
+ # resource path
402
+ local_var_path = '/convert/autodetect/to/txt'
403
+
404
+ # query parameters
405
+ query_params = {}
406
+
407
+ # header parameters
408
+ header_params = {}
409
+ # HTTP header 'Accept' (if needed)
410
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
411
+ # HTTP header 'Content-Type'
412
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
413
+ header_params[:'textFormattingMode'] = opts[:'text_formatting_mode'] if !opts[:'text_formatting_mode'].nil?
414
+
415
+ # form parameters
416
+ form_params = {}
417
+ form_params['inputFile'] = input_file
418
+
419
+ # http body (model)
420
+ post_body = nil
421
+ auth_names = ['Apikey']
422
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
423
+ :header_params => header_params,
424
+ :query_params => query_params,
425
+ :form_params => form_params,
426
+ :body => post_body,
427
+ :auth_names => auth_names,
428
+ :return_type => 'TextConversionResult')
429
+ if @api_client.config.debugging
430
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_autodetect_to_txt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
431
+ end
432
+ return data, status_code, headers
433
+ end
434
+ # Convert Multiple CSV Files into a Single XLSX Spreadsheet
435
+ # Convert multiple Comma-Separated Values (CSV) files into a single Excel XLSX Spreadsheet, with one worksheet corresponding to each CSV file.
436
+ # @param input_file1 First input file to perform the operation on.
437
+ # @param input_file2 Second input file to perform the operation on.
438
+ # @param [Hash] opts the optional parameters
439
+ # @option opts [File] :input_file3 Third input file to perform the operation on.
440
+ # @option opts [File] :input_file4 Fourth input file to perform the operation on.
441
+ # @option opts [File] :input_file5 Fifth input file to perform the operation on.
442
+ # @option opts [File] :input_file6 Sixth input file to perform the operation on.
443
+ # @option opts [File] :input_file7 Seventh input file to perform the operation on.
444
+ # @option opts [File] :input_file8 Eighth input file to perform the operation on.
445
+ # @option opts [File] :input_file9 Ninth input file to perform the operation on.
446
+ # @option opts [File] :input_file10 Tenth input file to perform the operation on.
447
+ # @option opts [String] :worksheet_names Optional; Specify the name of each CSV&#39;s worksheet in order, separated with commas (e.g. \&quot;worksheet1,worksheet2,worksheet3\&quot;). Defaults to the names of the input CSV files. Recommended when inputting the files directly, without file names.
448
+ # @return [String]
449
+ def convert_document_csv_multi_to_xlsx(input_file1, input_file2, opts = {})
450
+ data, _status_code, _headers = convert_document_csv_multi_to_xlsx_with_http_info(input_file1, input_file2, opts)
451
+ data
452
+ end
453
+
454
+ # Convert Multiple CSV Files into a Single XLSX Spreadsheet
455
+ # Convert multiple Comma-Separated Values (CSV) files into a single Excel XLSX Spreadsheet, with one worksheet corresponding to each CSV file.
456
+ # @param input_file1 First input file to perform the operation on.
457
+ # @param input_file2 Second input file to perform the operation on.
458
+ # @param [Hash] opts the optional parameters
459
+ # @option opts [File] :input_file3 Third input file to perform the operation on.
460
+ # @option opts [File] :input_file4 Fourth input file to perform the operation on.
461
+ # @option opts [File] :input_file5 Fifth input file to perform the operation on.
462
+ # @option opts [File] :input_file6 Sixth input file to perform the operation on.
463
+ # @option opts [File] :input_file7 Seventh input file to perform the operation on.
464
+ # @option opts [File] :input_file8 Eighth input file to perform the operation on.
465
+ # @option opts [File] :input_file9 Ninth input file to perform the operation on.
466
+ # @option opts [File] :input_file10 Tenth input file to perform the operation on.
467
+ # @option opts [String] :worksheet_names Optional; Specify the name of each CSV&#39;s worksheet in order, separated with commas (e.g. \&quot;worksheet1,worksheet2,worksheet3\&quot;). Defaults to the names of the input CSV files. Recommended when inputting the files directly, without file names.
468
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
469
+ def convert_document_csv_multi_to_xlsx_with_http_info(input_file1, input_file2, opts = {})
470
+ if @api_client.config.debugging
471
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_csv_multi_to_xlsx ...'
472
+ end
473
+ # verify the required parameter 'input_file1' is set
474
+ if @api_client.config.client_side_validation && input_file1.nil?
475
+ fail ArgumentError, "Missing the required parameter 'input_file1' when calling ConvertDocumentApi.convert_document_csv_multi_to_xlsx"
476
+ end
477
+ # verify the required parameter 'input_file2' is set
478
+ if @api_client.config.client_side_validation && input_file2.nil?
479
+ fail ArgumentError, "Missing the required parameter 'input_file2' when calling ConvertDocumentApi.convert_document_csv_multi_to_xlsx"
480
+ end
481
+ # resource path
482
+ local_var_path = '/convert/csv/multi/to/xlsx'
483
+
484
+ # query parameters
485
+ query_params = {}
486
+
487
+ # header parameters
488
+ header_params = {}
489
+ # HTTP header 'Accept' (if needed)
490
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
491
+ # HTTP header 'Content-Type'
492
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
493
+ header_params[:'worksheetNames'] = opts[:'worksheet_names'] if !opts[:'worksheet_names'].nil?
494
+
495
+ # form parameters
496
+ form_params = {}
497
+ form_params['inputFile1'] = input_file1
498
+ form_params['inputFile2'] = input_file2
499
+ form_params['inputFile3'] = opts[:'input_file3'] if !opts[:'input_file3'].nil?
500
+ form_params['inputFile4'] = opts[:'input_file4'] if !opts[:'input_file4'].nil?
501
+ form_params['inputFile5'] = opts[:'input_file5'] if !opts[:'input_file5'].nil?
502
+ form_params['inputFile6'] = opts[:'input_file6'] if !opts[:'input_file6'].nil?
503
+ form_params['inputFile7'] = opts[:'input_file7'] if !opts[:'input_file7'].nil?
504
+ form_params['inputFile8'] = opts[:'input_file8'] if !opts[:'input_file8'].nil?
505
+ form_params['inputFile9'] = opts[:'input_file9'] if !opts[:'input_file9'].nil?
506
+ form_params['inputFile10'] = opts[:'input_file10'] if !opts[:'input_file10'].nil?
507
+
508
+ # http body (model)
509
+ post_body = nil
510
+ auth_names = ['Apikey']
511
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
512
+ :header_params => header_params,
513
+ :query_params => query_params,
514
+ :form_params => form_params,
515
+ :body => post_body,
516
+ :auth_names => auth_names,
517
+ :return_type => 'String')
518
+ if @api_client.config.debugging
519
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_csv_multi_to_xlsx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
520
+ end
521
+ return data, status_code, headers
522
+ end
523
+ # Convert CSV to HTML document
524
+ # Convert Comma-Separated Values (CSV) file to HTML document.
525
+ # @param input_file Input file to perform the operation on.
526
+ # @param [Hash] opts the optional parameters
527
+ # @return [String]
528
+ def convert_document_csv_to_html(input_file, opts = {})
529
+ data, _status_code, _headers = convert_document_csv_to_html_with_http_info(input_file, opts)
530
+ data
531
+ end
532
+
533
+ # Convert CSV to HTML document
534
+ # Convert Comma-Separated Values (CSV) file to HTML document.
535
+ # @param input_file Input file to perform the operation on.
536
+ # @param [Hash] opts the optional parameters
537
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
538
+ def convert_document_csv_to_html_with_http_info(input_file, opts = {})
539
+ if @api_client.config.debugging
540
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_csv_to_html ...'
541
+ end
542
+ # verify the required parameter 'input_file' is set
543
+ if @api_client.config.client_side_validation && input_file.nil?
544
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_csv_to_html"
545
+ end
546
+ # resource path
547
+ local_var_path = '/convert/csv/to/html'
548
+
549
+ # query parameters
550
+ query_params = {}
551
+
552
+ # header parameters
553
+ header_params = {}
554
+ # HTTP header 'Accept' (if needed)
555
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
556
+ # HTTP header 'Content-Type'
557
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
558
+
559
+ # form parameters
560
+ form_params = {}
561
+ form_params['inputFile'] = input_file
562
+
563
+ # http body (model)
564
+ post_body = nil
565
+ auth_names = ['Apikey']
566
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
567
+ :header_params => header_params,
568
+ :query_params => query_params,
569
+ :form_params => form_params,
570
+ :body => post_body,
571
+ :auth_names => auth_names,
572
+ :return_type => 'String')
573
+ if @api_client.config.debugging
574
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_csv_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
575
+ end
576
+ return data, status_code, headers
577
+ end
578
+ # Convert CSV to PDF document
579
+ # Convert Comma-Separated Values (CSV) file to PDF document.
580
+ # @param input_file Input file to perform the operation on.
581
+ # @param [Hash] opts the optional parameters
582
+ # @return [String]
583
+ def convert_document_csv_to_pdf(input_file, opts = {})
584
+ data, _status_code, _headers = convert_document_csv_to_pdf_with_http_info(input_file, opts)
585
+ data
586
+ end
587
+
588
+ # Convert CSV to PDF document
589
+ # Convert Comma-Separated Values (CSV) file to PDF document.
590
+ # @param input_file Input file to perform the operation on.
591
+ # @param [Hash] opts the optional parameters
592
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
593
+ def convert_document_csv_to_pdf_with_http_info(input_file, opts = {})
594
+ if @api_client.config.debugging
595
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_csv_to_pdf ...'
596
+ end
597
+ # verify the required parameter 'input_file' is set
598
+ if @api_client.config.client_side_validation && input_file.nil?
599
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_csv_to_pdf"
600
+ end
601
+ # resource path
602
+ local_var_path = '/convert/csv/to/pdf'
603
+
604
+ # query parameters
605
+ query_params = {}
606
+
607
+ # header parameters
608
+ header_params = {}
609
+ # HTTP header 'Accept' (if needed)
610
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
611
+ # HTTP header 'Content-Type'
612
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
613
+
614
+ # form parameters
615
+ form_params = {}
616
+ form_params['inputFile'] = input_file
617
+
618
+ # http body (model)
619
+ post_body = nil
620
+ auth_names = ['Apikey']
621
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
622
+ :header_params => header_params,
623
+ :query_params => query_params,
624
+ :form_params => form_params,
625
+ :body => post_body,
626
+ :auth_names => auth_names,
627
+ :return_type => 'String')
628
+ if @api_client.config.debugging
629
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_csv_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
630
+ end
631
+ return data, status_code, headers
632
+ end
633
+ # Convert CSV to Excel XLSX Spreadsheet
634
+ # Convert CSV file to Office Excel XLSX Workbooks file format.
635
+ # @param input_file Input file to perform the operation on.
636
+ # @param [Hash] opts the optional parameters
637
+ # @return [String]
638
+ def convert_document_csv_to_xlsx(input_file, opts = {})
639
+ data, _status_code, _headers = convert_document_csv_to_xlsx_with_http_info(input_file, opts)
640
+ data
641
+ end
642
+
643
+ # Convert CSV to Excel XLSX Spreadsheet
644
+ # Convert CSV file to Office Excel XLSX Workbooks file format.
645
+ # @param input_file Input file to perform the operation on.
646
+ # @param [Hash] opts the optional parameters
647
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
648
+ def convert_document_csv_to_xlsx_with_http_info(input_file, opts = {})
649
+ if @api_client.config.debugging
650
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_csv_to_xlsx ...'
651
+ end
652
+ # verify the required parameter 'input_file' is set
653
+ if @api_client.config.client_side_validation && input_file.nil?
654
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_csv_to_xlsx"
655
+ end
656
+ # resource path
657
+ local_var_path = '/convert/csv/to/xlsx'
658
+
659
+ # query parameters
660
+ query_params = {}
661
+
662
+ # header parameters
663
+ header_params = {}
664
+ # HTTP header 'Accept' (if needed)
665
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
666
+ # HTTP header 'Content-Type'
667
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
668
+
669
+ # form parameters
670
+ form_params = {}
671
+ form_params['inputFile'] = input_file
672
+
673
+ # http body (model)
674
+ post_body = nil
675
+ auth_names = ['Apikey']
676
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
677
+ :header_params => header_params,
678
+ :query_params => query_params,
679
+ :form_params => form_params,
680
+ :body => post_body,
681
+ :auth_names => auth_names,
682
+ :return_type => 'String')
683
+ if @api_client.config.debugging
684
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_csv_to_xlsx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
685
+ end
686
+ return data, status_code, headers
687
+ end
688
+ # Convert Word DOC (97-03) Document to DOCX
689
+ # Convert/upgrade Office Word (97-2003 Format) Documents (doc) to the modern DOCX format
690
+ # @param input_file Input file to perform the operation on.
691
+ # @param [Hash] opts the optional parameters
692
+ # @return [String]
693
+ def convert_document_doc_to_docx(input_file, opts = {})
694
+ data, _status_code, _headers = convert_document_doc_to_docx_with_http_info(input_file, opts)
695
+ data
696
+ end
697
+
698
+ # Convert Word DOC (97-03) Document to DOCX
699
+ # Convert/upgrade Office Word (97-2003 Format) Documents (doc) to the modern DOCX format
700
+ # @param input_file Input file to perform the operation on.
701
+ # @param [Hash] opts the optional parameters
702
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
703
+ def convert_document_doc_to_docx_with_http_info(input_file, opts = {})
704
+ if @api_client.config.debugging
705
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_doc_to_docx ...'
706
+ end
707
+ # verify the required parameter 'input_file' is set
708
+ if @api_client.config.client_side_validation && input_file.nil?
709
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_doc_to_docx"
710
+ end
711
+ # resource path
712
+ local_var_path = '/convert/doc/to/docx'
713
+
714
+ # query parameters
715
+ query_params = {}
716
+
717
+ # header parameters
718
+ header_params = {}
719
+ # HTTP header 'Accept' (if needed)
720
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
721
+ # HTTP header 'Content-Type'
722
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
723
+
724
+ # form parameters
725
+ form_params = {}
726
+ form_params['inputFile'] = input_file
727
+
728
+ # http body (model)
729
+ post_body = nil
730
+ auth_names = ['Apikey']
731
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
732
+ :header_params => header_params,
733
+ :query_params => query_params,
734
+ :form_params => form_params,
735
+ :body => post_body,
736
+ :auth_names => auth_names,
737
+ :return_type => 'String')
738
+ if @api_client.config.debugging
739
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_doc_to_docx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
740
+ end
741
+ return data, status_code, headers
742
+ end
743
+ # Convert Word DOC (97-03) Document to PDF
744
+ # Convert Office Word (97-2003 Format) Documents (doc) to standard PDF
745
+ # @param input_file Input file to perform the operation on.
746
+ # @param [Hash] opts the optional parameters
747
+ # @return [String]
748
+ def convert_document_doc_to_pdf(input_file, opts = {})
749
+ data, _status_code, _headers = convert_document_doc_to_pdf_with_http_info(input_file, opts)
750
+ data
751
+ end
752
+
753
+ # Convert Word DOC (97-03) Document to PDF
754
+ # Convert Office Word (97-2003 Format) Documents (doc) to standard PDF
755
+ # @param input_file Input file to perform the operation on.
756
+ # @param [Hash] opts the optional parameters
757
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
758
+ def convert_document_doc_to_pdf_with_http_info(input_file, opts = {})
759
+ if @api_client.config.debugging
760
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_doc_to_pdf ...'
761
+ end
762
+ # verify the required parameter 'input_file' is set
763
+ if @api_client.config.client_side_validation && input_file.nil?
764
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_doc_to_pdf"
765
+ end
766
+ # resource path
767
+ local_var_path = '/convert/doc/to/pdf'
768
+
769
+ # query parameters
770
+ query_params = {}
771
+
772
+ # header parameters
773
+ header_params = {}
774
+ # HTTP header 'Accept' (if needed)
775
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
776
+ # HTTP header 'Content-Type'
777
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
778
+
779
+ # form parameters
780
+ form_params = {}
781
+ form_params['inputFile'] = input_file
782
+
783
+ # http body (model)
784
+ post_body = nil
785
+ auth_names = ['Apikey']
786
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
787
+ :header_params => header_params,
788
+ :query_params => query_params,
789
+ :form_params => form_params,
790
+ :body => post_body,
791
+ :auth_names => auth_names,
792
+ :return_type => 'String')
793
+ if @api_client.config.debugging
794
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_doc_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
795
+ end
796
+ return data, status_code, headers
797
+ end
798
+ # Convert Word DOC (97-03) Document to Text (txt)
799
+ # Convert Office Word DOC (97-03) Document (doc) to text
800
+ # @param input_file Input file to perform the operation on.
801
+ # @param [Hash] opts the optional parameters
802
+ # @return [TextConversionResult]
803
+ def convert_document_doc_to_txt(input_file, opts = {})
804
+ data, _status_code, _headers = convert_document_doc_to_txt_with_http_info(input_file, opts)
805
+ data
806
+ end
807
+
808
+ # Convert Word DOC (97-03) Document to Text (txt)
809
+ # Convert Office Word DOC (97-03) Document (doc) to text
810
+ # @param input_file Input file to perform the operation on.
811
+ # @param [Hash] opts the optional parameters
812
+ # @return [Array<(TextConversionResult, Fixnum, Hash)>] TextConversionResult data, response status code and response headers
813
+ def convert_document_doc_to_txt_with_http_info(input_file, opts = {})
814
+ if @api_client.config.debugging
815
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_doc_to_txt ...'
816
+ end
817
+ # verify the required parameter 'input_file' is set
818
+ if @api_client.config.client_side_validation && input_file.nil?
819
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_doc_to_txt"
820
+ end
821
+ # resource path
822
+ local_var_path = '/convert/doc/to/txt'
823
+
824
+ # query parameters
825
+ query_params = {}
826
+
827
+ # header parameters
828
+ header_params = {}
829
+ # HTTP header 'Accept' (if needed)
830
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
831
+ # HTTP header 'Content-Type'
832
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
833
+
834
+ # form parameters
835
+ form_params = {}
836
+ form_params['inputFile'] = input_file
837
+
838
+ # http body (model)
839
+ post_body = nil
840
+ auth_names = ['Apikey']
841
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
842
+ :header_params => header_params,
843
+ :query_params => query_params,
844
+ :form_params => form_params,
845
+ :body => post_body,
846
+ :auth_names => auth_names,
847
+ :return_type => 'TextConversionResult')
848
+ if @api_client.config.debugging
849
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_doc_to_txt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
850
+ end
851
+ return data, status_code, headers
852
+ end
853
+ # Convert Word DOCX Document to Legacy Word DOC (97-03)
854
+ # Convert/downgrade modern Office Word DOCX Documents (DOCX) to the legacy Word DOC (97-2003 Format) format
855
+ # @param input_file Input file to perform the operation on.
856
+ # @param [Hash] opts the optional parameters
857
+ # @return [String]
858
+ def convert_document_docx_to_doc(input_file, opts = {})
859
+ data, _status_code, _headers = convert_document_docx_to_doc_with_http_info(input_file, opts)
860
+ data
861
+ end
862
+
863
+ # Convert Word DOCX Document to Legacy Word DOC (97-03)
864
+ # Convert/downgrade modern Office Word DOCX Documents (DOCX) to the legacy Word DOC (97-2003 Format) format
865
+ # @param input_file Input file to perform the operation on.
866
+ # @param [Hash] opts the optional parameters
867
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
868
+ def convert_document_docx_to_doc_with_http_info(input_file, opts = {})
869
+ if @api_client.config.debugging
870
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_docx_to_doc ...'
871
+ end
872
+ # verify the required parameter 'input_file' is set
873
+ if @api_client.config.client_side_validation && input_file.nil?
874
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_docx_to_doc"
875
+ end
876
+ # resource path
877
+ local_var_path = '/convert/docx/to/doc'
878
+
879
+ # query parameters
880
+ query_params = {}
881
+
882
+ # header parameters
883
+ header_params = {}
884
+ # HTTP header 'Accept' (if needed)
885
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
886
+ # HTTP header 'Content-Type'
887
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
888
+
889
+ # form parameters
890
+ form_params = {}
891
+ form_params['inputFile'] = input_file
892
+
893
+ # http body (model)
894
+ post_body = nil
895
+ auth_names = ['Apikey']
896
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
897
+ :header_params => header_params,
898
+ :query_params => query_params,
899
+ :form_params => form_params,
900
+ :body => post_body,
901
+ :auth_names => auth_names,
902
+ :return_type => 'String')
903
+ if @api_client.config.debugging
904
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_docx_to_doc\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
905
+ end
906
+ return data, status_code, headers
907
+ end
908
+ # Convert Word DOCX Document to HTML Document
909
+ # Convert Office Word Document (DOCX) to HTML Document
910
+ # @param input_file Input file to perform the operation on.
911
+ # @param [Hash] opts the optional parameters
912
+ # @return [String]
913
+ def convert_document_docx_to_html(input_file, opts = {})
914
+ data, _status_code, _headers = convert_document_docx_to_html_with_http_info(input_file, opts)
915
+ data
916
+ end
917
+
918
+ # Convert Word DOCX Document to HTML Document
919
+ # Convert Office Word Document (DOCX) to HTML Document
920
+ # @param input_file Input file to perform the operation on.
921
+ # @param [Hash] opts the optional parameters
922
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
923
+ def convert_document_docx_to_html_with_http_info(input_file, opts = {})
924
+ if @api_client.config.debugging
925
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_docx_to_html ...'
926
+ end
927
+ # verify the required parameter 'input_file' is set
928
+ if @api_client.config.client_side_validation && input_file.nil?
929
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_docx_to_html"
930
+ end
931
+ # resource path
932
+ local_var_path = '/convert/docx/to/html'
933
+
934
+ # query parameters
935
+ query_params = {}
936
+
937
+ # header parameters
938
+ header_params = {}
939
+ # HTTP header 'Accept' (if needed)
940
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
941
+ # HTTP header 'Content-Type'
942
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
943
+
944
+ # form parameters
945
+ form_params = {}
946
+ form_params['inputFile'] = input_file
947
+
948
+ # http body (model)
949
+ post_body = nil
950
+ auth_names = ['Apikey']
951
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
952
+ :header_params => header_params,
953
+ :query_params => query_params,
954
+ :form_params => form_params,
955
+ :body => post_body,
956
+ :auth_names => auth_names,
957
+ :return_type => 'String')
958
+ if @api_client.config.debugging
959
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_docx_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
960
+ end
961
+ return data, status_code, headers
962
+ end
963
+ # Convert Word DOCX Document to JPG/JPEG image array
964
+ # Converts an Office Word Document (DOCX) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
965
+ # @param input_file Input file to perform the operation on.
966
+ # @param [Hash] opts the optional parameters
967
+ # @option opts [Integer] :quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75.
968
+ # @return [DocxToJpgResult]
969
+ def convert_document_docx_to_jpg(input_file, opts = {})
970
+ data, _status_code, _headers = convert_document_docx_to_jpg_with_http_info(input_file, opts)
971
+ data
972
+ end
973
+
974
+ # Convert Word DOCX Document to JPG/JPEG image array
975
+ # Converts an Office Word Document (DOCX) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
976
+ # @param input_file Input file to perform the operation on.
977
+ # @param [Hash] opts the optional parameters
978
+ # @option opts [Integer] :quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75.
979
+ # @return [Array<(DocxToJpgResult, Fixnum, Hash)>] DocxToJpgResult data, response status code and response headers
980
+ def convert_document_docx_to_jpg_with_http_info(input_file, opts = {})
981
+ if @api_client.config.debugging
982
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_docx_to_jpg ...'
983
+ end
984
+ # verify the required parameter 'input_file' is set
985
+ if @api_client.config.client_side_validation && input_file.nil?
986
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_docx_to_jpg"
987
+ end
988
+ # resource path
989
+ local_var_path = '/convert/docx/to/jpg'
990
+
991
+ # query parameters
992
+ query_params = {}
993
+
994
+ # header parameters
995
+ header_params = {}
996
+ # HTTP header 'Accept' (if needed)
997
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
998
+ # HTTP header 'Content-Type'
999
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1000
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
1001
+
1002
+ # form parameters
1003
+ form_params = {}
1004
+ form_params['inputFile'] = input_file
1005
+
1006
+ # http body (model)
1007
+ post_body = nil
1008
+ auth_names = ['Apikey']
1009
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1010
+ :header_params => header_params,
1011
+ :query_params => query_params,
1012
+ :form_params => form_params,
1013
+ :body => post_body,
1014
+ :auth_names => auth_names,
1015
+ :return_type => 'DocxToJpgResult')
1016
+ if @api_client.config.debugging
1017
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_docx_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1018
+ end
1019
+ return data, status_code, headers
1020
+ end
1021
+ # Convert Word DOCX Document to PDF
1022
+ # Convert Office Word Documents (docx) to standard PDF
1023
+ # @param input_file Input file to perform the operation on.
1024
+ # @param [Hash] opts the optional parameters
1025
+ # @return [String]
1026
+ def convert_document_docx_to_pdf(input_file, opts = {})
1027
+ data, _status_code, _headers = convert_document_docx_to_pdf_with_http_info(input_file, opts)
1028
+ data
1029
+ end
1030
+
1031
+ # Convert Word DOCX Document to PDF
1032
+ # Convert Office Word Documents (docx) to standard PDF
1033
+ # @param input_file Input file to perform the operation on.
1034
+ # @param [Hash] opts the optional parameters
1035
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
1036
+ def convert_document_docx_to_pdf_with_http_info(input_file, opts = {})
1037
+ if @api_client.config.debugging
1038
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_docx_to_pdf ...'
1039
+ end
1040
+ # verify the required parameter 'input_file' is set
1041
+ if @api_client.config.client_side_validation && input_file.nil?
1042
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_docx_to_pdf"
1043
+ end
1044
+ # resource path
1045
+ local_var_path = '/convert/docx/to/pdf'
1046
+
1047
+ # query parameters
1048
+ query_params = {}
1049
+
1050
+ # header parameters
1051
+ header_params = {}
1052
+ # HTTP header 'Accept' (if needed)
1053
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
1054
+ # HTTP header 'Content-Type'
1055
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1056
+
1057
+ # form parameters
1058
+ form_params = {}
1059
+ form_params['inputFile'] = input_file
1060
+
1061
+ # http body (model)
1062
+ post_body = nil
1063
+ auth_names = ['Apikey']
1064
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1065
+ :header_params => header_params,
1066
+ :query_params => query_params,
1067
+ :form_params => form_params,
1068
+ :body => post_body,
1069
+ :auth_names => auth_names,
1070
+ :return_type => 'String')
1071
+ if @api_client.config.debugging
1072
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_docx_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1073
+ end
1074
+ return data, status_code, headers
1075
+ end
1076
+ # Convert Word DOCX Document to PNG image array
1077
+ # Converts an Office Word Document (DOCX) file to an array of PNG images, one for each page.
1078
+ # @param input_file Input file to perform the operation on.
1079
+ # @param [Hash] opts the optional parameters
1080
+ # @return [DocxToPngResult]
1081
+ def convert_document_docx_to_png(input_file, opts = {})
1082
+ data, _status_code, _headers = convert_document_docx_to_png_with_http_info(input_file, opts)
1083
+ data
1084
+ end
1085
+
1086
+ # Convert Word DOCX Document to PNG image array
1087
+ # Converts an Office Word Document (DOCX) file to an array of PNG images, one for each page.
1088
+ # @param input_file Input file to perform the operation on.
1089
+ # @param [Hash] opts the optional parameters
1090
+ # @return [Array<(DocxToPngResult, Fixnum, Hash)>] DocxToPngResult data, response status code and response headers
1091
+ def convert_document_docx_to_png_with_http_info(input_file, opts = {})
1092
+ if @api_client.config.debugging
1093
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_docx_to_png ...'
1094
+ end
1095
+ # verify the required parameter 'input_file' is set
1096
+ if @api_client.config.client_side_validation && input_file.nil?
1097
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_docx_to_png"
1098
+ end
1099
+ # resource path
1100
+ local_var_path = '/convert/docx/to/png'
1101
+
1102
+ # query parameters
1103
+ query_params = {}
1104
+
1105
+ # header parameters
1106
+ header_params = {}
1107
+ # HTTP header 'Accept' (if needed)
1108
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
1109
+ # HTTP header 'Content-Type'
1110
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1111
+
1112
+ # form parameters
1113
+ form_params = {}
1114
+ form_params['inputFile'] = input_file
1115
+
1116
+ # http body (model)
1117
+ post_body = nil
1118
+ auth_names = ['Apikey']
1119
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1120
+ :header_params => header_params,
1121
+ :query_params => query_params,
1122
+ :form_params => form_params,
1123
+ :body => post_body,
1124
+ :auth_names => auth_names,
1125
+ :return_type => 'DocxToPngResult')
1126
+ if @api_client.config.debugging
1127
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_docx_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1128
+ end
1129
+ return data, status_code, headers
1130
+ end
1131
+ # Convert Word DOCX Document to RTF
1132
+ # Convert an Office Word Document (DOCX) to Rich Text Format Document (RTF)
1133
+ # @param input_file Input file to perform the operation on.
1134
+ # @param [Hash] opts the optional parameters
1135
+ # @return [String]
1136
+ def convert_document_docx_to_rtf(input_file, opts = {})
1137
+ data, _status_code, _headers = convert_document_docx_to_rtf_with_http_info(input_file, opts)
1138
+ data
1139
+ end
1140
+
1141
+ # Convert Word DOCX Document to RTF
1142
+ # Convert an Office Word Document (DOCX) to Rich Text Format Document (RTF)
1143
+ # @param input_file Input file to perform the operation on.
1144
+ # @param [Hash] opts the optional parameters
1145
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
1146
+ def convert_document_docx_to_rtf_with_http_info(input_file, opts = {})
1147
+ if @api_client.config.debugging
1148
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_docx_to_rtf ...'
1149
+ end
1150
+ # verify the required parameter 'input_file' is set
1151
+ if @api_client.config.client_side_validation && input_file.nil?
1152
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_docx_to_rtf"
1153
+ end
1154
+ # resource path
1155
+ local_var_path = '/convert/docx/to/rtf'
1156
+
1157
+ # query parameters
1158
+ query_params = {}
1159
+
1160
+ # header parameters
1161
+ header_params = {}
1162
+ # HTTP header 'Accept' (if needed)
1163
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
1164
+ # HTTP header 'Content-Type'
1165
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1166
+
1167
+ # form parameters
1168
+ form_params = {}
1169
+ form_params['inputFile'] = input_file
1170
+
1171
+ # http body (model)
1172
+ post_body = nil
1173
+ auth_names = ['Apikey']
1174
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1175
+ :header_params => header_params,
1176
+ :query_params => query_params,
1177
+ :form_params => form_params,
1178
+ :body => post_body,
1179
+ :auth_names => auth_names,
1180
+ :return_type => 'String')
1181
+ if @api_client.config.debugging
1182
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_docx_to_rtf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1183
+ end
1184
+ return data, status_code, headers
1185
+ end
1186
+ # Convert Word DOCX Document to Text (txt)
1187
+ # Convert Office Word Documents (docx) to text
1188
+ # @param input_file Input file to perform the operation on.
1189
+ # @param [Hash] opts the optional parameters
1190
+ # @option opts [String] :text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are &#39;preserveWhitespace&#39; which will attempt to preserve whitespace in the document and relative positioning of text within the document, and &#39;minimizeWhitespace&#39; which will not insert additional spaces into the document in most cases. Default is &#39;minimizeWhitespace&#39;.
1191
+ # @return [TextConversionResult]
1192
+ def convert_document_docx_to_txt(input_file, opts = {})
1193
+ data, _status_code, _headers = convert_document_docx_to_txt_with_http_info(input_file, opts)
1194
+ data
1195
+ end
1196
+
1197
+ # Convert Word DOCX Document to Text (txt)
1198
+ # Convert Office Word Documents (docx) to text
1199
+ # @param input_file Input file to perform the operation on.
1200
+ # @param [Hash] opts the optional parameters
1201
+ # @option opts [String] :text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are &#39;preserveWhitespace&#39; which will attempt to preserve whitespace in the document and relative positioning of text within the document, and &#39;minimizeWhitespace&#39; which will not insert additional spaces into the document in most cases. Default is &#39;minimizeWhitespace&#39;.
1202
+ # @return [Array<(TextConversionResult, Fixnum, Hash)>] TextConversionResult data, response status code and response headers
1203
+ def convert_document_docx_to_txt_with_http_info(input_file, opts = {})
1204
+ if @api_client.config.debugging
1205
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_docx_to_txt ...'
1206
+ end
1207
+ # verify the required parameter 'input_file' is set
1208
+ if @api_client.config.client_side_validation && input_file.nil?
1209
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_docx_to_txt"
1210
+ end
1211
+ # resource path
1212
+ local_var_path = '/convert/docx/to/txt'
1213
+
1214
+ # query parameters
1215
+ query_params = {}
1216
+
1217
+ # header parameters
1218
+ header_params = {}
1219
+ # HTTP header 'Accept' (if needed)
1220
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
1221
+ # HTTP header 'Content-Type'
1222
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1223
+ header_params[:'textFormattingMode'] = opts[:'text_formatting_mode'] if !opts[:'text_formatting_mode'].nil?
1224
+
1225
+ # form parameters
1226
+ form_params = {}
1227
+ form_params['inputFile'] = input_file
1228
+
1229
+ # http body (model)
1230
+ post_body = nil
1231
+ auth_names = ['Apikey']
1232
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1233
+ :header_params => header_params,
1234
+ :query_params => query_params,
1235
+ :form_params => form_params,
1236
+ :body => post_body,
1237
+ :auth_names => auth_names,
1238
+ :return_type => 'TextConversionResult')
1239
+ if @api_client.config.debugging
1240
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_docx_to_txt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1241
+ end
1242
+ return data, status_code, headers
1243
+ end
1244
+ # Convert Email EML file to HTML string
1245
+ # Convert Outlook Email EML file to HTML string and attachments. Supports images if they are base 64 inline.
1246
+ # @param input_file Input file to perform the operation on.
1247
+ # @param [Hash] opts the optional parameters
1248
+ # @option opts [BOOLEAN] :body_only Optional; If true, the HTML string will only include the body of the email. Other information such as subject will still be given as properties in the response object. Default is false.
1249
+ # @option opts [BOOLEAN] :include_attachments Optional; If false, the response object will not include any attachment files from the input file. Default is true.
1250
+ # @return [EmlToHtmlResult]
1251
+ def convert_document_eml_to_html(input_file, opts = {})
1252
+ data, _status_code, _headers = convert_document_eml_to_html_with_http_info(input_file, opts)
1253
+ data
1254
+ end
1255
+
1256
+ # Convert Email EML file to HTML string
1257
+ # Convert Outlook Email EML file to HTML string and attachments. Supports images if they are base 64 inline.
1258
+ # @param input_file Input file to perform the operation on.
1259
+ # @param [Hash] opts the optional parameters
1260
+ # @option opts [BOOLEAN] :body_only Optional; If true, the HTML string will only include the body of the email. Other information such as subject will still be given as properties in the response object. Default is false.
1261
+ # @option opts [BOOLEAN] :include_attachments Optional; If false, the response object will not include any attachment files from the input file. Default is true.
1262
+ # @return [Array<(EmlToHtmlResult, Fixnum, Hash)>] EmlToHtmlResult data, response status code and response headers
1263
+ def convert_document_eml_to_html_with_http_info(input_file, opts = {})
1264
+ if @api_client.config.debugging
1265
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_eml_to_html ...'
1266
+ end
1267
+ # verify the required parameter 'input_file' is set
1268
+ if @api_client.config.client_side_validation && input_file.nil?
1269
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_eml_to_html"
1270
+ end
1271
+ # resource path
1272
+ local_var_path = '/convert/eml/to/html'
1273
+
1274
+ # query parameters
1275
+ query_params = {}
1276
+
1277
+ # header parameters
1278
+ header_params = {}
1279
+ # HTTP header 'Accept' (if needed)
1280
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
1281
+ # HTTP header 'Content-Type'
1282
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1283
+ header_params[:'bodyOnly'] = opts[:'body_only'] if !opts[:'body_only'].nil?
1284
+ header_params[:'includeAttachments'] = opts[:'include_attachments'] if !opts[:'include_attachments'].nil?
1285
+
1286
+ # form parameters
1287
+ form_params = {}
1288
+ form_params['inputFile'] = input_file
1289
+
1290
+ # http body (model)
1291
+ post_body = nil
1292
+ auth_names = ['Apikey']
1293
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1294
+ :header_params => header_params,
1295
+ :query_params => query_params,
1296
+ :form_params => form_params,
1297
+ :body => post_body,
1298
+ :auth_names => auth_names,
1299
+ :return_type => 'EmlToHtmlResult')
1300
+ if @api_client.config.debugging
1301
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_eml_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1302
+ end
1303
+ return data, status_code, headers
1304
+ end
1305
+ # Convert Email EML file to JPG/JPEG image array
1306
+ # Converts an Outlook Email File (EML) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
1307
+ # @param input_file Input file to perform the operation on.
1308
+ # @param [Hash] opts the optional parameters
1309
+ # @option opts [Integer] :quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75.
1310
+ # @return [EmlToJpgResult]
1311
+ def convert_document_eml_to_jpg(input_file, opts = {})
1312
+ data, _status_code, _headers = convert_document_eml_to_jpg_with_http_info(input_file, opts)
1313
+ data
1314
+ end
1315
+
1316
+ # Convert Email EML file to JPG/JPEG image array
1317
+ # Converts an Outlook Email File (EML) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
1318
+ # @param input_file Input file to perform the operation on.
1319
+ # @param [Hash] opts the optional parameters
1320
+ # @option opts [Integer] :quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75.
1321
+ # @return [Array<(EmlToJpgResult, Fixnum, Hash)>] EmlToJpgResult data, response status code and response headers
1322
+ def convert_document_eml_to_jpg_with_http_info(input_file, opts = {})
1323
+ if @api_client.config.debugging
1324
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_eml_to_jpg ...'
1325
+ end
1326
+ # verify the required parameter 'input_file' is set
1327
+ if @api_client.config.client_side_validation && input_file.nil?
1328
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_eml_to_jpg"
1329
+ end
1330
+ # resource path
1331
+ local_var_path = '/convert/eml/to/jpg'
1332
+
1333
+ # query parameters
1334
+ query_params = {}
1335
+
1336
+ # header parameters
1337
+ header_params = {}
1338
+ # HTTP header 'Accept' (if needed)
1339
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
1340
+ # HTTP header 'Content-Type'
1341
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1342
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
1343
+
1344
+ # form parameters
1345
+ form_params = {}
1346
+ form_params['inputFile'] = input_file
1347
+
1348
+ # http body (model)
1349
+ post_body = nil
1350
+ auth_names = ['Apikey']
1351
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1352
+ :header_params => header_params,
1353
+ :query_params => query_params,
1354
+ :form_params => form_params,
1355
+ :body => post_body,
1356
+ :auth_names => auth_names,
1357
+ :return_type => 'EmlToJpgResult')
1358
+ if @api_client.config.debugging
1359
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_eml_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1360
+ end
1361
+ return data, status_code, headers
1362
+ end
1363
+ # Convert Email EML file to PDF document
1364
+ # Convert Outlook Email EML file to PDF document. Supports images if they are base 64 inline.
1365
+ # @param input_file Input file to perform the operation on.
1366
+ # @param [Hash] opts the optional parameters
1367
+ # @option opts [BOOLEAN] :body_only Optional; If true, the HTML string will only include the body of the email. Other information such as subject will still be given as properties in the response object. Default is false.
1368
+ # @return [String]
1369
+ def convert_document_eml_to_pdf(input_file, opts = {})
1370
+ data, _status_code, _headers = convert_document_eml_to_pdf_with_http_info(input_file, opts)
1371
+ data
1372
+ end
1373
+
1374
+ # Convert Email EML file to PDF document
1375
+ # Convert Outlook Email EML file to PDF document. Supports images if they are base 64 inline.
1376
+ # @param input_file Input file to perform the operation on.
1377
+ # @param [Hash] opts the optional parameters
1378
+ # @option opts [BOOLEAN] :body_only Optional; If true, the HTML string will only include the body of the email. Other information such as subject will still be given as properties in the response object. Default is false.
1379
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
1380
+ def convert_document_eml_to_pdf_with_http_info(input_file, opts = {})
1381
+ if @api_client.config.debugging
1382
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_eml_to_pdf ...'
1383
+ end
1384
+ # verify the required parameter 'input_file' is set
1385
+ if @api_client.config.client_side_validation && input_file.nil?
1386
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_eml_to_pdf"
1387
+ end
1388
+ # resource path
1389
+ local_var_path = '/convert/eml/to/pdf'
1390
+
1391
+ # query parameters
1392
+ query_params = {}
1393
+
1394
+ # header parameters
1395
+ header_params = {}
1396
+ # HTTP header 'Accept' (if needed)
1397
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
1398
+ # HTTP header 'Content-Type'
1399
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1400
+ header_params[:'bodyOnly'] = opts[:'body_only'] if !opts[:'body_only'].nil?
1401
+
1402
+ # form parameters
1403
+ form_params = {}
1404
+ form_params['inputFile'] = input_file
1405
+
1406
+ # http body (model)
1407
+ post_body = nil
1408
+ auth_names = ['Apikey']
1409
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1410
+ :header_params => header_params,
1411
+ :query_params => query_params,
1412
+ :form_params => form_params,
1413
+ :body => post_body,
1414
+ :auth_names => auth_names,
1415
+ :return_type => 'String')
1416
+ if @api_client.config.debugging
1417
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_eml_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1418
+ end
1419
+ return data, status_code, headers
1420
+ end
1421
+ # Convert Email EML file to PNG image array
1422
+ # Converts an Outlook Email File (EML) to an array of PNG images, one for each page.
1423
+ # @param input_file Input file to perform the operation on.
1424
+ # @param [Hash] opts the optional parameters
1425
+ # @return [EmlToPngResult]
1426
+ def convert_document_eml_to_png(input_file, opts = {})
1427
+ data, _status_code, _headers = convert_document_eml_to_png_with_http_info(input_file, opts)
1428
+ data
1429
+ end
1430
+
1431
+ # Convert Email EML file to PNG image array
1432
+ # Converts an Outlook Email File (EML) to an array of PNG images, one for each page.
1433
+ # @param input_file Input file to perform the operation on.
1434
+ # @param [Hash] opts the optional parameters
1435
+ # @return [Array<(EmlToPngResult, Fixnum, Hash)>] EmlToPngResult data, response status code and response headers
1436
+ def convert_document_eml_to_png_with_http_info(input_file, opts = {})
1437
+ if @api_client.config.debugging
1438
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_eml_to_png ...'
1439
+ end
1440
+ # verify the required parameter 'input_file' is set
1441
+ if @api_client.config.client_side_validation && input_file.nil?
1442
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_eml_to_png"
1443
+ end
1444
+ # resource path
1445
+ local_var_path = '/convert/eml/to/png'
1446
+
1447
+ # query parameters
1448
+ query_params = {}
1449
+
1450
+ # header parameters
1451
+ header_params = {}
1452
+ # HTTP header 'Accept' (if needed)
1453
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
1454
+ # HTTP header 'Content-Type'
1455
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1456
+
1457
+ # form parameters
1458
+ form_params = {}
1459
+ form_params['inputFile'] = input_file
1460
+
1461
+ # http body (model)
1462
+ post_body = nil
1463
+ auth_names = ['Apikey']
1464
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1465
+ :header_params => header_params,
1466
+ :query_params => query_params,
1467
+ :form_params => form_params,
1468
+ :body => post_body,
1469
+ :auth_names => auth_names,
1470
+ :return_type => 'EmlToPngResult')
1471
+ if @api_client.config.debugging
1472
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_eml_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1473
+ end
1474
+ return data, status_code, headers
1475
+ end
1476
+ # Get PNG icon file for the file extension
1477
+ # Returns a PNG icon for the given file format extension as a file for download. User may specify the icon size. Supports over 100 file formats, with a generic icon for unsupported formats.
1478
+ # @param file_extension Required; The file extension to be used for the icon. Limited to 4 AlphaNumeric characters.
1479
+ # @param [Hash] opts the optional parameters
1480
+ # @option opts [Integer] :icon_size Optional; The desired width of the icon, preserving its aspect ratio.
1481
+ # @return [String]
1482
+ def convert_document_get_file_type_icon(file_extension, opts = {})
1483
+ data, _status_code, _headers = convert_document_get_file_type_icon_with_http_info(file_extension, opts)
1484
+ data
1485
+ end
1486
+
1487
+ # Get PNG icon file for the file extension
1488
+ # Returns a PNG icon for the given file format extension as a file for download. User may specify the icon size. Supports over 100 file formats, with a generic icon for unsupported formats.
1489
+ # @param file_extension Required; The file extension to be used for the icon. Limited to 4 AlphaNumeric characters.
1490
+ # @param [Hash] opts the optional parameters
1491
+ # @option opts [Integer] :icon_size Optional; The desired width of the icon, preserving its aspect ratio.
1492
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
1493
+ def convert_document_get_file_type_icon_with_http_info(file_extension, opts = {})
1494
+ if @api_client.config.debugging
1495
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_get_file_type_icon ...'
1496
+ end
1497
+ # verify the required parameter 'file_extension' is set
1498
+ if @api_client.config.client_side_validation && file_extension.nil?
1499
+ fail ArgumentError, "Missing the required parameter 'file_extension' when calling ConvertDocumentApi.convert_document_get_file_type_icon"
1500
+ end
1501
+ # resource path
1502
+ local_var_path = '/convert/autodetect/get-icon'
1503
+
1504
+ # query parameters
1505
+ query_params = {}
1506
+
1507
+ # header parameters
1508
+ header_params = {}
1509
+ # HTTP header 'Accept' (if needed)
1510
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
1511
+ header_params[:'fileExtension'] = file_extension
1512
+ header_params[:'iconSize'] = opts[:'icon_size'] if !opts[:'icon_size'].nil?
1513
+
1514
+ # form parameters
1515
+ form_params = {}
1516
+
1517
+ # http body (model)
1518
+ post_body = nil
1519
+ auth_names = ['Apikey']
1520
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1521
+ :header_params => header_params,
1522
+ :query_params => query_params,
1523
+ :form_params => form_params,
1524
+ :body => post_body,
1525
+ :auth_names => auth_names,
1526
+ :return_type => 'String')
1527
+ if @api_client.config.debugging
1528
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_get_file_type_icon\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1529
+ end
1530
+ return data, status_code, headers
1531
+ end
1532
+ # Get PNG icon byte array for the file extension
1533
+ # Returns a PNG icon for the given file format extension directly as a byte array. User may specify the icon size. Supports over 100 file formats, with a generic icon for unsupported formats.
1534
+ # @param file_extension Required; The file extension to be used for the icon. Limited to 4 AlphaNumeric characters.
1535
+ # @param [Hash] opts the optional parameters
1536
+ # @option opts [Integer] :icon_size Optional; The desired width of the icon, preserving its aspect ratio.
1537
+ # @return [GetFileTypeIconResult]
1538
+ def convert_document_get_file_type_icon_advanced(file_extension, opts = {})
1539
+ data, _status_code, _headers = convert_document_get_file_type_icon_advanced_with_http_info(file_extension, opts)
1540
+ data
1541
+ end
1542
+
1543
+ # Get PNG icon byte array for the file extension
1544
+ # Returns a PNG icon for the given file format extension directly as a byte array. User may specify the icon size. Supports over 100 file formats, with a generic icon for unsupported formats.
1545
+ # @param file_extension Required; The file extension to be used for the icon. Limited to 4 AlphaNumeric characters.
1546
+ # @param [Hash] opts the optional parameters
1547
+ # @option opts [Integer] :icon_size Optional; The desired width of the icon, preserving its aspect ratio.
1548
+ # @return [Array<(GetFileTypeIconResult, Fixnum, Hash)>] GetFileTypeIconResult data, response status code and response headers
1549
+ def convert_document_get_file_type_icon_advanced_with_http_info(file_extension, opts = {})
1550
+ if @api_client.config.debugging
1551
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_get_file_type_icon_advanced ...'
1552
+ end
1553
+ # verify the required parameter 'file_extension' is set
1554
+ if @api_client.config.client_side_validation && file_extension.nil?
1555
+ fail ArgumentError, "Missing the required parameter 'file_extension' when calling ConvertDocumentApi.convert_document_get_file_type_icon_advanced"
1556
+ end
1557
+ # resource path
1558
+ local_var_path = '/convert/autodetect/get-icon/advanced'
1559
+
1560
+ # query parameters
1561
+ query_params = {}
1562
+
1563
+ # header parameters
1564
+ header_params = {}
1565
+ # HTTP header 'Accept' (if needed)
1566
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
1567
+ header_params[:'fileExtension'] = file_extension
1568
+ header_params[:'iconSize'] = opts[:'icon_size'] if !opts[:'icon_size'].nil?
1569
+
1570
+ # form parameters
1571
+ form_params = {}
1572
+
1573
+ # http body (model)
1574
+ post_body = nil
1575
+ auth_names = ['Apikey']
1576
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1577
+ :header_params => header_params,
1578
+ :query_params => query_params,
1579
+ :form_params => form_params,
1580
+ :body => post_body,
1581
+ :auth_names => auth_names,
1582
+ :return_type => 'GetFileTypeIconResult')
1583
+ if @api_client.config.debugging
1584
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_get_file_type_icon_advanced\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1585
+ end
1586
+ return data, status_code, headers
1587
+ end
1588
+ # Convert HTML document file to PDF Document
1589
+ # Convert standard HTML, with full support for CSS, JavaScript, Images, and other complex behavior to PDF. To use external files such as images, use an absolute URL to the file.
1590
+ # @param input_file Input file to perform the operation on.
1591
+ # @param [Hash] opts the optional parameters
1592
+ # @option opts [BOOLEAN] :include_background_graphics Optional: Set to true to include background graphics in the PDF, or false to not include. Default is true.
1593
+ # @option opts [Integer] :scale_factor Optional: Set to 100 to scale at 100%, set to 50% to scale down to 50% scale, set to 200% to scale up to 200% scale, etc. Default is 100%. Maximum is 1000%.
1594
+ # @return [String]
1595
+ def convert_document_html_to_pdf(input_file, opts = {})
1596
+ data, _status_code, _headers = convert_document_html_to_pdf_with_http_info(input_file, opts)
1597
+ data
1598
+ end
1599
+
1600
+ # Convert HTML document file to PDF Document
1601
+ # Convert standard HTML, with full support for CSS, JavaScript, Images, and other complex behavior to PDF. To use external files such as images, use an absolute URL to the file.
1602
+ # @param input_file Input file to perform the operation on.
1603
+ # @param [Hash] opts the optional parameters
1604
+ # @option opts [BOOLEAN] :include_background_graphics Optional: Set to true to include background graphics in the PDF, or false to not include. Default is true.
1605
+ # @option opts [Integer] :scale_factor Optional: Set to 100 to scale at 100%, set to 50% to scale down to 50% scale, set to 200% to scale up to 200% scale, etc. Default is 100%. Maximum is 1000%.
1606
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
1607
+ def convert_document_html_to_pdf_with_http_info(input_file, opts = {})
1608
+ if @api_client.config.debugging
1609
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_html_to_pdf ...'
1610
+ end
1611
+ # verify the required parameter 'input_file' is set
1612
+ if @api_client.config.client_side_validation && input_file.nil?
1613
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_html_to_pdf"
1614
+ end
1615
+ # resource path
1616
+ local_var_path = '/convert/html/to/pdf'
1617
+
1618
+ # query parameters
1619
+ query_params = {}
1620
+
1621
+ # header parameters
1622
+ header_params = {}
1623
+ # HTTP header 'Accept' (if needed)
1624
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
1625
+ # HTTP header 'Content-Type'
1626
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1627
+ header_params[:'includeBackgroundGraphics'] = opts[:'include_background_graphics'] if !opts[:'include_background_graphics'].nil?
1628
+ header_params[:'scaleFactor'] = opts[:'scale_factor'] if !opts[:'scale_factor'].nil?
1629
+
1630
+ # form parameters
1631
+ form_params = {}
1632
+ form_params['inputFile'] = input_file
1633
+
1634
+ # http body (model)
1635
+ post_body = nil
1636
+ auth_names = ['Apikey']
1637
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1638
+ :header_params => header_params,
1639
+ :query_params => query_params,
1640
+ :form_params => form_params,
1641
+ :body => post_body,
1642
+ :auth_names => auth_names,
1643
+ :return_type => 'String')
1644
+ if @api_client.config.debugging
1645
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_html_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1646
+ end
1647
+ return data, status_code, headers
1648
+ end
1649
+ # Convert HTML document file to PNG image array
1650
+ # Convert standard HTML, with full support for CSS, JavaScript, Images, and other complex behavior to an array of PNG images, one for each page. To use external files in your HTML such as images, use an absolute URL to the file.
1651
+ # @param input_file Input file to perform the operation on.
1652
+ # @param [Hash] opts the optional parameters
1653
+ # @return [PdfToPngResult]
1654
+ def convert_document_html_to_png(input_file, opts = {})
1655
+ data, _status_code, _headers = convert_document_html_to_png_with_http_info(input_file, opts)
1656
+ data
1657
+ end
1658
+
1659
+ # Convert HTML document file to PNG image array
1660
+ # Convert standard HTML, with full support for CSS, JavaScript, Images, and other complex behavior to an array of PNG images, one for each page. To use external files in your HTML such as images, use an absolute URL to the file.
1661
+ # @param input_file Input file to perform the operation on.
1662
+ # @param [Hash] opts the optional parameters
1663
+ # @return [Array<(PdfToPngResult, Fixnum, Hash)>] PdfToPngResult data, response status code and response headers
1664
+ def convert_document_html_to_png_with_http_info(input_file, opts = {})
1665
+ if @api_client.config.debugging
1666
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_html_to_png ...'
1667
+ end
1668
+ # verify the required parameter 'input_file' is set
1669
+ if @api_client.config.client_side_validation && input_file.nil?
1670
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_html_to_png"
1671
+ end
1672
+ # resource path
1673
+ local_var_path = '/convert/html/to/png'
1674
+
1675
+ # query parameters
1676
+ query_params = {}
1677
+
1678
+ # header parameters
1679
+ header_params = {}
1680
+ # HTTP header 'Accept' (if needed)
1681
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
1682
+ # HTTP header 'Content-Type'
1683
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1684
+
1685
+ # form parameters
1686
+ form_params = {}
1687
+ form_params['inputFile'] = input_file
1688
+
1689
+ # http body (model)
1690
+ post_body = nil
1691
+ auth_names = ['Apikey']
1692
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1693
+ :header_params => header_params,
1694
+ :query_params => query_params,
1695
+ :form_params => form_params,
1696
+ :body => post_body,
1697
+ :auth_names => auth_names,
1698
+ :return_type => 'PdfToPngResult')
1699
+ if @api_client.config.debugging
1700
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_html_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1701
+ end
1702
+ return data, status_code, headers
1703
+ end
1704
+ # HTML Document file to Text (txt)
1705
+ # HTML document to text
1706
+ # @param input_file Input file to perform the operation on.
1707
+ # @param [Hash] opts the optional parameters
1708
+ # @return [TextConversionResult]
1709
+ def convert_document_html_to_txt(input_file, opts = {})
1710
+ data, _status_code, _headers = convert_document_html_to_txt_with_http_info(input_file, opts)
1711
+ data
1712
+ end
1713
+
1714
+ # HTML Document file to Text (txt)
1715
+ # HTML document to text
1716
+ # @param input_file Input file to perform the operation on.
1717
+ # @param [Hash] opts the optional parameters
1718
+ # @return [Array<(TextConversionResult, Fixnum, Hash)>] TextConversionResult data, response status code and response headers
1719
+ def convert_document_html_to_txt_with_http_info(input_file, opts = {})
1720
+ if @api_client.config.debugging
1721
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_html_to_txt ...'
1722
+ end
1723
+ # verify the required parameter 'input_file' is set
1724
+ if @api_client.config.client_side_validation && input_file.nil?
1725
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_html_to_txt"
1726
+ end
1727
+ # resource path
1728
+ local_var_path = '/convert/html/to/txt'
1729
+
1730
+ # query parameters
1731
+ query_params = {}
1732
+
1733
+ # header parameters
1734
+ header_params = {}
1735
+ # HTTP header 'Accept' (if needed)
1736
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
1737
+ # HTTP header 'Content-Type'
1738
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1739
+
1740
+ # form parameters
1741
+ form_params = {}
1742
+ form_params['inputFile'] = input_file
1743
+
1744
+ # http body (model)
1745
+ post_body = nil
1746
+ auth_names = ['Apikey']
1747
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1748
+ :header_params => header_params,
1749
+ :query_params => query_params,
1750
+ :form_params => form_params,
1751
+ :body => post_body,
1752
+ :auth_names => auth_names,
1753
+ :return_type => 'TextConversionResult')
1754
+ if @api_client.config.debugging
1755
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_html_to_txt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1756
+ end
1757
+ return data, status_code, headers
1758
+ end
1759
+ # Convert Keynote Presentation (KEY) to JPG/JPEG image array
1760
+ # Converts a Mac Keynote Presentation (KEY) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
1761
+ # @param input_file Input file to perform the operation on.
1762
+ # @param [Hash] opts the optional parameters
1763
+ # @option opts [Integer] :quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75.
1764
+ # @return [KeynoteToJpgResult]
1765
+ def convert_document_keynote_to_jpg(input_file, opts = {})
1766
+ data, _status_code, _headers = convert_document_keynote_to_jpg_with_http_info(input_file, opts)
1767
+ data
1768
+ end
1769
+
1770
+ # Convert Keynote Presentation (KEY) to JPG/JPEG image array
1771
+ # Converts a Mac Keynote Presentation (KEY) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
1772
+ # @param input_file Input file to perform the operation on.
1773
+ # @param [Hash] opts the optional parameters
1774
+ # @option opts [Integer] :quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75.
1775
+ # @return [Array<(KeynoteToJpgResult, Fixnum, Hash)>] KeynoteToJpgResult data, response status code and response headers
1776
+ def convert_document_keynote_to_jpg_with_http_info(input_file, opts = {})
1777
+ if @api_client.config.debugging
1778
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_keynote_to_jpg ...'
1779
+ end
1780
+ # verify the required parameter 'input_file' is set
1781
+ if @api_client.config.client_side_validation && input_file.nil?
1782
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_keynote_to_jpg"
1783
+ end
1784
+ # resource path
1785
+ local_var_path = '/convert/key/to/jpg'
1786
+
1787
+ # query parameters
1788
+ query_params = {}
1789
+
1790
+ # header parameters
1791
+ header_params = {}
1792
+ # HTTP header 'Accept' (if needed)
1793
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
1794
+ # HTTP header 'Content-Type'
1795
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1796
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
1797
+
1798
+ # form parameters
1799
+ form_params = {}
1800
+ form_params['inputFile'] = input_file
1801
+
1802
+ # http body (model)
1803
+ post_body = nil
1804
+ auth_names = ['Apikey']
1805
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1806
+ :header_params => header_params,
1807
+ :query_params => query_params,
1808
+ :form_params => form_params,
1809
+ :body => post_body,
1810
+ :auth_names => auth_names,
1811
+ :return_type => 'KeynoteToJpgResult')
1812
+ if @api_client.config.debugging
1813
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_keynote_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1814
+ end
1815
+ return data, status_code, headers
1816
+ end
1817
+ # Convert Keynote Presentation (KEY) to PDF
1818
+ # Convert Mac Keynote Presentation (KEY) to standard PDF
1819
+ # @param input_file Input file to perform the operation on.
1820
+ # @param [Hash] opts the optional parameters
1821
+ # @return [String]
1822
+ def convert_document_keynote_to_pdf(input_file, opts = {})
1823
+ data, _status_code, _headers = convert_document_keynote_to_pdf_with_http_info(input_file, opts)
1824
+ data
1825
+ end
1826
+
1827
+ # Convert Keynote Presentation (KEY) to PDF
1828
+ # Convert Mac Keynote Presentation (KEY) to standard PDF
1829
+ # @param input_file Input file to perform the operation on.
1830
+ # @param [Hash] opts the optional parameters
1831
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
1832
+ def convert_document_keynote_to_pdf_with_http_info(input_file, opts = {})
1833
+ if @api_client.config.debugging
1834
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_keynote_to_pdf ...'
1835
+ end
1836
+ # verify the required parameter 'input_file' is set
1837
+ if @api_client.config.client_side_validation && input_file.nil?
1838
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_keynote_to_pdf"
1839
+ end
1840
+ # resource path
1841
+ local_var_path = '/convert/key/to/pdf'
1842
+
1843
+ # query parameters
1844
+ query_params = {}
1845
+
1846
+ # header parameters
1847
+ header_params = {}
1848
+ # HTTP header 'Accept' (if needed)
1849
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
1850
+ # HTTP header 'Content-Type'
1851
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1852
+
1853
+ # form parameters
1854
+ form_params = {}
1855
+ form_params['inputFile'] = input_file
1856
+
1857
+ # http body (model)
1858
+ post_body = nil
1859
+ auth_names = ['Apikey']
1860
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1861
+ :header_params => header_params,
1862
+ :query_params => query_params,
1863
+ :form_params => form_params,
1864
+ :body => post_body,
1865
+ :auth_names => auth_names,
1866
+ :return_type => 'String')
1867
+ if @api_client.config.debugging
1868
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_keynote_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1869
+ end
1870
+ return data, status_code, headers
1871
+ end
1872
+ # Convert Keynote Presentation (KEY) to PNG image array
1873
+ # Converts a Mac Keynote Presentation (KEY) to an array of PNG images, one for each page.
1874
+ # @param input_file Input file to perform the operation on.
1875
+ # @param [Hash] opts the optional parameters
1876
+ # @return [KeynoteToPngResult]
1877
+ def convert_document_keynote_to_png(input_file, opts = {})
1878
+ data, _status_code, _headers = convert_document_keynote_to_png_with_http_info(input_file, opts)
1879
+ data
1880
+ end
1881
+
1882
+ # Convert Keynote Presentation (KEY) to PNG image array
1883
+ # Converts a Mac Keynote Presentation (KEY) to an array of PNG images, one for each page.
1884
+ # @param input_file Input file to perform the operation on.
1885
+ # @param [Hash] opts the optional parameters
1886
+ # @return [Array<(KeynoteToPngResult, Fixnum, Hash)>] KeynoteToPngResult data, response status code and response headers
1887
+ def convert_document_keynote_to_png_with_http_info(input_file, opts = {})
1888
+ if @api_client.config.debugging
1889
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_keynote_to_png ...'
1890
+ end
1891
+ # verify the required parameter 'input_file' is set
1892
+ if @api_client.config.client_side_validation && input_file.nil?
1893
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_keynote_to_png"
1894
+ end
1895
+ # resource path
1896
+ local_var_path = '/convert/key/to/png'
1897
+
1898
+ # query parameters
1899
+ query_params = {}
1900
+
1901
+ # header parameters
1902
+ header_params = {}
1903
+ # HTTP header 'Accept' (if needed)
1904
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
1905
+ # HTTP header 'Content-Type'
1906
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1907
+
1908
+ # form parameters
1909
+ form_params = {}
1910
+ form_params['inputFile'] = input_file
1911
+
1912
+ # http body (model)
1913
+ post_body = nil
1914
+ auth_names = ['Apikey']
1915
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1916
+ :header_params => header_params,
1917
+ :query_params => query_params,
1918
+ :form_params => form_params,
1919
+ :body => post_body,
1920
+ :auth_names => auth_names,
1921
+ :return_type => 'KeynoteToPngResult')
1922
+ if @api_client.config.debugging
1923
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_keynote_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1924
+ end
1925
+ return data, status_code, headers
1926
+ end
1927
+ # Convert Keynote Presentation (KEY) to PPTX
1928
+ # Convert Mac Keynote Presentation (KEY) to PowerPoint Presentation (PPTX)
1929
+ # @param input_file Input file to perform the operation on.
1930
+ # @param [Hash] opts the optional parameters
1931
+ # @return [String]
1932
+ def convert_document_keynote_to_pptx(input_file, opts = {})
1933
+ data, _status_code, _headers = convert_document_keynote_to_pptx_with_http_info(input_file, opts)
1934
+ data
1935
+ end
1936
+
1937
+ # Convert Keynote Presentation (KEY) to PPTX
1938
+ # Convert Mac Keynote Presentation (KEY) to PowerPoint Presentation (PPTX)
1939
+ # @param input_file Input file to perform the operation on.
1940
+ # @param [Hash] opts the optional parameters
1941
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
1942
+ def convert_document_keynote_to_pptx_with_http_info(input_file, opts = {})
1943
+ if @api_client.config.debugging
1944
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_keynote_to_pptx ...'
1945
+ end
1946
+ # verify the required parameter 'input_file' is set
1947
+ if @api_client.config.client_side_validation && input_file.nil?
1948
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_keynote_to_pptx"
1949
+ end
1950
+ # resource path
1951
+ local_var_path = '/convert/key/to/pptx'
1952
+
1953
+ # query parameters
1954
+ query_params = {}
1955
+
1956
+ # header parameters
1957
+ header_params = {}
1958
+ # HTTP header 'Accept' (if needed)
1959
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
1960
+ # HTTP header 'Content-Type'
1961
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1962
+
1963
+ # form parameters
1964
+ form_params = {}
1965
+ form_params['inputFile'] = input_file
1966
+
1967
+ # http body (model)
1968
+ post_body = nil
1969
+ auth_names = ['Apikey']
1970
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1971
+ :header_params => header_params,
1972
+ :query_params => query_params,
1973
+ :form_params => form_params,
1974
+ :body => post_body,
1975
+ :auth_names => auth_names,
1976
+ :return_type => 'String')
1977
+ if @api_client.config.debugging
1978
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_keynote_to_pptx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1979
+ end
1980
+ return data, status_code, headers
1981
+ end
1982
+ # Convert Email MSG file to HTML string
1983
+ # Convert Outlook Email MSG file to HTML string and attachments. Supports images if they are base 64 inline. Supports most, but not all, RTF bodied MSG files.
1984
+ # @param input_file Input file to perform the operation on.
1985
+ # @param [Hash] opts the optional parameters
1986
+ # @option opts [BOOLEAN] :body_only Optional; If true, the HTML string will only include the body of the MSG. Other information such as subject will still be given as properties in the response object. Default is false.
1987
+ # @option opts [BOOLEAN] :include_attachments Optional; If false, the response object will not include any attachment files from the input file. Default is true.
1988
+ # @return [MsgToHtmlResult]
1989
+ def convert_document_msg_to_html(input_file, opts = {})
1990
+ data, _status_code, _headers = convert_document_msg_to_html_with_http_info(input_file, opts)
1991
+ data
1992
+ end
1993
+
1994
+ # Convert Email MSG file to HTML string
1995
+ # Convert Outlook Email MSG file to HTML string and attachments. Supports images if they are base 64 inline. Supports most, but not all, RTF bodied MSG files.
1996
+ # @param input_file Input file to perform the operation on.
1997
+ # @param [Hash] opts the optional parameters
1998
+ # @option opts [BOOLEAN] :body_only Optional; If true, the HTML string will only include the body of the MSG. Other information such as subject will still be given as properties in the response object. Default is false.
1999
+ # @option opts [BOOLEAN] :include_attachments Optional; If false, the response object will not include any attachment files from the input file. Default is true.
2000
+ # @return [Array<(MsgToHtmlResult, Fixnum, Hash)>] MsgToHtmlResult data, response status code and response headers
2001
+ def convert_document_msg_to_html_with_http_info(input_file, opts = {})
2002
+ if @api_client.config.debugging
2003
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_msg_to_html ...'
2004
+ end
2005
+ # verify the required parameter 'input_file' is set
2006
+ if @api_client.config.client_side_validation && input_file.nil?
2007
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_msg_to_html"
2008
+ end
2009
+ # resource path
2010
+ local_var_path = '/convert/msg/to/html'
2011
+
2012
+ # query parameters
2013
+ query_params = {}
2014
+
2015
+ # header parameters
2016
+ header_params = {}
2017
+ # HTTP header 'Accept' (if needed)
2018
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
2019
+ # HTTP header 'Content-Type'
2020
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2021
+ header_params[:'bodyOnly'] = opts[:'body_only'] if !opts[:'body_only'].nil?
2022
+ header_params[:'includeAttachments'] = opts[:'include_attachments'] if !opts[:'include_attachments'].nil?
2023
+
2024
+ # form parameters
2025
+ form_params = {}
2026
+ form_params['inputFile'] = input_file
2027
+
2028
+ # http body (model)
2029
+ post_body = nil
2030
+ auth_names = ['Apikey']
2031
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2032
+ :header_params => header_params,
2033
+ :query_params => query_params,
2034
+ :form_params => form_params,
2035
+ :body => post_body,
2036
+ :auth_names => auth_names,
2037
+ :return_type => 'MsgToHtmlResult')
2038
+ if @api_client.config.debugging
2039
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_msg_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2040
+ end
2041
+ return data, status_code, headers
2042
+ end
2043
+ # Convert Email MSG file to JPG/JPEG image array
2044
+ # Converts an Outlook Message File (MSG) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
2045
+ # @param input_file Input file to perform the operation on.
2046
+ # @param [Hash] opts the optional parameters
2047
+ # @option opts [Integer] :quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75.
2048
+ # @return [MsgToJpgResult]
2049
+ def convert_document_msg_to_jpg(input_file, opts = {})
2050
+ data, _status_code, _headers = convert_document_msg_to_jpg_with_http_info(input_file, opts)
2051
+ data
2052
+ end
2053
+
2054
+ # Convert Email MSG file to JPG/JPEG image array
2055
+ # Converts an Outlook Message File (MSG) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
2056
+ # @param input_file Input file to perform the operation on.
2057
+ # @param [Hash] opts the optional parameters
2058
+ # @option opts [Integer] :quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75.
2059
+ # @return [Array<(MsgToJpgResult, Fixnum, Hash)>] MsgToJpgResult data, response status code and response headers
2060
+ def convert_document_msg_to_jpg_with_http_info(input_file, opts = {})
2061
+ if @api_client.config.debugging
2062
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_msg_to_jpg ...'
2063
+ end
2064
+ # verify the required parameter 'input_file' is set
2065
+ if @api_client.config.client_side_validation && input_file.nil?
2066
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_msg_to_jpg"
2067
+ end
2068
+ # resource path
2069
+ local_var_path = '/convert/msg/to/jpg'
2070
+
2071
+ # query parameters
2072
+ query_params = {}
2073
+
2074
+ # header parameters
2075
+ header_params = {}
2076
+ # HTTP header 'Accept' (if needed)
2077
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
2078
+ # HTTP header 'Content-Type'
2079
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2080
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
2081
+
2082
+ # form parameters
2083
+ form_params = {}
2084
+ form_params['inputFile'] = input_file
2085
+
2086
+ # http body (model)
2087
+ post_body = nil
2088
+ auth_names = ['Apikey']
2089
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2090
+ :header_params => header_params,
2091
+ :query_params => query_params,
2092
+ :form_params => form_params,
2093
+ :body => post_body,
2094
+ :auth_names => auth_names,
2095
+ :return_type => 'MsgToJpgResult')
2096
+ if @api_client.config.debugging
2097
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_msg_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2098
+ end
2099
+ return data, status_code, headers
2100
+ end
2101
+ # Convert Email MSG file to PDF document
2102
+ # Convert Outlook Email MSG file to PDF document. Supports images if they are base 64 inline. Supports most, but not all, RTF bodied MSG files.
2103
+ # @param input_file Input file to perform the operation on.
2104
+ # @param [Hash] opts the optional parameters
2105
+ # @option opts [BOOLEAN] :body_only Optional; If true, the HTML string will only include the body of the email. Other information such as subject will still be given as properties in the response object. Default is false.
2106
+ # @return [String]
2107
+ def convert_document_msg_to_pdf(input_file, opts = {})
2108
+ data, _status_code, _headers = convert_document_msg_to_pdf_with_http_info(input_file, opts)
2109
+ data
2110
+ end
2111
+
2112
+ # Convert Email MSG file to PDF document
2113
+ # Convert Outlook Email MSG file to PDF document. Supports images if they are base 64 inline. Supports most, but not all, RTF bodied MSG files.
2114
+ # @param input_file Input file to perform the operation on.
2115
+ # @param [Hash] opts the optional parameters
2116
+ # @option opts [BOOLEAN] :body_only Optional; If true, the HTML string will only include the body of the email. Other information such as subject will still be given as properties in the response object. Default is false.
2117
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2118
+ def convert_document_msg_to_pdf_with_http_info(input_file, opts = {})
2119
+ if @api_client.config.debugging
2120
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_msg_to_pdf ...'
2121
+ end
2122
+ # verify the required parameter 'input_file' is set
2123
+ if @api_client.config.client_side_validation && input_file.nil?
2124
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_msg_to_pdf"
2125
+ end
2126
+ # resource path
2127
+ local_var_path = '/convert/msg/to/pdf'
2128
+
2129
+ # query parameters
2130
+ query_params = {}
2131
+
2132
+ # header parameters
2133
+ header_params = {}
2134
+ # HTTP header 'Accept' (if needed)
2135
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
2136
+ # HTTP header 'Content-Type'
2137
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2138
+ header_params[:'bodyOnly'] = opts[:'body_only'] if !opts[:'body_only'].nil?
2139
+
2140
+ # form parameters
2141
+ form_params = {}
2142
+ form_params['inputFile'] = input_file
2143
+
2144
+ # http body (model)
2145
+ post_body = nil
2146
+ auth_names = ['Apikey']
2147
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2148
+ :header_params => header_params,
2149
+ :query_params => query_params,
2150
+ :form_params => form_params,
2151
+ :body => post_body,
2152
+ :auth_names => auth_names,
2153
+ :return_type => 'String')
2154
+ if @api_client.config.debugging
2155
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_msg_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2156
+ end
2157
+ return data, status_code, headers
2158
+ end
2159
+ # Convert Email MSG file to PNG image array
2160
+ # Converts an Outlook Email Message File (MSG) to an array of PNG images, one for each page.
2161
+ # @param input_file Input file to perform the operation on.
2162
+ # @param [Hash] opts the optional parameters
2163
+ # @return [MsgToPngResult]
2164
+ def convert_document_msg_to_png(input_file, opts = {})
2165
+ data, _status_code, _headers = convert_document_msg_to_png_with_http_info(input_file, opts)
2166
+ data
2167
+ end
2168
+
2169
+ # Convert Email MSG file to PNG image array
2170
+ # Converts an Outlook Email Message File (MSG) to an array of PNG images, one for each page.
2171
+ # @param input_file Input file to perform the operation on.
2172
+ # @param [Hash] opts the optional parameters
2173
+ # @return [Array<(MsgToPngResult, Fixnum, Hash)>] MsgToPngResult data, response status code and response headers
2174
+ def convert_document_msg_to_png_with_http_info(input_file, opts = {})
2175
+ if @api_client.config.debugging
2176
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_msg_to_png ...'
2177
+ end
2178
+ # verify the required parameter 'input_file' is set
2179
+ if @api_client.config.client_side_validation && input_file.nil?
2180
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_msg_to_png"
2181
+ end
2182
+ # resource path
2183
+ local_var_path = '/convert/msg/to/png'
2184
+
2185
+ # query parameters
2186
+ query_params = {}
2187
+
2188
+ # header parameters
2189
+ header_params = {}
2190
+ # HTTP header 'Accept' (if needed)
2191
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
2192
+ # HTTP header 'Content-Type'
2193
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2194
+
2195
+ # form parameters
2196
+ form_params = {}
2197
+ form_params['inputFile'] = input_file
2198
+
2199
+ # http body (model)
2200
+ post_body = nil
2201
+ auth_names = ['Apikey']
2202
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2203
+ :header_params => header_params,
2204
+ :query_params => query_params,
2205
+ :form_params => form_params,
2206
+ :body => post_body,
2207
+ :auth_names => auth_names,
2208
+ :return_type => 'MsgToPngResult')
2209
+ if @api_client.config.debugging
2210
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_msg_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2211
+ end
2212
+ return data, status_code, headers
2213
+ end
2214
+ # Convert ODP Presentation to JPG/JPEG image array
2215
+ # Converts an Open Document Presentation (ODP) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
2216
+ # @param input_file Input file to perform the operation on.
2217
+ # @param [Hash] opts the optional parameters
2218
+ # @option opts [Integer] :quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75.
2219
+ # @return [OdpToJpgResult]
2220
+ def convert_document_odp_to_jpg(input_file, opts = {})
2221
+ data, _status_code, _headers = convert_document_odp_to_jpg_with_http_info(input_file, opts)
2222
+ data
2223
+ end
2224
+
2225
+ # Convert ODP Presentation to JPG/JPEG image array
2226
+ # Converts an Open Document Presentation (ODP) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
2227
+ # @param input_file Input file to perform the operation on.
2228
+ # @param [Hash] opts the optional parameters
2229
+ # @option opts [Integer] :quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75.
2230
+ # @return [Array<(OdpToJpgResult, Fixnum, Hash)>] OdpToJpgResult data, response status code and response headers
2231
+ def convert_document_odp_to_jpg_with_http_info(input_file, opts = {})
2232
+ if @api_client.config.debugging
2233
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_odp_to_jpg ...'
2234
+ end
2235
+ # verify the required parameter 'input_file' is set
2236
+ if @api_client.config.client_side_validation && input_file.nil?
2237
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_odp_to_jpg"
2238
+ end
2239
+ # resource path
2240
+ local_var_path = '/convert/odp/to/jpg'
2241
+
2242
+ # query parameters
2243
+ query_params = {}
2244
+
2245
+ # header parameters
2246
+ header_params = {}
2247
+ # HTTP header 'Accept' (if needed)
2248
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
2249
+ # HTTP header 'Content-Type'
2250
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2251
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
2252
+
2253
+ # form parameters
2254
+ form_params = {}
2255
+ form_params['inputFile'] = input_file
2256
+
2257
+ # http body (model)
2258
+ post_body = nil
2259
+ auth_names = ['Apikey']
2260
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2261
+ :header_params => header_params,
2262
+ :query_params => query_params,
2263
+ :form_params => form_params,
2264
+ :body => post_body,
2265
+ :auth_names => auth_names,
2266
+ :return_type => 'OdpToJpgResult')
2267
+ if @api_client.config.debugging
2268
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_odp_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2269
+ end
2270
+ return data, status_code, headers
2271
+ end
2272
+ # Convert ODP Presentation to PDF
2273
+ # Convert Office Open Document Presentation (ODP) to standard PDF
2274
+ # @param input_file Input file to perform the operation on.
2275
+ # @param [Hash] opts the optional parameters
2276
+ # @return [String]
2277
+ def convert_document_odp_to_pdf(input_file, opts = {})
2278
+ data, _status_code, _headers = convert_document_odp_to_pdf_with_http_info(input_file, opts)
2279
+ data
2280
+ end
2281
+
2282
+ # Convert ODP Presentation to PDF
2283
+ # Convert Office Open Document Presentation (ODP) to standard PDF
2284
+ # @param input_file Input file to perform the operation on.
2285
+ # @param [Hash] opts the optional parameters
2286
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2287
+ def convert_document_odp_to_pdf_with_http_info(input_file, opts = {})
2288
+ if @api_client.config.debugging
2289
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_odp_to_pdf ...'
2290
+ end
2291
+ # verify the required parameter 'input_file' is set
2292
+ if @api_client.config.client_side_validation && input_file.nil?
2293
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_odp_to_pdf"
2294
+ end
2295
+ # resource path
2296
+ local_var_path = '/convert/odp/to/pdf'
2297
+
2298
+ # query parameters
2299
+ query_params = {}
2300
+
2301
+ # header parameters
2302
+ header_params = {}
2303
+ # HTTP header 'Accept' (if needed)
2304
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
2305
+ # HTTP header 'Content-Type'
2306
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2307
+
2308
+ # form parameters
2309
+ form_params = {}
2310
+ form_params['inputFile'] = input_file
2311
+
2312
+ # http body (model)
2313
+ post_body = nil
2314
+ auth_names = ['Apikey']
2315
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2316
+ :header_params => header_params,
2317
+ :query_params => query_params,
2318
+ :form_params => form_params,
2319
+ :body => post_body,
2320
+ :auth_names => auth_names,
2321
+ :return_type => 'String')
2322
+ if @api_client.config.debugging
2323
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_odp_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2324
+ end
2325
+ return data, status_code, headers
2326
+ end
2327
+ # Convert ODP Presentation to PNG image array
2328
+ # Converts an Office Open Document Presentation (ODP) to an array of PNG images, one for each page.
2329
+ # @param input_file Input file to perform the operation on.
2330
+ # @param [Hash] opts the optional parameters
2331
+ # @return [OdpToPngResult]
2332
+ def convert_document_odp_to_png(input_file, opts = {})
2333
+ data, _status_code, _headers = convert_document_odp_to_png_with_http_info(input_file, opts)
2334
+ data
2335
+ end
2336
+
2337
+ # Convert ODP Presentation to PNG image array
2338
+ # Converts an Office Open Document Presentation (ODP) to an array of PNG images, one for each page.
2339
+ # @param input_file Input file to perform the operation on.
2340
+ # @param [Hash] opts the optional parameters
2341
+ # @return [Array<(OdpToPngResult, Fixnum, Hash)>] OdpToPngResult data, response status code and response headers
2342
+ def convert_document_odp_to_png_with_http_info(input_file, opts = {})
2343
+ if @api_client.config.debugging
2344
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_odp_to_png ...'
2345
+ end
2346
+ # verify the required parameter 'input_file' is set
2347
+ if @api_client.config.client_side_validation && input_file.nil?
2348
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_odp_to_png"
2349
+ end
2350
+ # resource path
2351
+ local_var_path = '/convert/odp/to/png'
2352
+
2353
+ # query parameters
2354
+ query_params = {}
2355
+
2356
+ # header parameters
2357
+ header_params = {}
2358
+ # HTTP header 'Accept' (if needed)
2359
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
2360
+ # HTTP header 'Content-Type'
2361
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2362
+
2363
+ # form parameters
2364
+ form_params = {}
2365
+ form_params['inputFile'] = input_file
2366
+
2367
+ # http body (model)
2368
+ post_body = nil
2369
+ auth_names = ['Apikey']
2370
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2371
+ :header_params => header_params,
2372
+ :query_params => query_params,
2373
+ :form_params => form_params,
2374
+ :body => post_body,
2375
+ :auth_names => auth_names,
2376
+ :return_type => 'OdpToPngResult')
2377
+ if @api_client.config.debugging
2378
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_odp_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2379
+ end
2380
+ return data, status_code, headers
2381
+ end
2382
+ # Convert ODP Presentation to PPTX
2383
+ # Convert Office Open Document Presentation (ODP) to PowerPoint Presentation (PPTX)
2384
+ # @param input_file Input file to perform the operation on.
2385
+ # @param [Hash] opts the optional parameters
2386
+ # @return [String]
2387
+ def convert_document_odp_to_pptx(input_file, opts = {})
2388
+ data, _status_code, _headers = convert_document_odp_to_pptx_with_http_info(input_file, opts)
2389
+ data
2390
+ end
2391
+
2392
+ # Convert ODP Presentation to PPTX
2393
+ # Convert Office Open Document Presentation (ODP) to PowerPoint Presentation (PPTX)
2394
+ # @param input_file Input file to perform the operation on.
2395
+ # @param [Hash] opts the optional parameters
2396
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2397
+ def convert_document_odp_to_pptx_with_http_info(input_file, opts = {})
2398
+ if @api_client.config.debugging
2399
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_odp_to_pptx ...'
2400
+ end
2401
+ # verify the required parameter 'input_file' is set
2402
+ if @api_client.config.client_side_validation && input_file.nil?
2403
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_odp_to_pptx"
2404
+ end
2405
+ # resource path
2406
+ local_var_path = '/convert/odp/to/pptx'
2407
+
2408
+ # query parameters
2409
+ query_params = {}
2410
+
2411
+ # header parameters
2412
+ header_params = {}
2413
+ # HTTP header 'Accept' (if needed)
2414
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
2415
+ # HTTP header 'Content-Type'
2416
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2417
+
2418
+ # form parameters
2419
+ form_params = {}
2420
+ form_params['inputFile'] = input_file
2421
+
2422
+ # http body (model)
2423
+ post_body = nil
2424
+ auth_names = ['Apikey']
2425
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2426
+ :header_params => header_params,
2427
+ :query_params => query_params,
2428
+ :form_params => form_params,
2429
+ :body => post_body,
2430
+ :auth_names => auth_names,
2431
+ :return_type => 'String')
2432
+ if @api_client.config.debugging
2433
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_odp_to_pptx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2434
+ end
2435
+ return data, status_code, headers
2436
+ end
2437
+ # Convert ODS Spreadsheet to JPG/JPEG image array
2438
+ # Converts an Open Document Spreadsheet (ODS) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
2439
+ # @param input_file Input file to perform the operation on.
2440
+ # @param [Hash] opts the optional parameters
2441
+ # @option opts [Integer] :quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75.
2442
+ # @return [OdsToJpgResult]
2443
+ def convert_document_ods_to_jpg(input_file, opts = {})
2444
+ data, _status_code, _headers = convert_document_ods_to_jpg_with_http_info(input_file, opts)
2445
+ data
2446
+ end
2447
+
2448
+ # Convert ODS Spreadsheet to JPG/JPEG image array
2449
+ # Converts an Open Document Spreadsheet (ODS) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
2450
+ # @param input_file Input file to perform the operation on.
2451
+ # @param [Hash] opts the optional parameters
2452
+ # @option opts [Integer] :quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75.
2453
+ # @return [Array<(OdsToJpgResult, Fixnum, Hash)>] OdsToJpgResult data, response status code and response headers
2454
+ def convert_document_ods_to_jpg_with_http_info(input_file, opts = {})
2455
+ if @api_client.config.debugging
2456
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_ods_to_jpg ...'
2457
+ end
2458
+ # verify the required parameter 'input_file' is set
2459
+ if @api_client.config.client_side_validation && input_file.nil?
2460
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_ods_to_jpg"
2461
+ end
2462
+ # resource path
2463
+ local_var_path = '/convert/ods/to/jpg'
2464
+
2465
+ # query parameters
2466
+ query_params = {}
2467
+
2468
+ # header parameters
2469
+ header_params = {}
2470
+ # HTTP header 'Accept' (if needed)
2471
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
2472
+ # HTTP header 'Content-Type'
2473
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2474
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
2475
+
2476
+ # form parameters
2477
+ form_params = {}
2478
+ form_params['inputFile'] = input_file
2479
+
2480
+ # http body (model)
2481
+ post_body = nil
2482
+ auth_names = ['Apikey']
2483
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2484
+ :header_params => header_params,
2485
+ :query_params => query_params,
2486
+ :form_params => form_params,
2487
+ :body => post_body,
2488
+ :auth_names => auth_names,
2489
+ :return_type => 'OdsToJpgResult')
2490
+ if @api_client.config.debugging
2491
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_ods_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2492
+ end
2493
+ return data, status_code, headers
2494
+ end
2495
+ # Convert ODS Spreadsheet to PDF
2496
+ # Convert Office Open Document Spreadsheet (ODS) to standard PDF
2497
+ # @param input_file Input file to perform the operation on.
2498
+ # @param [Hash] opts the optional parameters
2499
+ # @return [String]
2500
+ def convert_document_ods_to_pdf(input_file, opts = {})
2501
+ data, _status_code, _headers = convert_document_ods_to_pdf_with_http_info(input_file, opts)
2502
+ data
2503
+ end
2504
+
2505
+ # Convert ODS Spreadsheet to PDF
2506
+ # Convert Office Open Document Spreadsheet (ODS) to standard PDF
2507
+ # @param input_file Input file to perform the operation on.
2508
+ # @param [Hash] opts the optional parameters
2509
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2510
+ def convert_document_ods_to_pdf_with_http_info(input_file, opts = {})
2511
+ if @api_client.config.debugging
2512
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_ods_to_pdf ...'
2513
+ end
2514
+ # verify the required parameter 'input_file' is set
2515
+ if @api_client.config.client_side_validation && input_file.nil?
2516
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_ods_to_pdf"
2517
+ end
2518
+ # resource path
2519
+ local_var_path = '/convert/ods/to/pdf'
2520
+
2521
+ # query parameters
2522
+ query_params = {}
2523
+
2524
+ # header parameters
2525
+ header_params = {}
2526
+ # HTTP header 'Accept' (if needed)
2527
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
2528
+ # HTTP header 'Content-Type'
2529
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2530
+
2531
+ # form parameters
2532
+ form_params = {}
2533
+ form_params['inputFile'] = input_file
2534
+
2535
+ # http body (model)
2536
+ post_body = nil
2537
+ auth_names = ['Apikey']
2538
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2539
+ :header_params => header_params,
2540
+ :query_params => query_params,
2541
+ :form_params => form_params,
2542
+ :body => post_body,
2543
+ :auth_names => auth_names,
2544
+ :return_type => 'String')
2545
+ if @api_client.config.debugging
2546
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_ods_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2547
+ end
2548
+ return data, status_code, headers
2549
+ end
2550
+ # Convert ODS Spreadsheet to PNG image array
2551
+ # Converts an Office Open Document Spreadsheet (ODS) to an array of PNG images, one for each page.
2552
+ # @param input_file Input file to perform the operation on.
2553
+ # @param [Hash] opts the optional parameters
2554
+ # @return [OdsToPngResult]
2555
+ def convert_document_ods_to_png(input_file, opts = {})
2556
+ data, _status_code, _headers = convert_document_ods_to_png_with_http_info(input_file, opts)
2557
+ data
2558
+ end
2559
+
2560
+ # Convert ODS Spreadsheet to PNG image array
2561
+ # Converts an Office Open Document Spreadsheet (ODS) to an array of PNG images, one for each page.
2562
+ # @param input_file Input file to perform the operation on.
2563
+ # @param [Hash] opts the optional parameters
2564
+ # @return [Array<(OdsToPngResult, Fixnum, Hash)>] OdsToPngResult data, response status code and response headers
2565
+ def convert_document_ods_to_png_with_http_info(input_file, opts = {})
2566
+ if @api_client.config.debugging
2567
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_ods_to_png ...'
2568
+ end
2569
+ # verify the required parameter 'input_file' is set
2570
+ if @api_client.config.client_side_validation && input_file.nil?
2571
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_ods_to_png"
2572
+ end
2573
+ # resource path
2574
+ local_var_path = '/convert/ods/to/png'
2575
+
2576
+ # query parameters
2577
+ query_params = {}
2578
+
2579
+ # header parameters
2580
+ header_params = {}
2581
+ # HTTP header 'Accept' (if needed)
2582
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
2583
+ # HTTP header 'Content-Type'
2584
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2585
+
2586
+ # form parameters
2587
+ form_params = {}
2588
+ form_params['inputFile'] = input_file
2589
+
2590
+ # http body (model)
2591
+ post_body = nil
2592
+ auth_names = ['Apikey']
2593
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2594
+ :header_params => header_params,
2595
+ :query_params => query_params,
2596
+ :form_params => form_params,
2597
+ :body => post_body,
2598
+ :auth_names => auth_names,
2599
+ :return_type => 'OdsToPngResult')
2600
+ if @api_client.config.debugging
2601
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_ods_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2602
+ end
2603
+ return data, status_code, headers
2604
+ end
2605
+ # Convert ODS Spreadsheet to XLSX
2606
+ # Convert Office Open Document Spreadsheet (ODS) to Excel Spreadsheet (XLSX)
2607
+ # @param input_file Input file to perform the operation on.
2608
+ # @param [Hash] opts the optional parameters
2609
+ # @return [String]
2610
+ def convert_document_ods_to_xlsx(input_file, opts = {})
2611
+ data, _status_code, _headers = convert_document_ods_to_xlsx_with_http_info(input_file, opts)
2612
+ data
2613
+ end
2614
+
2615
+ # Convert ODS Spreadsheet to XLSX
2616
+ # Convert Office Open Document Spreadsheet (ODS) to Excel Spreadsheet (XLSX)
2617
+ # @param input_file Input file to perform the operation on.
2618
+ # @param [Hash] opts the optional parameters
2619
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2620
+ def convert_document_ods_to_xlsx_with_http_info(input_file, opts = {})
2621
+ if @api_client.config.debugging
2622
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_ods_to_xlsx ...'
2623
+ end
2624
+ # verify the required parameter 'input_file' is set
2625
+ if @api_client.config.client_side_validation && input_file.nil?
2626
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_ods_to_xlsx"
2627
+ end
2628
+ # resource path
2629
+ local_var_path = '/convert/ods/to/xlsx'
2630
+
2631
+ # query parameters
2632
+ query_params = {}
2633
+
2634
+ # header parameters
2635
+ header_params = {}
2636
+ # HTTP header 'Accept' (if needed)
2637
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
2638
+ # HTTP header 'Content-Type'
2639
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2640
+
2641
+ # form parameters
2642
+ form_params = {}
2643
+ form_params['inputFile'] = input_file
2644
+
2645
+ # http body (model)
2646
+ post_body = nil
2647
+ auth_names = ['Apikey']
2648
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2649
+ :header_params => header_params,
2650
+ :query_params => query_params,
2651
+ :form_params => form_params,
2652
+ :body => post_body,
2653
+ :auth_names => auth_names,
2654
+ :return_type => 'String')
2655
+ if @api_client.config.debugging
2656
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_ods_to_xlsx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2657
+ end
2658
+ return data, status_code, headers
2659
+ end
2660
+ # Convert ODT Text File to Word DOCX
2661
+ # Convert Office Open Document Text File (ODT) to Word DOCX Document
2662
+ # @param input_file Input file to perform the operation on.
2663
+ # @param [Hash] opts the optional parameters
2664
+ # @return [String]
2665
+ def convert_document_odt_to_docx(input_file, opts = {})
2666
+ data, _status_code, _headers = convert_document_odt_to_docx_with_http_info(input_file, opts)
2667
+ data
2668
+ end
2669
+
2670
+ # Convert ODT Text File to Word DOCX
2671
+ # Convert Office Open Document Text File (ODT) to Word DOCX Document
2672
+ # @param input_file Input file to perform the operation on.
2673
+ # @param [Hash] opts the optional parameters
2674
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2675
+ def convert_document_odt_to_docx_with_http_info(input_file, opts = {})
2676
+ if @api_client.config.debugging
2677
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_odt_to_docx ...'
2678
+ end
2679
+ # verify the required parameter 'input_file' is set
2680
+ if @api_client.config.client_side_validation && input_file.nil?
2681
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_odt_to_docx"
2682
+ end
2683
+ # resource path
2684
+ local_var_path = '/convert/odt/to/docx'
2685
+
2686
+ # query parameters
2687
+ query_params = {}
2688
+
2689
+ # header parameters
2690
+ header_params = {}
2691
+ # HTTP header 'Accept' (if needed)
2692
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
2693
+ # HTTP header 'Content-Type'
2694
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2695
+
2696
+ # form parameters
2697
+ form_params = {}
2698
+ form_params['inputFile'] = input_file
2699
+
2700
+ # http body (model)
2701
+ post_body = nil
2702
+ auth_names = ['Apikey']
2703
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2704
+ :header_params => header_params,
2705
+ :query_params => query_params,
2706
+ :form_params => form_params,
2707
+ :body => post_body,
2708
+ :auth_names => auth_names,
2709
+ :return_type => 'String')
2710
+ if @api_client.config.debugging
2711
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_odt_to_docx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2712
+ end
2713
+ return data, status_code, headers
2714
+ end
2715
+ # Convert ODT Text File to JPG/JPEG image array
2716
+ # Converts an Open Document Text File (ODT) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
2717
+ # @param input_file Input file to perform the operation on.
2718
+ # @param [Hash] opts the optional parameters
2719
+ # @option opts [Integer] :quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75.
2720
+ # @return [OdtToJpgResult]
2721
+ def convert_document_odt_to_jpg(input_file, opts = {})
2722
+ data, _status_code, _headers = convert_document_odt_to_jpg_with_http_info(input_file, opts)
2723
+ data
2724
+ end
2725
+
2726
+ # Convert ODT Text File to JPG/JPEG image array
2727
+ # Converts an Open Document Text File (ODT) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
2728
+ # @param input_file Input file to perform the operation on.
2729
+ # @param [Hash] opts the optional parameters
2730
+ # @option opts [Integer] :quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75.
2731
+ # @return [Array<(OdtToJpgResult, Fixnum, Hash)>] OdtToJpgResult data, response status code and response headers
2732
+ def convert_document_odt_to_jpg_with_http_info(input_file, opts = {})
2733
+ if @api_client.config.debugging
2734
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_odt_to_jpg ...'
2735
+ end
2736
+ # verify the required parameter 'input_file' is set
2737
+ if @api_client.config.client_side_validation && input_file.nil?
2738
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_odt_to_jpg"
2739
+ end
2740
+ # resource path
2741
+ local_var_path = '/convert/odt/to/jpg'
2742
+
2743
+ # query parameters
2744
+ query_params = {}
2745
+
2746
+ # header parameters
2747
+ header_params = {}
2748
+ # HTTP header 'Accept' (if needed)
2749
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
2750
+ # HTTP header 'Content-Type'
2751
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2752
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
2753
+
2754
+ # form parameters
2755
+ form_params = {}
2756
+ form_params['inputFile'] = input_file
2757
+
2758
+ # http body (model)
2759
+ post_body = nil
2760
+ auth_names = ['Apikey']
2761
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2762
+ :header_params => header_params,
2763
+ :query_params => query_params,
2764
+ :form_params => form_params,
2765
+ :body => post_body,
2766
+ :auth_names => auth_names,
2767
+ :return_type => 'OdtToJpgResult')
2768
+ if @api_client.config.debugging
2769
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_odt_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2770
+ end
2771
+ return data, status_code, headers
2772
+ end
2773
+ # Convert ODT Text File to PDF
2774
+ # Convert Office Open Document Text File (ODT) to standard PDF
2775
+ # @param input_file Input file to perform the operation on.
2776
+ # @param [Hash] opts the optional parameters
2777
+ # @return [String]
2778
+ def convert_document_odt_to_pdf(input_file, opts = {})
2779
+ data, _status_code, _headers = convert_document_odt_to_pdf_with_http_info(input_file, opts)
2780
+ data
2781
+ end
2782
+
2783
+ # Convert ODT Text File to PDF
2784
+ # Convert Office Open Document Text File (ODT) to standard PDF
2785
+ # @param input_file Input file to perform the operation on.
2786
+ # @param [Hash] opts the optional parameters
2787
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2788
+ def convert_document_odt_to_pdf_with_http_info(input_file, opts = {})
2789
+ if @api_client.config.debugging
2790
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_odt_to_pdf ...'
2791
+ end
2792
+ # verify the required parameter 'input_file' is set
2793
+ if @api_client.config.client_side_validation && input_file.nil?
2794
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_odt_to_pdf"
2795
+ end
2796
+ # resource path
2797
+ local_var_path = '/convert/odt/to/pdf'
2798
+
2799
+ # query parameters
2800
+ query_params = {}
2801
+
2802
+ # header parameters
2803
+ header_params = {}
2804
+ # HTTP header 'Accept' (if needed)
2805
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
2806
+ # HTTP header 'Content-Type'
2807
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2808
+
2809
+ # form parameters
2810
+ form_params = {}
2811
+ form_params['inputFile'] = input_file
2812
+
2813
+ # http body (model)
2814
+ post_body = nil
2815
+ auth_names = ['Apikey']
2816
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2817
+ :header_params => header_params,
2818
+ :query_params => query_params,
2819
+ :form_params => form_params,
2820
+ :body => post_body,
2821
+ :auth_names => auth_names,
2822
+ :return_type => 'String')
2823
+ if @api_client.config.debugging
2824
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_odt_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2825
+ end
2826
+ return data, status_code, headers
2827
+ end
2828
+ # Convert ODT Text File to PNG image array
2829
+ # Converts an Office Open Document Text File (ODT) to an array of PNG images, one for each page.
2830
+ # @param input_file Input file to perform the operation on.
2831
+ # @param [Hash] opts the optional parameters
2832
+ # @return [OdtToPngResult]
2833
+ def convert_document_odt_to_png(input_file, opts = {})
2834
+ data, _status_code, _headers = convert_document_odt_to_png_with_http_info(input_file, opts)
2835
+ data
2836
+ end
2837
+
2838
+ # Convert ODT Text File to PNG image array
2839
+ # Converts an Office Open Document Text File (ODT) to an array of PNG images, one for each page.
2840
+ # @param input_file Input file to perform the operation on.
2841
+ # @param [Hash] opts the optional parameters
2842
+ # @return [Array<(OdtToPngResult, Fixnum, Hash)>] OdtToPngResult data, response status code and response headers
2843
+ def convert_document_odt_to_png_with_http_info(input_file, opts = {})
2844
+ if @api_client.config.debugging
2845
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_odt_to_png ...'
2846
+ end
2847
+ # verify the required parameter 'input_file' is set
2848
+ if @api_client.config.client_side_validation && input_file.nil?
2849
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_odt_to_png"
2850
+ end
2851
+ # resource path
2852
+ local_var_path = '/convert/odt/to/png'
2853
+
2854
+ # query parameters
2855
+ query_params = {}
2856
+
2857
+ # header parameters
2858
+ header_params = {}
2859
+ # HTTP header 'Accept' (if needed)
2860
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
2861
+ # HTTP header 'Content-Type'
2862
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2863
+
2864
+ # form parameters
2865
+ form_params = {}
2866
+ form_params['inputFile'] = input_file
2867
+
2868
+ # http body (model)
2869
+ post_body = nil
2870
+ auth_names = ['Apikey']
2871
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2872
+ :header_params => header_params,
2873
+ :query_params => query_params,
2874
+ :form_params => form_params,
2875
+ :body => post_body,
2876
+ :auth_names => auth_names,
2877
+ :return_type => 'OdtToPngResult')
2878
+ if @api_client.config.debugging
2879
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_odt_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2880
+ end
2881
+ return data, status_code, headers
2882
+ end
2883
+ # Convert PDF to Word DOCX Document
2884
+ # Convert standard PDF to Office Word Documents (docx). Converts a PDF at high fidelity into Word format, where it can be easily edited and processed.
2885
+ # @param input_file Input file to perform the operation on.
2886
+ # @param [Hash] opts the optional parameters
2887
+ # @return [String]
2888
+ def convert_document_pdf_to_docx(input_file, opts = {})
2889
+ data, _status_code, _headers = convert_document_pdf_to_docx_with_http_info(input_file, opts)
2890
+ data
2891
+ end
2892
+
2893
+ # Convert PDF to Word DOCX Document
2894
+ # Convert standard PDF to Office Word Documents (docx). Converts a PDF at high fidelity into Word format, where it can be easily edited and processed.
2895
+ # @param input_file Input file to perform the operation on.
2896
+ # @param [Hash] opts the optional parameters
2897
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2898
+ def convert_document_pdf_to_docx_with_http_info(input_file, opts = {})
2899
+ if @api_client.config.debugging
2900
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_pdf_to_docx ...'
2901
+ end
2902
+ # verify the required parameter 'input_file' is set
2903
+ if @api_client.config.client_side_validation && input_file.nil?
2904
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_pdf_to_docx"
2905
+ end
2906
+ # resource path
2907
+ local_var_path = '/convert/pdf/to/docx'
2908
+
2909
+ # query parameters
2910
+ query_params = {}
2911
+
2912
+ # header parameters
2913
+ header_params = {}
2914
+ # HTTP header 'Accept' (if needed)
2915
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
2916
+ # HTTP header 'Content-Type'
2917
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2918
+
2919
+ # form parameters
2920
+ form_params = {}
2921
+ form_params['inputFile'] = input_file
2922
+
2923
+ # http body (model)
2924
+ post_body = nil
2925
+ auth_names = ['Apikey']
2926
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2927
+ :header_params => header_params,
2928
+ :query_params => query_params,
2929
+ :form_params => form_params,
2930
+ :body => post_body,
2931
+ :auth_names => auth_names,
2932
+ :return_type => 'String')
2933
+ if @api_client.config.debugging
2934
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pdf_to_docx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2935
+ end
2936
+ return data, status_code, headers
2937
+ end
2938
+ # Convert PDF to Word DOCX Document based on rasterized version of the PDF
2939
+ # Convert standard PDF to Office Word Documents (docx), but first rasterize the PDF. Converts a PDF at high fidelity into Word format.
2940
+ # @param input_file Input file to perform the operation on.
2941
+ # @param [Hash] opts the optional parameters
2942
+ # @return [String]
2943
+ def convert_document_pdf_to_docx_rasterize(input_file, opts = {})
2944
+ data, _status_code, _headers = convert_document_pdf_to_docx_rasterize_with_http_info(input_file, opts)
2945
+ data
2946
+ end
2947
+
2948
+ # Convert PDF to Word DOCX Document based on rasterized version of the PDF
2949
+ # Convert standard PDF to Office Word Documents (docx), but first rasterize the PDF. Converts a PDF at high fidelity into Word format.
2950
+ # @param input_file Input file to perform the operation on.
2951
+ # @param [Hash] opts the optional parameters
2952
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2953
+ def convert_document_pdf_to_docx_rasterize_with_http_info(input_file, opts = {})
2954
+ if @api_client.config.debugging
2955
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_pdf_to_docx_rasterize ...'
2956
+ end
2957
+ # verify the required parameter 'input_file' is set
2958
+ if @api_client.config.client_side_validation && input_file.nil?
2959
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_pdf_to_docx_rasterize"
2960
+ end
2961
+ # resource path
2962
+ local_var_path = '/convert/pdf/to/docx/rasterize'
2963
+
2964
+ # query parameters
2965
+ query_params = {}
2966
+
2967
+ # header parameters
2968
+ header_params = {}
2969
+ # HTTP header 'Accept' (if needed)
2970
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
2971
+ # HTTP header 'Content-Type'
2972
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2973
+
2974
+ # form parameters
2975
+ form_params = {}
2976
+ form_params['inputFile'] = input_file
2977
+
2978
+ # http body (model)
2979
+ post_body = nil
2980
+ auth_names = ['Apikey']
2981
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2982
+ :header_params => header_params,
2983
+ :query_params => query_params,
2984
+ :form_params => form_params,
2985
+ :body => post_body,
2986
+ :auth_names => auth_names,
2987
+ :return_type => 'String')
2988
+ if @api_client.config.debugging
2989
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pdf_to_docx_rasterize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2990
+ end
2991
+ return data, status_code, headers
2992
+ end
2993
+ # Convert PDF to JPG/JPEG image array
2994
+ # Converts a PDF Document to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
2995
+ # @param input_file Input file to perform the operation on.
2996
+ # @param [Hash] opts the optional parameters
2997
+ # @option opts [Integer] :quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75.
2998
+ # @return [PdfToJpgResult]
2999
+ def convert_document_pdf_to_jpg(input_file, opts = {})
3000
+ data, _status_code, _headers = convert_document_pdf_to_jpg_with_http_info(input_file, opts)
3001
+ data
3002
+ end
3003
+
3004
+ # Convert PDF to JPG/JPEG image array
3005
+ # Converts a PDF Document to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
3006
+ # @param input_file Input file to perform the operation on.
3007
+ # @param [Hash] opts the optional parameters
3008
+ # @option opts [Integer] :quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75.
3009
+ # @return [Array<(PdfToJpgResult, Fixnum, Hash)>] PdfToJpgResult data, response status code and response headers
3010
+ def convert_document_pdf_to_jpg_with_http_info(input_file, opts = {})
3011
+ if @api_client.config.debugging
3012
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_pdf_to_jpg ...'
3013
+ end
3014
+ # verify the required parameter 'input_file' is set
3015
+ if @api_client.config.client_side_validation && input_file.nil?
3016
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_pdf_to_jpg"
3017
+ end
3018
+ # resource path
3019
+ local_var_path = '/convert/pdf/to/jpg'
3020
+
3021
+ # query parameters
3022
+ query_params = {}
3023
+
3024
+ # header parameters
3025
+ header_params = {}
3026
+ # HTTP header 'Accept' (if needed)
3027
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
3028
+ # HTTP header 'Content-Type'
3029
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3030
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
3031
+
3032
+ # form parameters
3033
+ form_params = {}
3034
+ form_params['inputFile'] = input_file
3035
+
3036
+ # http body (model)
3037
+ post_body = nil
3038
+ auth_names = ['Apikey']
3039
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3040
+ :header_params => header_params,
3041
+ :query_params => query_params,
3042
+ :form_params => form_params,
3043
+ :body => post_body,
3044
+ :auth_names => auth_names,
3045
+ :return_type => 'PdfToJpgResult')
3046
+ if @api_client.config.debugging
3047
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pdf_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3048
+ end
3049
+ return data, status_code, headers
3050
+ end
3051
+ # Convert PDF to PNG Image Array
3052
+ # Convert PDF document to PNG array, one image per page.
3053
+ # @param input_file Input file to perform the operation on.
3054
+ # @param [Hash] opts the optional parameters
3055
+ # @return [PdfToPngResult]
3056
+ def convert_document_pdf_to_png_array(input_file, opts = {})
3057
+ data, _status_code, _headers = convert_document_pdf_to_png_array_with_http_info(input_file, opts)
3058
+ data
3059
+ end
3060
+
3061
+ # Convert PDF to PNG Image Array
3062
+ # Convert PDF document to PNG array, one image per page.
3063
+ # @param input_file Input file to perform the operation on.
3064
+ # @param [Hash] opts the optional parameters
3065
+ # @return [Array<(PdfToPngResult, Fixnum, Hash)>] PdfToPngResult data, response status code and response headers
3066
+ def convert_document_pdf_to_png_array_with_http_info(input_file, opts = {})
3067
+ if @api_client.config.debugging
3068
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_pdf_to_png_array ...'
3069
+ end
3070
+ # verify the required parameter 'input_file' is set
3071
+ if @api_client.config.client_side_validation && input_file.nil?
3072
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_pdf_to_png_array"
3073
+ end
3074
+ # resource path
3075
+ local_var_path = '/convert/pdf/to/png'
3076
+
3077
+ # query parameters
3078
+ query_params = {}
3079
+
3080
+ # header parameters
3081
+ header_params = {}
3082
+ # HTTP header 'Accept' (if needed)
3083
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
3084
+ # HTTP header 'Content-Type'
3085
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3086
+
3087
+ # form parameters
3088
+ form_params = {}
3089
+ form_params['inputFile'] = input_file
3090
+
3091
+ # http body (model)
3092
+ post_body = nil
3093
+ auth_names = ['Apikey']
3094
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3095
+ :header_params => header_params,
3096
+ :query_params => query_params,
3097
+ :form_params => form_params,
3098
+ :body => post_body,
3099
+ :auth_names => auth_names,
3100
+ :return_type => 'PdfToPngResult')
3101
+ if @api_client.config.debugging
3102
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pdf_to_png_array\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3103
+ end
3104
+ return data, status_code, headers
3105
+ end
3106
+ # Convert PDF to Single PNG image
3107
+ # Convert PDF document to a single tall PNG image, by stacking/concatenating the images vertically into a single \"tall\" image
3108
+ # @param input_file Input file to perform the operation on.
3109
+ # @param [Hash] opts the optional parameters
3110
+ # @return [String]
3111
+ def convert_document_pdf_to_png_single(input_file, opts = {})
3112
+ data, _status_code, _headers = convert_document_pdf_to_png_single_with_http_info(input_file, opts)
3113
+ data
3114
+ end
3115
+
3116
+ # Convert PDF to Single PNG image
3117
+ # Convert PDF document to a single tall PNG image, by stacking/concatenating the images vertically into a single \&quot;tall\&quot; image
3118
+ # @param input_file Input file to perform the operation on.
3119
+ # @param [Hash] opts the optional parameters
3120
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3121
+ def convert_document_pdf_to_png_single_with_http_info(input_file, opts = {})
3122
+ if @api_client.config.debugging
3123
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_pdf_to_png_single ...'
3124
+ end
3125
+ # verify the required parameter 'input_file' is set
3126
+ if @api_client.config.client_side_validation && input_file.nil?
3127
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_pdf_to_png_single"
3128
+ end
3129
+ # resource path
3130
+ local_var_path = '/convert/pdf/to/png/merge-single'
3131
+
3132
+ # query parameters
3133
+ query_params = {}
3134
+
3135
+ # header parameters
3136
+ header_params = {}
3137
+ # HTTP header 'Accept' (if needed)
3138
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3139
+ # HTTP header 'Content-Type'
3140
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3141
+
3142
+ # form parameters
3143
+ form_params = {}
3144
+ form_params['inputFile'] = input_file
3145
+
3146
+ # http body (model)
3147
+ post_body = nil
3148
+ auth_names = ['Apikey']
3149
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3150
+ :header_params => header_params,
3151
+ :query_params => query_params,
3152
+ :form_params => form_params,
3153
+ :body => post_body,
3154
+ :auth_names => auth_names,
3155
+ :return_type => 'String')
3156
+ if @api_client.config.debugging
3157
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pdf_to_png_single\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3158
+ end
3159
+ return data, status_code, headers
3160
+ end
3161
+ # Convert PDF to PowerPoint PPTX Presentation
3162
+ # Convert standard PDF to Office PowerPoint Presentation (pptx). Converts a PDF file at high fidelity into PowerPoint format, where it can be easily edited and processed.
3163
+ # @param input_file Input file to perform the operation on.
3164
+ # @param [Hash] opts the optional parameters
3165
+ # @return [String]
3166
+ def convert_document_pdf_to_pptx(input_file, opts = {})
3167
+ data, _status_code, _headers = convert_document_pdf_to_pptx_with_http_info(input_file, opts)
3168
+ data
3169
+ end
3170
+
3171
+ # Convert PDF to PowerPoint PPTX Presentation
3172
+ # Convert standard PDF to Office PowerPoint Presentation (pptx). Converts a PDF file at high fidelity into PowerPoint format, where it can be easily edited and processed.
3173
+ # @param input_file Input file to perform the operation on.
3174
+ # @param [Hash] opts the optional parameters
3175
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3176
+ def convert_document_pdf_to_pptx_with_http_info(input_file, opts = {})
3177
+ if @api_client.config.debugging
3178
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_pdf_to_pptx ...'
3179
+ end
3180
+ # verify the required parameter 'input_file' is set
3181
+ if @api_client.config.client_side_validation && input_file.nil?
3182
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_pdf_to_pptx"
3183
+ end
3184
+ # resource path
3185
+ local_var_path = '/convert/pdf/to/pptx'
3186
+
3187
+ # query parameters
3188
+ query_params = {}
3189
+
3190
+ # header parameters
3191
+ header_params = {}
3192
+ # HTTP header 'Accept' (if needed)
3193
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3194
+ # HTTP header 'Content-Type'
3195
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3196
+
3197
+ # form parameters
3198
+ form_params = {}
3199
+ form_params['inputFile'] = input_file
3200
+
3201
+ # http body (model)
3202
+ post_body = nil
3203
+ auth_names = ['Apikey']
3204
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3205
+ :header_params => header_params,
3206
+ :query_params => query_params,
3207
+ :form_params => form_params,
3208
+ :body => post_body,
3209
+ :auth_names => auth_names,
3210
+ :return_type => 'String')
3211
+ if @api_client.config.debugging
3212
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pdf_to_pptx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3213
+ end
3214
+ return data, status_code, headers
3215
+ end
3216
+ # Convert PDF Document to Text (txt)
3217
+ # PDF document to text
3218
+ # @param input_file Input file to perform the operation on.
3219
+ # @param [Hash] opts the optional parameters
3220
+ # @option opts [String] :text_formatting_mode Optional; specify how whitespace should be handled when converting PDF to text. Possible values are &#39;preserveWhitespace&#39; which will attempt to preserve whitespace in the document and relative positioning of text within the document, and &#39;minimizeWhitespace&#39; which will not insert additional spaces into the document in most cases. Default is &#39;preserveWhitespace&#39;.
3221
+ # @return [TextConversionResult]
3222
+ def convert_document_pdf_to_txt(input_file, opts = {})
3223
+ data, _status_code, _headers = convert_document_pdf_to_txt_with_http_info(input_file, opts)
3224
+ data
3225
+ end
3226
+
3227
+ # Convert PDF Document to Text (txt)
3228
+ # PDF document to text
3229
+ # @param input_file Input file to perform the operation on.
3230
+ # @param [Hash] opts the optional parameters
3231
+ # @option opts [String] :text_formatting_mode Optional; specify how whitespace should be handled when converting PDF to text. Possible values are &#39;preserveWhitespace&#39; which will attempt to preserve whitespace in the document and relative positioning of text within the document, and &#39;minimizeWhitespace&#39; which will not insert additional spaces into the document in most cases. Default is &#39;preserveWhitespace&#39;.
3232
+ # @return [Array<(TextConversionResult, Fixnum, Hash)>] TextConversionResult data, response status code and response headers
3233
+ def convert_document_pdf_to_txt_with_http_info(input_file, opts = {})
3234
+ if @api_client.config.debugging
3235
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_pdf_to_txt ...'
3236
+ end
3237
+ # verify the required parameter 'input_file' is set
3238
+ if @api_client.config.client_side_validation && input_file.nil?
3239
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_pdf_to_txt"
3240
+ end
3241
+ # resource path
3242
+ local_var_path = '/convert/pdf/to/txt'
3243
+
3244
+ # query parameters
3245
+ query_params = {}
3246
+
3247
+ # header parameters
3248
+ header_params = {}
3249
+ # HTTP header 'Accept' (if needed)
3250
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
3251
+ # HTTP header 'Content-Type'
3252
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3253
+ header_params[:'textFormattingMode'] = opts[:'text_formatting_mode'] if !opts[:'text_formatting_mode'].nil?
3254
+
3255
+ # form parameters
3256
+ form_params = {}
3257
+ form_params['inputFile'] = input_file
3258
+
3259
+ # http body (model)
3260
+ post_body = nil
3261
+ auth_names = ['Apikey']
3262
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3263
+ :header_params => header_params,
3264
+ :query_params => query_params,
3265
+ :form_params => form_params,
3266
+ :body => post_body,
3267
+ :auth_names => auth_names,
3268
+ :return_type => 'TextConversionResult')
3269
+ if @api_client.config.debugging
3270
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pdf_to_txt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3271
+ end
3272
+ return data, status_code, headers
3273
+ end
3274
+ # Convert PNG Array to PDF
3275
+ # Convert an array of PNG images, one image per page, into a newly-created PDF. Supports images of different sizes as input.
3276
+ # @param input_file1 First input file to perform the operation on.
3277
+ # @param input_file2 Second input file to perform the operation on.
3278
+ # @param [Hash] opts the optional parameters
3279
+ # @option opts [File] :input_file3 Third input file to perform the operation on.
3280
+ # @option opts [File] :input_file4 Fourth input file to perform the operation on.
3281
+ # @option opts [File] :input_file5 Fifth input file to perform the operation on.
3282
+ # @option opts [File] :input_file6 Sixth input file to perform the operation on.
3283
+ # @option opts [File] :input_file7 Seventh input file to perform the operation on.
3284
+ # @option opts [File] :input_file8 Eighth input file to perform the operation on.
3285
+ # @option opts [File] :input_file9 Ninth input file to perform the operation on.
3286
+ # @option opts [File] :input_file10 Tenth input file to perform the operation on.
3287
+ # @return [String]
3288
+ def convert_document_png_array_to_pdf(input_file1, input_file2, opts = {})
3289
+ data, _status_code, _headers = convert_document_png_array_to_pdf_with_http_info(input_file1, input_file2, opts)
3290
+ data
3291
+ end
3292
+
3293
+ # Convert PNG Array to PDF
3294
+ # Convert an array of PNG images, one image per page, into a newly-created PDF. Supports images of different sizes as input.
3295
+ # @param input_file1 First input file to perform the operation on.
3296
+ # @param input_file2 Second input file to perform the operation on.
3297
+ # @param [Hash] opts the optional parameters
3298
+ # @option opts [File] :input_file3 Third input file to perform the operation on.
3299
+ # @option opts [File] :input_file4 Fourth input file to perform the operation on.
3300
+ # @option opts [File] :input_file5 Fifth input file to perform the operation on.
3301
+ # @option opts [File] :input_file6 Sixth input file to perform the operation on.
3302
+ # @option opts [File] :input_file7 Seventh input file to perform the operation on.
3303
+ # @option opts [File] :input_file8 Eighth input file to perform the operation on.
3304
+ # @option opts [File] :input_file9 Ninth input file to perform the operation on.
3305
+ # @option opts [File] :input_file10 Tenth input file to perform the operation on.
3306
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3307
+ def convert_document_png_array_to_pdf_with_http_info(input_file1, input_file2, opts = {})
3308
+ if @api_client.config.debugging
3309
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_png_array_to_pdf ...'
3310
+ end
3311
+ # verify the required parameter 'input_file1' is set
3312
+ if @api_client.config.client_side_validation && input_file1.nil?
3313
+ fail ArgumentError, "Missing the required parameter 'input_file1' when calling ConvertDocumentApi.convert_document_png_array_to_pdf"
3314
+ end
3315
+ # verify the required parameter 'input_file2' is set
3316
+ if @api_client.config.client_side_validation && input_file2.nil?
3317
+ fail ArgumentError, "Missing the required parameter 'input_file2' when calling ConvertDocumentApi.convert_document_png_array_to_pdf"
3318
+ end
3319
+ # resource path
3320
+ local_var_path = '/convert/png/to/pdf'
3321
+
3322
+ # query parameters
3323
+ query_params = {}
3324
+
3325
+ # header parameters
3326
+ header_params = {}
3327
+ # HTTP header 'Accept' (if needed)
3328
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3329
+ # HTTP header 'Content-Type'
3330
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3331
+
3332
+ # form parameters
3333
+ form_params = {}
3334
+ form_params['inputFile1'] = input_file1
3335
+ form_params['inputFile2'] = input_file2
3336
+ form_params['inputFile3'] = opts[:'input_file3'] if !opts[:'input_file3'].nil?
3337
+ form_params['inputFile4'] = opts[:'input_file4'] if !opts[:'input_file4'].nil?
3338
+ form_params['inputFile5'] = opts[:'input_file5'] if !opts[:'input_file5'].nil?
3339
+ form_params['inputFile6'] = opts[:'input_file6'] if !opts[:'input_file6'].nil?
3340
+ form_params['inputFile7'] = opts[:'input_file7'] if !opts[:'input_file7'].nil?
3341
+ form_params['inputFile8'] = opts[:'input_file8'] if !opts[:'input_file8'].nil?
3342
+ form_params['inputFile9'] = opts[:'input_file9'] if !opts[:'input_file9'].nil?
3343
+ form_params['inputFile10'] = opts[:'input_file10'] if !opts[:'input_file10'].nil?
3344
+
3345
+ # http body (model)
3346
+ post_body = nil
3347
+ auth_names = ['Apikey']
3348
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3349
+ :header_params => header_params,
3350
+ :query_params => query_params,
3351
+ :form_params => form_params,
3352
+ :body => post_body,
3353
+ :auth_names => auth_names,
3354
+ :return_type => 'String')
3355
+ if @api_client.config.debugging
3356
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_png_array_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3357
+ end
3358
+ return data, status_code, headers
3359
+ end
3360
+ # Convert PowerPoint PPT (97-03) Presentation to PDF
3361
+ # Convert Office PowerPoint (97-2003) Documents (ppt) to standard PDF
3362
+ # @param input_file Input file to perform the operation on.
3363
+ # @param [Hash] opts the optional parameters
3364
+ # @return [String]
3365
+ def convert_document_ppt_to_pdf(input_file, opts = {})
3366
+ data, _status_code, _headers = convert_document_ppt_to_pdf_with_http_info(input_file, opts)
3367
+ data
3368
+ end
3369
+
3370
+ # Convert PowerPoint PPT (97-03) Presentation to PDF
3371
+ # Convert Office PowerPoint (97-2003) Documents (ppt) to standard PDF
3372
+ # @param input_file Input file to perform the operation on.
3373
+ # @param [Hash] opts the optional parameters
3374
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3375
+ def convert_document_ppt_to_pdf_with_http_info(input_file, opts = {})
3376
+ if @api_client.config.debugging
3377
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_ppt_to_pdf ...'
3378
+ end
3379
+ # verify the required parameter 'input_file' is set
3380
+ if @api_client.config.client_side_validation && input_file.nil?
3381
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_ppt_to_pdf"
3382
+ end
3383
+ # resource path
3384
+ local_var_path = '/convert/ppt/to/pdf'
3385
+
3386
+ # query parameters
3387
+ query_params = {}
3388
+
3389
+ # header parameters
3390
+ header_params = {}
3391
+ # HTTP header 'Accept' (if needed)
3392
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3393
+ # HTTP header 'Content-Type'
3394
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3395
+
3396
+ # form parameters
3397
+ form_params = {}
3398
+ form_params['inputFile'] = input_file
3399
+
3400
+ # http body (model)
3401
+ post_body = nil
3402
+ auth_names = ['Apikey']
3403
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3404
+ :header_params => header_params,
3405
+ :query_params => query_params,
3406
+ :form_params => form_params,
3407
+ :body => post_body,
3408
+ :auth_names => auth_names,
3409
+ :return_type => 'String')
3410
+ if @api_client.config.debugging
3411
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_ppt_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3412
+ end
3413
+ return data, status_code, headers
3414
+ end
3415
+ # Convert PowerPoint PPT (97-03) Presentation to PPTX
3416
+ # Convert/upgrade Office PowerPoint (97-2003) Documents (ppt) to modern PPTX
3417
+ # @param input_file Input file to perform the operation on.
3418
+ # @param [Hash] opts the optional parameters
3419
+ # @return [String]
3420
+ def convert_document_ppt_to_pptx(input_file, opts = {})
3421
+ data, _status_code, _headers = convert_document_ppt_to_pptx_with_http_info(input_file, opts)
3422
+ data
3423
+ end
3424
+
3425
+ # Convert PowerPoint PPT (97-03) Presentation to PPTX
3426
+ # Convert/upgrade Office PowerPoint (97-2003) Documents (ppt) to modern PPTX
3427
+ # @param input_file Input file to perform the operation on.
3428
+ # @param [Hash] opts the optional parameters
3429
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3430
+ def convert_document_ppt_to_pptx_with_http_info(input_file, opts = {})
3431
+ if @api_client.config.debugging
3432
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_ppt_to_pptx ...'
3433
+ end
3434
+ # verify the required parameter 'input_file' is set
3435
+ if @api_client.config.client_side_validation && input_file.nil?
3436
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_ppt_to_pptx"
3437
+ end
3438
+ # resource path
3439
+ local_var_path = '/convert/ppt/to/pptx'
3440
+
3441
+ # query parameters
3442
+ query_params = {}
3443
+
3444
+ # header parameters
3445
+ header_params = {}
3446
+ # HTTP header 'Accept' (if needed)
3447
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3448
+ # HTTP header 'Content-Type'
3449
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3450
+
3451
+ # form parameters
3452
+ form_params = {}
3453
+ form_params['inputFile'] = input_file
3454
+
3455
+ # http body (model)
3456
+ post_body = nil
3457
+ auth_names = ['Apikey']
3458
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3459
+ :header_params => header_params,
3460
+ :query_params => query_params,
3461
+ :form_params => form_params,
3462
+ :body => post_body,
3463
+ :auth_names => auth_names,
3464
+ :return_type => 'String')
3465
+ if @api_client.config.debugging
3466
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_ppt_to_pptx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3467
+ end
3468
+ return data, status_code, headers
3469
+ end
3470
+ # Convert PowerPoint PPTX Presentation to PDF
3471
+ # Convert Office PowerPoint Documents (pptx) to standard PDF
3472
+ # @param input_file Input file to perform the operation on.
3473
+ # @param [Hash] opts the optional parameters
3474
+ # @return [String]
3475
+ def convert_document_pptx_to_pdf(input_file, opts = {})
3476
+ data, _status_code, _headers = convert_document_pptx_to_pdf_with_http_info(input_file, opts)
3477
+ data
3478
+ end
3479
+
3480
+ # Convert PowerPoint PPTX Presentation to PDF
3481
+ # Convert Office PowerPoint Documents (pptx) to standard PDF
3482
+ # @param input_file Input file to perform the operation on.
3483
+ # @param [Hash] opts the optional parameters
3484
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3485
+ def convert_document_pptx_to_pdf_with_http_info(input_file, opts = {})
3486
+ if @api_client.config.debugging
3487
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_pptx_to_pdf ...'
3488
+ end
3489
+ # verify the required parameter 'input_file' is set
3490
+ if @api_client.config.client_side_validation && input_file.nil?
3491
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_pptx_to_pdf"
3492
+ end
3493
+ # resource path
3494
+ local_var_path = '/convert/pptx/to/pdf'
3495
+
3496
+ # query parameters
3497
+ query_params = {}
3498
+
3499
+ # header parameters
3500
+ header_params = {}
3501
+ # HTTP header 'Accept' (if needed)
3502
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3503
+ # HTTP header 'Content-Type'
3504
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3505
+
3506
+ # form parameters
3507
+ form_params = {}
3508
+ form_params['inputFile'] = input_file
3509
+
3510
+ # http body (model)
3511
+ post_body = nil
3512
+ auth_names = ['Apikey']
3513
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3514
+ :header_params => header_params,
3515
+ :query_params => query_params,
3516
+ :form_params => form_params,
3517
+ :body => post_body,
3518
+ :auth_names => auth_names,
3519
+ :return_type => 'String')
3520
+ if @api_client.config.debugging
3521
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pptx_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3522
+ end
3523
+ return data, status_code, headers
3524
+ end
3525
+ # Convert PowerPoint PPTX to PNG image array
3526
+ # Converts a PowerPoint Presentation (PPTX) file to an array of PNG images, one for each page.
3527
+ # @param input_file Input file to perform the operation on.
3528
+ # @param [Hash] opts the optional parameters
3529
+ # @return [PptxToPngResult]
3530
+ def convert_document_pptx_to_png(input_file, opts = {})
3531
+ data, _status_code, _headers = convert_document_pptx_to_png_with_http_info(input_file, opts)
3532
+ data
3533
+ end
3534
+
3535
+ # Convert PowerPoint PPTX to PNG image array
3536
+ # Converts a PowerPoint Presentation (PPTX) file to an array of PNG images, one for each page.
3537
+ # @param input_file Input file to perform the operation on.
3538
+ # @param [Hash] opts the optional parameters
3539
+ # @return [Array<(PptxToPngResult, Fixnum, Hash)>] PptxToPngResult data, response status code and response headers
3540
+ def convert_document_pptx_to_png_with_http_info(input_file, opts = {})
3541
+ if @api_client.config.debugging
3542
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_pptx_to_png ...'
3543
+ end
3544
+ # verify the required parameter 'input_file' is set
3545
+ if @api_client.config.client_side_validation && input_file.nil?
3546
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_pptx_to_png"
3547
+ end
3548
+ # resource path
3549
+ local_var_path = '/convert/pptx/to/png'
3550
+
3551
+ # query parameters
3552
+ query_params = {}
3553
+
3554
+ # header parameters
3555
+ header_params = {}
3556
+ # HTTP header 'Accept' (if needed)
3557
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
3558
+ # HTTP header 'Content-Type'
3559
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3560
+
3561
+ # form parameters
3562
+ form_params = {}
3563
+ form_params['inputFile'] = input_file
3564
+
3565
+ # http body (model)
3566
+ post_body = nil
3567
+ auth_names = ['Apikey']
3568
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3569
+ :header_params => header_params,
3570
+ :query_params => query_params,
3571
+ :form_params => form_params,
3572
+ :body => post_body,
3573
+ :auth_names => auth_names,
3574
+ :return_type => 'PptxToPngResult')
3575
+ if @api_client.config.debugging
3576
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pptx_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3577
+ end
3578
+ return data, status_code, headers
3579
+ end
3580
+ # Convert PowerPoint PPTX presentation to Legacy PowerPoint PPT (97-03)
3581
+ # Convert/downgrade modern Office PowerPoint PPTX Presentation to the legacy PowerPoint PPT (97-2003 Format) format
3582
+ # @param [Hash] opts the optional parameters
3583
+ # @return [Object]
3584
+ def convert_document_pptx_to_ppt(opts = {})
3585
+ data, _status_code, _headers = convert_document_pptx_to_ppt_with_http_info(opts)
3586
+ data
3587
+ end
3588
+
3589
+ # Convert PowerPoint PPTX presentation to Legacy PowerPoint PPT (97-03)
3590
+ # Convert/downgrade modern Office PowerPoint PPTX Presentation to the legacy PowerPoint PPT (97-2003 Format) format
3591
+ # @param [Hash] opts the optional parameters
3592
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
3593
+ def convert_document_pptx_to_ppt_with_http_info(opts = {})
3594
+ if @api_client.config.debugging
3595
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_pptx_to_ppt ...'
3596
+ end
3597
+ # resource path
3598
+ local_var_path = '/convert/pptx/to/ppt'
3599
+
3600
+ # query parameters
3601
+ query_params = {}
3602
+
3603
+ # header parameters
3604
+ header_params = {}
3605
+ # HTTP header 'Accept' (if needed)
3606
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3607
+
3608
+ # form parameters
3609
+ form_params = {}
3610
+
3611
+ # http body (model)
3612
+ post_body = nil
3613
+ auth_names = ['Apikey']
3614
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3615
+ :header_params => header_params,
3616
+ :query_params => query_params,
3617
+ :form_params => form_params,
3618
+ :body => post_body,
3619
+ :auth_names => auth_names,
3620
+ :return_type => 'Object')
3621
+ if @api_client.config.debugging
3622
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pptx_to_ppt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3623
+ end
3624
+ return data, status_code, headers
3625
+ end
3626
+ # Convert PowerPoint PPTX Presentation to Text (txt)
3627
+ # Convert Office PowerPoint Documents (pptx) to standard Text
3628
+ # @param input_file Input file to perform the operation on.
3629
+ # @param [Hash] opts the optional parameters
3630
+ # @return [TextConversionResult]
3631
+ def convert_document_pptx_to_txt(input_file, opts = {})
3632
+ data, _status_code, _headers = convert_document_pptx_to_txt_with_http_info(input_file, opts)
3633
+ data
3634
+ end
3635
+
3636
+ # Convert PowerPoint PPTX Presentation to Text (txt)
3637
+ # Convert Office PowerPoint Documents (pptx) to standard Text
3638
+ # @param input_file Input file to perform the operation on.
3639
+ # @param [Hash] opts the optional parameters
3640
+ # @return [Array<(TextConversionResult, Fixnum, Hash)>] TextConversionResult data, response status code and response headers
3641
+ def convert_document_pptx_to_txt_with_http_info(input_file, opts = {})
3642
+ if @api_client.config.debugging
3643
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_pptx_to_txt ...'
3644
+ end
3645
+ # verify the required parameter 'input_file' is set
3646
+ if @api_client.config.client_side_validation && input_file.nil?
3647
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_pptx_to_txt"
3648
+ end
3649
+ # resource path
3650
+ local_var_path = '/convert/pptx/to/txt'
3651
+
3652
+ # query parameters
3653
+ query_params = {}
3654
+
3655
+ # header parameters
3656
+ header_params = {}
3657
+ # HTTP header 'Accept' (if needed)
3658
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
3659
+ # HTTP header 'Content-Type'
3660
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3661
+
3662
+ # form parameters
3663
+ form_params = {}
3664
+ form_params['inputFile'] = input_file
3665
+
3666
+ # http body (model)
3667
+ post_body = nil
3668
+ auth_names = ['Apikey']
3669
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3670
+ :header_params => header_params,
3671
+ :query_params => query_params,
3672
+ :form_params => form_params,
3673
+ :body => post_body,
3674
+ :auth_names => auth_names,
3675
+ :return_type => 'TextConversionResult')
3676
+ if @api_client.config.debugging
3677
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pptx_to_txt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3678
+ end
3679
+ return data, status_code, headers
3680
+ end
3681
+ # Convert Rich Text Format RTF to DOCX Document
3682
+ # Convert Rich Text Format Document (RTF) to Word DOCX Document
3683
+ # @param input_file Input file to perform the operation on.
3684
+ # @param [Hash] opts the optional parameters
3685
+ # @return [String]
3686
+ def convert_document_rtf_to_docx(input_file, opts = {})
3687
+ data, _status_code, _headers = convert_document_rtf_to_docx_with_http_info(input_file, opts)
3688
+ data
3689
+ end
3690
+
3691
+ # Convert Rich Text Format RTF to DOCX Document
3692
+ # Convert Rich Text Format Document (RTF) to Word DOCX Document
3693
+ # @param input_file Input file to perform the operation on.
3694
+ # @param [Hash] opts the optional parameters
3695
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3696
+ def convert_document_rtf_to_docx_with_http_info(input_file, opts = {})
3697
+ if @api_client.config.debugging
3698
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_rtf_to_docx ...'
3699
+ end
3700
+ # verify the required parameter 'input_file' is set
3701
+ if @api_client.config.client_side_validation && input_file.nil?
3702
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_rtf_to_docx"
3703
+ end
3704
+ # resource path
3705
+ local_var_path = '/convert/rtf/to/docx'
3706
+
3707
+ # query parameters
3708
+ query_params = {}
3709
+
3710
+ # header parameters
3711
+ header_params = {}
3712
+ # HTTP header 'Accept' (if needed)
3713
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3714
+ # HTTP header 'Content-Type'
3715
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3716
+
3717
+ # form parameters
3718
+ form_params = {}
3719
+ form_params['inputFile'] = input_file
3720
+
3721
+ # http body (model)
3722
+ post_body = nil
3723
+ auth_names = ['Apikey']
3724
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3725
+ :header_params => header_params,
3726
+ :query_params => query_params,
3727
+ :form_params => form_params,
3728
+ :body => post_body,
3729
+ :auth_names => auth_names,
3730
+ :return_type => 'String')
3731
+ if @api_client.config.debugging
3732
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_rtf_to_docx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3733
+ end
3734
+ return data, status_code, headers
3735
+ end
3736
+ # Convert Rich Text Format RTF to HTML Document
3737
+ # Convert Rich Text Format Document (RTF) to HTML Document
3738
+ # @param input_file Input file to perform the operation on.
3739
+ # @param [Hash] opts the optional parameters
3740
+ # @return [String]
3741
+ def convert_document_rtf_to_html(input_file, opts = {})
3742
+ data, _status_code, _headers = convert_document_rtf_to_html_with_http_info(input_file, opts)
3743
+ data
3744
+ end
3745
+
3746
+ # Convert Rich Text Format RTF to HTML Document
3747
+ # Convert Rich Text Format Document (RTF) to HTML Document
3748
+ # @param input_file Input file to perform the operation on.
3749
+ # @param [Hash] opts the optional parameters
3750
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3751
+ def convert_document_rtf_to_html_with_http_info(input_file, opts = {})
3752
+ if @api_client.config.debugging
3753
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_rtf_to_html ...'
3754
+ end
3755
+ # verify the required parameter 'input_file' is set
3756
+ if @api_client.config.client_side_validation && input_file.nil?
3757
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_rtf_to_html"
3758
+ end
3759
+ # resource path
3760
+ local_var_path = '/convert/rtf/to/html'
3761
+
3762
+ # query parameters
3763
+ query_params = {}
3764
+
3765
+ # header parameters
3766
+ header_params = {}
3767
+ # HTTP header 'Accept' (if needed)
3768
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3769
+ # HTTP header 'Content-Type'
3770
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3771
+
3772
+ # form parameters
3773
+ form_params = {}
3774
+ form_params['inputFile'] = input_file
3775
+
3776
+ # http body (model)
3777
+ post_body = nil
3778
+ auth_names = ['Apikey']
3779
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3780
+ :header_params => header_params,
3781
+ :query_params => query_params,
3782
+ :form_params => form_params,
3783
+ :body => post_body,
3784
+ :auth_names => auth_names,
3785
+ :return_type => 'String')
3786
+ if @api_client.config.debugging
3787
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_rtf_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3788
+ end
3789
+ return data, status_code, headers
3790
+ end
3791
+ # Convert Rich Text Format RTF to JPG/JPEG image array
3792
+ # Converts a Rich Text Format Document (RTF) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
3793
+ # @param input_file Input file to perform the operation on.
3794
+ # @param [Hash] opts the optional parameters
3795
+ # @option opts [Integer] :quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75.
3796
+ # @return [RtfToJpgResult]
3797
+ def convert_document_rtf_to_jpg(input_file, opts = {})
3798
+ data, _status_code, _headers = convert_document_rtf_to_jpg_with_http_info(input_file, opts)
3799
+ data
3800
+ end
3801
+
3802
+ # Convert Rich Text Format RTF to JPG/JPEG image array
3803
+ # Converts a Rich Text Format Document (RTF) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
3804
+ # @param input_file Input file to perform the operation on.
3805
+ # @param [Hash] opts the optional parameters
3806
+ # @option opts [Integer] :quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75.
3807
+ # @return [Array<(RtfToJpgResult, Fixnum, Hash)>] RtfToJpgResult data, response status code and response headers
3808
+ def convert_document_rtf_to_jpg_with_http_info(input_file, opts = {})
3809
+ if @api_client.config.debugging
3810
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_rtf_to_jpg ...'
3811
+ end
3812
+ # verify the required parameter 'input_file' is set
3813
+ if @api_client.config.client_side_validation && input_file.nil?
3814
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_rtf_to_jpg"
3815
+ end
3816
+ # resource path
3817
+ local_var_path = '/convert/rtf/to/jpg'
3818
+
3819
+ # query parameters
3820
+ query_params = {}
3821
+
3822
+ # header parameters
3823
+ header_params = {}
3824
+ # HTTP header 'Accept' (if needed)
3825
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
3826
+ # HTTP header 'Content-Type'
3827
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3828
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
3829
+
3830
+ # form parameters
3831
+ form_params = {}
3832
+ form_params['inputFile'] = input_file
3833
+
3834
+ # http body (model)
3835
+ post_body = nil
3836
+ auth_names = ['Apikey']
3837
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3838
+ :header_params => header_params,
3839
+ :query_params => query_params,
3840
+ :form_params => form_params,
3841
+ :body => post_body,
3842
+ :auth_names => auth_names,
3843
+ :return_type => 'RtfToJpgResult')
3844
+ if @api_client.config.debugging
3845
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_rtf_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3846
+ end
3847
+ return data, status_code, headers
3848
+ end
3849
+ # Convert Rich Text Format RTF to PDF
3850
+ # Convert Rich Text Format Document (RTF) to standard PDF
3851
+ # @param input_file Input file to perform the operation on.
3852
+ # @param [Hash] opts the optional parameters
3853
+ # @return [String]
3854
+ def convert_document_rtf_to_pdf(input_file, opts = {})
3855
+ data, _status_code, _headers = convert_document_rtf_to_pdf_with_http_info(input_file, opts)
3856
+ data
3857
+ end
3858
+
3859
+ # Convert Rich Text Format RTF to PDF
3860
+ # Convert Rich Text Format Document (RTF) to standard PDF
3861
+ # @param input_file Input file to perform the operation on.
3862
+ # @param [Hash] opts the optional parameters
3863
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3864
+ def convert_document_rtf_to_pdf_with_http_info(input_file, opts = {})
3865
+ if @api_client.config.debugging
3866
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_rtf_to_pdf ...'
3867
+ end
3868
+ # verify the required parameter 'input_file' is set
3869
+ if @api_client.config.client_side_validation && input_file.nil?
3870
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_rtf_to_pdf"
3871
+ end
3872
+ # resource path
3873
+ local_var_path = '/convert/rtf/to/pdf'
3874
+
3875
+ # query parameters
3876
+ query_params = {}
3877
+
3878
+ # header parameters
3879
+ header_params = {}
3880
+ # HTTP header 'Accept' (if needed)
3881
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3882
+ # HTTP header 'Content-Type'
3883
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3884
+
3885
+ # form parameters
3886
+ form_params = {}
3887
+ form_params['inputFile'] = input_file
3888
+
3889
+ # http body (model)
3890
+ post_body = nil
3891
+ auth_names = ['Apikey']
3892
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3893
+ :header_params => header_params,
3894
+ :query_params => query_params,
3895
+ :form_params => form_params,
3896
+ :body => post_body,
3897
+ :auth_names => auth_names,
3898
+ :return_type => 'String')
3899
+ if @api_client.config.debugging
3900
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_rtf_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3901
+ end
3902
+ return data, status_code, headers
3903
+ end
3904
+ # Convert Rich Text Format RTF to PNG image array
3905
+ # Converts a Rich Text Format Document (RTF) to an array of PNG images, one for each page.
3906
+ # @param input_file Input file to perform the operation on.
3907
+ # @param [Hash] opts the optional parameters
3908
+ # @return [RtfToPngResult]
3909
+ def convert_document_rtf_to_png(input_file, opts = {})
3910
+ data, _status_code, _headers = convert_document_rtf_to_png_with_http_info(input_file, opts)
3911
+ data
3912
+ end
3913
+
3914
+ # Convert Rich Text Format RTF to PNG image array
3915
+ # Converts a Rich Text Format Document (RTF) to an array of PNG images, one for each page.
3916
+ # @param input_file Input file to perform the operation on.
3917
+ # @param [Hash] opts the optional parameters
3918
+ # @return [Array<(RtfToPngResult, Fixnum, Hash)>] RtfToPngResult data, response status code and response headers
3919
+ def convert_document_rtf_to_png_with_http_info(input_file, opts = {})
3920
+ if @api_client.config.debugging
3921
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_rtf_to_png ...'
3922
+ end
3923
+ # verify the required parameter 'input_file' is set
3924
+ if @api_client.config.client_side_validation && input_file.nil?
3925
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_rtf_to_png"
3926
+ end
3927
+ # resource path
3928
+ local_var_path = '/convert/rtf/to/png'
3929
+
3930
+ # query parameters
3931
+ query_params = {}
3932
+
3933
+ # header parameters
3934
+ header_params = {}
3935
+ # HTTP header 'Accept' (if needed)
3936
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
3937
+ # HTTP header 'Content-Type'
3938
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3939
+
3940
+ # form parameters
3941
+ form_params = {}
3942
+ form_params['inputFile'] = input_file
3943
+
3944
+ # http body (model)
3945
+ post_body = nil
3946
+ auth_names = ['Apikey']
3947
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3948
+ :header_params => header_params,
3949
+ :query_params => query_params,
3950
+ :form_params => form_params,
3951
+ :body => post_body,
3952
+ :auth_names => auth_names,
3953
+ :return_type => 'RtfToPngResult')
3954
+ if @api_client.config.debugging
3955
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_rtf_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3956
+ end
3957
+ return data, status_code, headers
3958
+ end
3959
+ # Convert Excel XLS (97-03) Spreadsheet to CSV
3960
+ # Convert/upgrade Office Excel (97-2003) Workbooks (xls) to standard CSV format.
3961
+ # @param input_file Input file to perform the operation on.
3962
+ # @param [Hash] opts the optional parameters
3963
+ # @return [String]
3964
+ def convert_document_xls_to_csv(input_file, opts = {})
3965
+ data, _status_code, _headers = convert_document_xls_to_csv_with_http_info(input_file, opts)
3966
+ data
3967
+ end
3968
+
3969
+ # Convert Excel XLS (97-03) Spreadsheet to CSV
3970
+ # Convert/upgrade Office Excel (97-2003) Workbooks (xls) to standard CSV format.
3971
+ # @param input_file Input file to perform the operation on.
3972
+ # @param [Hash] opts the optional parameters
3973
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3974
+ def convert_document_xls_to_csv_with_http_info(input_file, opts = {})
3975
+ if @api_client.config.debugging
3976
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_xls_to_csv ...'
3977
+ end
3978
+ # verify the required parameter 'input_file' is set
3979
+ if @api_client.config.client_side_validation && input_file.nil?
3980
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xls_to_csv"
3981
+ end
3982
+ # resource path
3983
+ local_var_path = '/convert/xls/to/csv'
3984
+
3985
+ # query parameters
3986
+ query_params = {}
3987
+
3988
+ # header parameters
3989
+ header_params = {}
3990
+ # HTTP header 'Accept' (if needed)
3991
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3992
+ # HTTP header 'Content-Type'
3993
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3994
+
3995
+ # form parameters
3996
+ form_params = {}
3997
+ form_params['inputFile'] = input_file
3998
+
3999
+ # http body (model)
4000
+ post_body = nil
4001
+ auth_names = ['Apikey']
4002
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4003
+ :header_params => header_params,
4004
+ :query_params => query_params,
4005
+ :form_params => form_params,
4006
+ :body => post_body,
4007
+ :auth_names => auth_names,
4008
+ :return_type => 'String')
4009
+ if @api_client.config.debugging
4010
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xls_to_csv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4011
+ end
4012
+ return data, status_code, headers
4013
+ end
4014
+ # Convert Excel XLS (97-03) Spreadsheet to PDF
4015
+ # Convert Office Excel (97-2003) Workbooks (xls) to standard PDF. Converts all worksheets in the workbook to PDF.
4016
+ # @param input_file Input file to perform the operation on.
4017
+ # @param [Hash] opts the optional parameters
4018
+ # @return [String]
4019
+ def convert_document_xls_to_pdf(input_file, opts = {})
4020
+ data, _status_code, _headers = convert_document_xls_to_pdf_with_http_info(input_file, opts)
4021
+ data
4022
+ end
4023
+
4024
+ # Convert Excel XLS (97-03) Spreadsheet to PDF
4025
+ # Convert Office Excel (97-2003) Workbooks (xls) to standard PDF. Converts all worksheets in the workbook to PDF.
4026
+ # @param input_file Input file to perform the operation on.
4027
+ # @param [Hash] opts the optional parameters
4028
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
4029
+ def convert_document_xls_to_pdf_with_http_info(input_file, opts = {})
4030
+ if @api_client.config.debugging
4031
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_xls_to_pdf ...'
4032
+ end
4033
+ # verify the required parameter 'input_file' is set
4034
+ if @api_client.config.client_side_validation && input_file.nil?
4035
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xls_to_pdf"
4036
+ end
4037
+ # resource path
4038
+ local_var_path = '/convert/xls/to/pdf'
4039
+
4040
+ # query parameters
4041
+ query_params = {}
4042
+
4043
+ # header parameters
4044
+ header_params = {}
4045
+ # HTTP header 'Accept' (if needed)
4046
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
4047
+ # HTTP header 'Content-Type'
4048
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4049
+
4050
+ # form parameters
4051
+ form_params = {}
4052
+ form_params['inputFile'] = input_file
4053
+
4054
+ # http body (model)
4055
+ post_body = nil
4056
+ auth_names = ['Apikey']
4057
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4058
+ :header_params => header_params,
4059
+ :query_params => query_params,
4060
+ :form_params => form_params,
4061
+ :body => post_body,
4062
+ :auth_names => auth_names,
4063
+ :return_type => 'String')
4064
+ if @api_client.config.debugging
4065
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xls_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4066
+ end
4067
+ return data, status_code, headers
4068
+ end
4069
+ # Convert Excel XLS (97-03) Spreadsheet to XLSX
4070
+ # Convert/upgrade Office Excel (97-2003) Workbooks (xls) to modern XLSX format.
4071
+ # @param input_file Input file to perform the operation on.
4072
+ # @param [Hash] opts the optional parameters
4073
+ # @return [String]
4074
+ def convert_document_xls_to_xlsx(input_file, opts = {})
4075
+ data, _status_code, _headers = convert_document_xls_to_xlsx_with_http_info(input_file, opts)
4076
+ data
4077
+ end
4078
+
4079
+ # Convert Excel XLS (97-03) Spreadsheet to XLSX
4080
+ # Convert/upgrade Office Excel (97-2003) Workbooks (xls) to modern XLSX format.
4081
+ # @param input_file Input file to perform the operation on.
4082
+ # @param [Hash] opts the optional parameters
4083
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
4084
+ def convert_document_xls_to_xlsx_with_http_info(input_file, opts = {})
4085
+ if @api_client.config.debugging
4086
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_xls_to_xlsx ...'
4087
+ end
4088
+ # verify the required parameter 'input_file' is set
4089
+ if @api_client.config.client_side_validation && input_file.nil?
4090
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xls_to_xlsx"
4091
+ end
4092
+ # resource path
4093
+ local_var_path = '/convert/xls/to/xlsx'
4094
+
4095
+ # query parameters
4096
+ query_params = {}
4097
+
4098
+ # header parameters
4099
+ header_params = {}
4100
+ # HTTP header 'Accept' (if needed)
4101
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
4102
+ # HTTP header 'Content-Type'
4103
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4104
+
4105
+ # form parameters
4106
+ form_params = {}
4107
+ form_params['inputFile'] = input_file
4108
+
4109
+ # http body (model)
4110
+ post_body = nil
4111
+ auth_names = ['Apikey']
4112
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4113
+ :header_params => header_params,
4114
+ :query_params => query_params,
4115
+ :form_params => form_params,
4116
+ :body => post_body,
4117
+ :auth_names => auth_names,
4118
+ :return_type => 'String')
4119
+ if @api_client.config.debugging
4120
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xls_to_xlsx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4121
+ end
4122
+ return data, status_code, headers
4123
+ end
4124
+ # Convert Excel XLSX Spreadsheet to CSV, Single Worksheet
4125
+ # Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format. Supports both XLSX and XLSB file Excel formats. If the input file contains multiple worksheets, the first one is used. If you wish to convert all of the worksheets (not just the first one), be sure to use the xlsx/to/csv/multi API.
4126
+ # @param input_file Input file to perform the operation on.
4127
+ # @param [Hash] opts the optional parameters
4128
+ # @option opts [String] :output_encoding Optional, set the output text encoding for the result; possible values are UTF-8, ASCII and UTF-32. Default is UTF-8.
4129
+ # @return [String]
4130
+ def convert_document_xlsx_to_csv(input_file, opts = {})
4131
+ data, _status_code, _headers = convert_document_xlsx_to_csv_with_http_info(input_file, opts)
4132
+ data
4133
+ end
4134
+
4135
+ # Convert Excel XLSX Spreadsheet to CSV, Single Worksheet
4136
+ # Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format. Supports both XLSX and XLSB file Excel formats. If the input file contains multiple worksheets, the first one is used. If you wish to convert all of the worksheets (not just the first one), be sure to use the xlsx/to/csv/multi API.
4137
+ # @param input_file Input file to perform the operation on.
4138
+ # @param [Hash] opts the optional parameters
4139
+ # @option opts [String] :output_encoding Optional, set the output text encoding for the result; possible values are UTF-8, ASCII and UTF-32. Default is UTF-8.
4140
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
4141
+ def convert_document_xlsx_to_csv_with_http_info(input_file, opts = {})
4142
+ if @api_client.config.debugging
4143
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_xlsx_to_csv ...'
4144
+ end
4145
+ # verify the required parameter 'input_file' is set
4146
+ if @api_client.config.client_side_validation && input_file.nil?
4147
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xlsx_to_csv"
4148
+ end
4149
+ # resource path
4150
+ local_var_path = '/convert/xlsx/to/csv'
4151
+
4152
+ # query parameters
4153
+ query_params = {}
4154
+
4155
+ # header parameters
4156
+ header_params = {}
4157
+ # HTTP header 'Accept' (if needed)
4158
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
4159
+ # HTTP header 'Content-Type'
4160
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4161
+ header_params[:'outputEncoding'] = opts[:'output_encoding'] if !opts[:'output_encoding'].nil?
4162
+
4163
+ # form parameters
4164
+ form_params = {}
4165
+ form_params['inputFile'] = input_file
4166
+
4167
+ # http body (model)
4168
+ post_body = nil
4169
+ auth_names = ['Apikey']
4170
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4171
+ :header_params => header_params,
4172
+ :query_params => query_params,
4173
+ :form_params => form_params,
4174
+ :body => post_body,
4175
+ :auth_names => auth_names,
4176
+ :return_type => 'String')
4177
+ if @api_client.config.debugging
4178
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xlsx_to_csv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4179
+ end
4180
+ return data, status_code, headers
4181
+ end
4182
+ # Convert Excel XLSX Spreadsheet to CSV, Multiple Worksheets
4183
+ # Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format, with support for multiple worksheets. Supports both XLSX and XLSB file Excel formats. Returns multiple CSV files, one for each worksheet (tab) in the spreadsheet.
4184
+ # @param input_file Input file to perform the operation on.
4185
+ # @param [Hash] opts the optional parameters
4186
+ # @option opts [String] :output_encoding Optional, set the output text encoding for the result; possible values are UTF-8, ASCII and UTF-32. Default is UTF-8.
4187
+ # @return [CsvCollection]
4188
+ def convert_document_xlsx_to_csv_multi(input_file, opts = {})
4189
+ data, _status_code, _headers = convert_document_xlsx_to_csv_multi_with_http_info(input_file, opts)
4190
+ data
4191
+ end
4192
+
4193
+ # Convert Excel XLSX Spreadsheet to CSV, Multiple Worksheets
4194
+ # Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format, with support for multiple worksheets. Supports both XLSX and XLSB file Excel formats. Returns multiple CSV files, one for each worksheet (tab) in the spreadsheet.
4195
+ # @param input_file Input file to perform the operation on.
4196
+ # @param [Hash] opts the optional parameters
4197
+ # @option opts [String] :output_encoding Optional, set the output text encoding for the result; possible values are UTF-8, ASCII and UTF-32. Default is UTF-8.
4198
+ # @return [Array<(CsvCollection, Fixnum, Hash)>] CsvCollection data, response status code and response headers
4199
+ def convert_document_xlsx_to_csv_multi_with_http_info(input_file, opts = {})
4200
+ if @api_client.config.debugging
4201
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_xlsx_to_csv_multi ...'
4202
+ end
4203
+ # verify the required parameter 'input_file' is set
4204
+ if @api_client.config.client_side_validation && input_file.nil?
4205
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xlsx_to_csv_multi"
4206
+ end
4207
+ # resource path
4208
+ local_var_path = '/convert/xlsx/to/csv/multi'
4209
+
4210
+ # query parameters
4211
+ query_params = {}
4212
+
4213
+ # header parameters
4214
+ header_params = {}
4215
+ # HTTP header 'Accept' (if needed)
4216
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
4217
+ # HTTP header 'Content-Type'
4218
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4219
+ header_params[:'outputEncoding'] = opts[:'output_encoding'] if !opts[:'output_encoding'].nil?
4220
+
4221
+ # form parameters
4222
+ form_params = {}
4223
+ form_params['inputFile'] = input_file
4224
+
4225
+ # http body (model)
4226
+ post_body = nil
4227
+ auth_names = ['Apikey']
4228
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4229
+ :header_params => header_params,
4230
+ :query_params => query_params,
4231
+ :form_params => form_params,
4232
+ :body => post_body,
4233
+ :auth_names => auth_names,
4234
+ :return_type => 'CsvCollection')
4235
+ if @api_client.config.debugging
4236
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xlsx_to_csv_multi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4237
+ end
4238
+ return data, status_code, headers
4239
+ end
4240
+ # Convert Excel XLSX Spreadsheet to HTML Document
4241
+ # Convert Office Excel Spreadsheet (XLSX) to HTML Document. Converts all worksheets to HTML. Supports both XLSX and XLSB Excel file formats.
4242
+ # @param input_file Input file to perform the operation on.
4243
+ # @param [Hash] opts the optional parameters
4244
+ # @return [String]
4245
+ def convert_document_xlsx_to_html(input_file, opts = {})
4246
+ data, _status_code, _headers = convert_document_xlsx_to_html_with_http_info(input_file, opts)
4247
+ data
4248
+ end
4249
+
4250
+ # Convert Excel XLSX Spreadsheet to HTML Document
4251
+ # Convert Office Excel Spreadsheet (XLSX) to HTML Document. Converts all worksheets to HTML. Supports both XLSX and XLSB Excel file formats.
4252
+ # @param input_file Input file to perform the operation on.
4253
+ # @param [Hash] opts the optional parameters
4254
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
4255
+ def convert_document_xlsx_to_html_with_http_info(input_file, opts = {})
4256
+ if @api_client.config.debugging
4257
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_xlsx_to_html ...'
4258
+ end
4259
+ # verify the required parameter 'input_file' is set
4260
+ if @api_client.config.client_side_validation && input_file.nil?
4261
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xlsx_to_html"
4262
+ end
4263
+ # resource path
4264
+ local_var_path = '/convert/xlsx/to/html'
4265
+
4266
+ # query parameters
4267
+ query_params = {}
4268
+
4269
+ # header parameters
4270
+ header_params = {}
4271
+ # HTTP header 'Accept' (if needed)
4272
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
4273
+ # HTTP header 'Content-Type'
4274
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4275
+
4276
+ # form parameters
4277
+ form_params = {}
4278
+ form_params['inputFile'] = input_file
4279
+
4280
+ # http body (model)
4281
+ post_body = nil
4282
+ auth_names = ['Apikey']
4283
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4284
+ :header_params => header_params,
4285
+ :query_params => query_params,
4286
+ :form_params => form_params,
4287
+ :body => post_body,
4288
+ :auth_names => auth_names,
4289
+ :return_type => 'String')
4290
+ if @api_client.config.debugging
4291
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xlsx_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4292
+ end
4293
+ return data, status_code, headers
4294
+ end
4295
+ # Convert Excel XLSX Spreadsheet to PDF
4296
+ # Convert Office Excel Workbooks (XLSX) to standard PDF. Converts all worksheets in the workbook to PDF. Supports both XLSX and XLSB Excel file formats.
4297
+ # @param input_file Input file to perform the operation on.
4298
+ # @param [Hash] opts the optional parameters
4299
+ # @return [String]
4300
+ def convert_document_xlsx_to_pdf(input_file, opts = {})
4301
+ data, _status_code, _headers = convert_document_xlsx_to_pdf_with_http_info(input_file, opts)
4302
+ data
4303
+ end
4304
+
4305
+ # Convert Excel XLSX Spreadsheet to PDF
4306
+ # Convert Office Excel Workbooks (XLSX) to standard PDF. Converts all worksheets in the workbook to PDF. Supports both XLSX and XLSB Excel file formats.
4307
+ # @param input_file Input file to perform the operation on.
4308
+ # @param [Hash] opts the optional parameters
4309
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
4310
+ def convert_document_xlsx_to_pdf_with_http_info(input_file, opts = {})
4311
+ if @api_client.config.debugging
4312
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_xlsx_to_pdf ...'
4313
+ end
4314
+ # verify the required parameter 'input_file' is set
4315
+ if @api_client.config.client_side_validation && input_file.nil?
4316
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xlsx_to_pdf"
4317
+ end
4318
+ # resource path
4319
+ local_var_path = '/convert/xlsx/to/pdf'
4320
+
4321
+ # query parameters
4322
+ query_params = {}
4323
+
4324
+ # header parameters
4325
+ header_params = {}
4326
+ # HTTP header 'Accept' (if needed)
4327
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
4328
+ # HTTP header 'Content-Type'
4329
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4330
+
4331
+ # form parameters
4332
+ form_params = {}
4333
+ form_params['inputFile'] = input_file
4334
+
4335
+ # http body (model)
4336
+ post_body = nil
4337
+ auth_names = ['Apikey']
4338
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4339
+ :header_params => header_params,
4340
+ :query_params => query_params,
4341
+ :form_params => form_params,
4342
+ :body => post_body,
4343
+ :auth_names => auth_names,
4344
+ :return_type => 'String')
4345
+ if @api_client.config.debugging
4346
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xlsx_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4347
+ end
4348
+ return data, status_code, headers
4349
+ end
4350
+ # Convert Excel XLSX spreadsheet to PNG image array
4351
+ # Converts an Excel Spreadsheet (XLSX) file to an array of PNG images, one for each page.
4352
+ # @param input_file Input file to perform the operation on.
4353
+ # @param [Hash] opts the optional parameters
4354
+ # @return [XlsxToPngResult]
4355
+ def convert_document_xlsx_to_png(input_file, opts = {})
4356
+ data, _status_code, _headers = convert_document_xlsx_to_png_with_http_info(input_file, opts)
4357
+ data
4358
+ end
4359
+
4360
+ # Convert Excel XLSX spreadsheet to PNG image array
4361
+ # Converts an Excel Spreadsheet (XLSX) file to an array of PNG images, one for each page.
4362
+ # @param input_file Input file to perform the operation on.
4363
+ # @param [Hash] opts the optional parameters
4364
+ # @return [Array<(XlsxToPngResult, Fixnum, Hash)>] XlsxToPngResult data, response status code and response headers
4365
+ def convert_document_xlsx_to_png_with_http_info(input_file, opts = {})
4366
+ if @api_client.config.debugging
4367
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_xlsx_to_png ...'
4368
+ end
4369
+ # verify the required parameter 'input_file' is set
4370
+ if @api_client.config.client_side_validation && input_file.nil?
4371
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xlsx_to_png"
4372
+ end
4373
+ # resource path
4374
+ local_var_path = '/convert/xlsx/to/png'
4375
+
4376
+ # query parameters
4377
+ query_params = {}
4378
+
4379
+ # header parameters
4380
+ header_params = {}
4381
+ # HTTP header 'Accept' (if needed)
4382
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
4383
+ # HTTP header 'Content-Type'
4384
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4385
+
4386
+ # form parameters
4387
+ form_params = {}
4388
+ form_params['inputFile'] = input_file
4389
+
4390
+ # http body (model)
4391
+ post_body = nil
4392
+ auth_names = ['Apikey']
4393
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4394
+ :header_params => header_params,
4395
+ :query_params => query_params,
4396
+ :form_params => form_params,
4397
+ :body => post_body,
4398
+ :auth_names => auth_names,
4399
+ :return_type => 'XlsxToPngResult')
4400
+ if @api_client.config.debugging
4401
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xlsx_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4402
+ end
4403
+ return data, status_code, headers
4404
+ end
4405
+ # Convert Excel XLSX Spreadsheet to Text (txt)
4406
+ # Convert Office Excel Workbooks (XLSX) to standard Text. Converts all worksheets in the workbook to Text. Supports both XLSX and XLSB file formats. When a spreadsheet contains multiple worksheets, will export all of the text from all of the worksheets. If you wish to export the text from only one worksheet, try using the Split XLSX API to split the spreadsheet into multiple worksheet files, and then run XLSX to Text on the individual worksheet file that you need to extract the text from.
4407
+ # @param input_file Input file to perform the operation on.
4408
+ # @param [Hash] opts the optional parameters
4409
+ # @return [TextConversionResult]
4410
+ def convert_document_xlsx_to_txt(input_file, opts = {})
4411
+ data, _status_code, _headers = convert_document_xlsx_to_txt_with_http_info(input_file, opts)
4412
+ data
4413
+ end
4414
+
4415
+ # Convert Excel XLSX Spreadsheet to Text (txt)
4416
+ # Convert Office Excel Workbooks (XLSX) to standard Text. Converts all worksheets in the workbook to Text. Supports both XLSX and XLSB file formats. When a spreadsheet contains multiple worksheets, will export all of the text from all of the worksheets. If you wish to export the text from only one worksheet, try using the Split XLSX API to split the spreadsheet into multiple worksheet files, and then run XLSX to Text on the individual worksheet file that you need to extract the text from.
4417
+ # @param input_file Input file to perform the operation on.
4418
+ # @param [Hash] opts the optional parameters
4419
+ # @return [Array<(TextConversionResult, Fixnum, Hash)>] TextConversionResult data, response status code and response headers
4420
+ def convert_document_xlsx_to_txt_with_http_info(input_file, opts = {})
4421
+ if @api_client.config.debugging
4422
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_xlsx_to_txt ...'
4423
+ end
4424
+ # verify the required parameter 'input_file' is set
4425
+ if @api_client.config.client_side_validation && input_file.nil?
4426
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xlsx_to_txt"
4427
+ end
4428
+ # resource path
4429
+ local_var_path = '/convert/xlsx/to/txt'
4430
+
4431
+ # query parameters
4432
+ query_params = {}
4433
+
4434
+ # header parameters
4435
+ header_params = {}
4436
+ # HTTP header 'Accept' (if needed)
4437
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
4438
+ # HTTP header 'Content-Type'
4439
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4440
+
4441
+ # form parameters
4442
+ form_params = {}
4443
+ form_params['inputFile'] = input_file
4444
+
4445
+ # http body (model)
4446
+ post_body = nil
4447
+ auth_names = ['Apikey']
4448
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4449
+ :header_params => header_params,
4450
+ :query_params => query_params,
4451
+ :form_params => form_params,
4452
+ :body => post_body,
4453
+ :auth_names => auth_names,
4454
+ :return_type => 'TextConversionResult')
4455
+ if @api_client.config.debugging
4456
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xlsx_to_txt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4457
+ end
4458
+ return data, status_code, headers
4459
+ end
4460
+ # Convert Excel XLSX Spreadsheet to Legacy Excel XLS (97-03)
4461
+ # Convert/downgrade modern Office Excel XLSX Spreadsheet to the legacy Excel XLS (97-2003 Format) format
4462
+ # @param input_file Input file to perform the operation on.
4463
+ # @param [Hash] opts the optional parameters
4464
+ # @return [String]
4465
+ def convert_document_xlsx_to_xls(input_file, opts = {})
4466
+ data, _status_code, _headers = convert_document_xlsx_to_xls_with_http_info(input_file, opts)
4467
+ data
4468
+ end
4469
+
4470
+ # Convert Excel XLSX Spreadsheet to Legacy Excel XLS (97-03)
4471
+ # Convert/downgrade modern Office Excel XLSX Spreadsheet to the legacy Excel XLS (97-2003 Format) format
4472
+ # @param input_file Input file to perform the operation on.
4473
+ # @param [Hash] opts the optional parameters
4474
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
4475
+ def convert_document_xlsx_to_xls_with_http_info(input_file, opts = {})
4476
+ if @api_client.config.debugging
4477
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_xlsx_to_xls ...'
4478
+ end
4479
+ # verify the required parameter 'input_file' is set
4480
+ if @api_client.config.client_side_validation && input_file.nil?
4481
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xlsx_to_xls"
4482
+ end
4483
+ # resource path
4484
+ local_var_path = '/convert/xlsx/to/xls'
4485
+
4486
+ # query parameters
4487
+ query_params = {}
4488
+
4489
+ # header parameters
4490
+ header_params = {}
4491
+ # HTTP header 'Accept' (if needed)
4492
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
4493
+ # HTTP header 'Content-Type'
4494
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4495
+
4496
+ # form parameters
4497
+ form_params = {}
4498
+ form_params['inputFile'] = input_file
4499
+
4500
+ # http body (model)
4501
+ post_body = nil
4502
+ auth_names = ['Apikey']
4503
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4504
+ :header_params => header_params,
4505
+ :query_params => query_params,
4506
+ :form_params => form_params,
4507
+ :body => post_body,
4508
+ :auth_names => auth_names,
4509
+ :return_type => 'String')
4510
+ if @api_client.config.debugging
4511
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xlsx_to_xls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4512
+ end
4513
+ return data, status_code, headers
4514
+ end
4515
+ end
4516
+ end