cloudmersive-convert-api-client 2.0.4 → 2.1.0

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 +588 -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 +902 -0
  28. data/docs/ConvertDocumentApi.md +4344 -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 +1141 -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 +943 -0
  239. data/docs/ViewerResponse.md +9 -0
  240. data/docs/ViewerToolsApi.md +63 -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 +966 -0
  266. data/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +4360 -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 +1225 -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 +958 -0
  278. data/lib/cloudmersive-convert-api-client/api/viewer_tools_api.rb +78 -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 +240 -0
  526. data/spec/api/convert_document_api_spec.rb +998 -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 +295 -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 +239 -0
  538. data/spec/api/viewer_tools_api_spec.rb +47 -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,4360 @@
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 HTML Document
854
+ # Convert Office Word Document (DOCX) to HTML Document
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_html(input_file, opts = {})
859
+ data, _status_code, _headers = convert_document_docx_to_html_with_http_info(input_file, opts)
860
+ data
861
+ end
862
+
863
+ # Convert Word DOCX Document to HTML Document
864
+ # Convert Office Word Document (DOCX) to HTML Document
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_html_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_html ...'
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_html"
875
+ end
876
+ # resource path
877
+ local_var_path = '/convert/docx/to/html'
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_html\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 JPG/JPEG image array
909
+ # Converts an Office Word Document (DOCX) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
910
+ # @param input_file Input file to perform the operation on.
911
+ # @param [Hash] opts the optional parameters
912
+ # @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.
913
+ # @return [DocxToJpgResult]
914
+ def convert_document_docx_to_jpg(input_file, opts = {})
915
+ data, _status_code, _headers = convert_document_docx_to_jpg_with_http_info(input_file, opts)
916
+ data
917
+ end
918
+
919
+ # Convert Word DOCX Document to JPG/JPEG image array
920
+ # Converts an Office Word Document (DOCX) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
921
+ # @param input_file Input file to perform the operation on.
922
+ # @param [Hash] opts the optional parameters
923
+ # @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.
924
+ # @return [Array<(DocxToJpgResult, Fixnum, Hash)>] DocxToJpgResult data, response status code and response headers
925
+ def convert_document_docx_to_jpg_with_http_info(input_file, opts = {})
926
+ if @api_client.config.debugging
927
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_docx_to_jpg ...'
928
+ end
929
+ # verify the required parameter 'input_file' is set
930
+ if @api_client.config.client_side_validation && input_file.nil?
931
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_docx_to_jpg"
932
+ end
933
+ # resource path
934
+ local_var_path = '/convert/docx/to/jpg'
935
+
936
+ # query parameters
937
+ query_params = {}
938
+
939
+ # header parameters
940
+ header_params = {}
941
+ # HTTP header 'Accept' (if needed)
942
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
943
+ # HTTP header 'Content-Type'
944
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
945
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
946
+
947
+ # form parameters
948
+ form_params = {}
949
+ form_params['inputFile'] = input_file
950
+
951
+ # http body (model)
952
+ post_body = nil
953
+ auth_names = ['Apikey']
954
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
955
+ :header_params => header_params,
956
+ :query_params => query_params,
957
+ :form_params => form_params,
958
+ :body => post_body,
959
+ :auth_names => auth_names,
960
+ :return_type => 'DocxToJpgResult')
961
+ if @api_client.config.debugging
962
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_docx_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
963
+ end
964
+ return data, status_code, headers
965
+ end
966
+ # Convert Word DOCX Document to PDF
967
+ # Convert Office Word Documents (docx) to standard PDF
968
+ # @param input_file Input file to perform the operation on.
969
+ # @param [Hash] opts the optional parameters
970
+ # @return [String]
971
+ def convert_document_docx_to_pdf(input_file, opts = {})
972
+ data, _status_code, _headers = convert_document_docx_to_pdf_with_http_info(input_file, opts)
973
+ data
974
+ end
975
+
976
+ # Convert Word DOCX Document to PDF
977
+ # Convert Office Word Documents (docx) to standard PDF
978
+ # @param input_file Input file to perform the operation on.
979
+ # @param [Hash] opts the optional parameters
980
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
981
+ def convert_document_docx_to_pdf_with_http_info(input_file, opts = {})
982
+ if @api_client.config.debugging
983
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_docx_to_pdf ...'
984
+ end
985
+ # verify the required parameter 'input_file' is set
986
+ if @api_client.config.client_side_validation && input_file.nil?
987
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_docx_to_pdf"
988
+ end
989
+ # resource path
990
+ local_var_path = '/convert/docx/to/pdf'
991
+
992
+ # query parameters
993
+ query_params = {}
994
+
995
+ # header parameters
996
+ header_params = {}
997
+ # HTTP header 'Accept' (if needed)
998
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
999
+ # HTTP header 'Content-Type'
1000
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
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 => 'String')
1016
+ if @api_client.config.debugging
1017
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_docx_to_pdf\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 PNG image array
1022
+ # Converts an Office Word Document (DOCX) file to an array of PNG images, one for each page.
1023
+ # @param input_file Input file to perform the operation on.
1024
+ # @param [Hash] opts the optional parameters
1025
+ # @return [DocxToPngResult]
1026
+ def convert_document_docx_to_png(input_file, opts = {})
1027
+ data, _status_code, _headers = convert_document_docx_to_png_with_http_info(input_file, opts)
1028
+ data
1029
+ end
1030
+
1031
+ # Convert Word DOCX Document to PNG image array
1032
+ # Converts an Office Word Document (DOCX) file to an array of PNG images, one for each page.
1033
+ # @param input_file Input file to perform the operation on.
1034
+ # @param [Hash] opts the optional parameters
1035
+ # @return [Array<(DocxToPngResult, Fixnum, Hash)>] DocxToPngResult data, response status code and response headers
1036
+ def convert_document_docx_to_png_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_png ...'
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_png"
1043
+ end
1044
+ # resource path
1045
+ local_var_path = '/convert/docx/to/png'
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/json', 'text/json', 'application/xml', 'text/xml'])
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 => 'DocxToPngResult')
1071
+ if @api_client.config.debugging
1072
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_docx_to_png\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 RTF
1077
+ # Convert an Office Word Document (DOCX) to Rich Text Format Document (RTF)
1078
+ # @param input_file Input file to perform the operation on.
1079
+ # @param [Hash] opts the optional parameters
1080
+ # @return [String]
1081
+ def convert_document_docx_to_rtf(input_file, opts = {})
1082
+ data, _status_code, _headers = convert_document_docx_to_rtf_with_http_info(input_file, opts)
1083
+ data
1084
+ end
1085
+
1086
+ # Convert Word DOCX Document to RTF
1087
+ # Convert an Office Word Document (DOCX) to Rich Text Format Document (RTF)
1088
+ # @param input_file Input file to perform the operation on.
1089
+ # @param [Hash] opts the optional parameters
1090
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
1091
+ def convert_document_docx_to_rtf_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_rtf ...'
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_rtf"
1098
+ end
1099
+ # resource path
1100
+ local_var_path = '/convert/docx/to/rtf'
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/octet-stream'])
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 => 'String')
1126
+ if @api_client.config.debugging
1127
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_docx_to_rtf\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 Text (txt)
1132
+ # Convert Office Word Documents (docx) to text
1133
+ # @param input_file Input file to perform the operation on.
1134
+ # @param [Hash] opts the optional parameters
1135
+ # @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;.
1136
+ # @return [TextConversionResult]
1137
+ def convert_document_docx_to_txt(input_file, opts = {})
1138
+ data, _status_code, _headers = convert_document_docx_to_txt_with_http_info(input_file, opts)
1139
+ data
1140
+ end
1141
+
1142
+ # Convert Word DOCX Document to Text (txt)
1143
+ # Convert Office Word Documents (docx) to text
1144
+ # @param input_file Input file to perform the operation on.
1145
+ # @param [Hash] opts the optional parameters
1146
+ # @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;.
1147
+ # @return [Array<(TextConversionResult, Fixnum, Hash)>] TextConversionResult data, response status code and response headers
1148
+ def convert_document_docx_to_txt_with_http_info(input_file, opts = {})
1149
+ if @api_client.config.debugging
1150
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_docx_to_txt ...'
1151
+ end
1152
+ # verify the required parameter 'input_file' is set
1153
+ if @api_client.config.client_side_validation && input_file.nil?
1154
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_docx_to_txt"
1155
+ end
1156
+ # resource path
1157
+ local_var_path = '/convert/docx/to/txt'
1158
+
1159
+ # query parameters
1160
+ query_params = {}
1161
+
1162
+ # header parameters
1163
+ header_params = {}
1164
+ # HTTP header 'Accept' (if needed)
1165
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
1166
+ # HTTP header 'Content-Type'
1167
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1168
+ header_params[:'textFormattingMode'] = opts[:'text_formatting_mode'] if !opts[:'text_formatting_mode'].nil?
1169
+
1170
+ # form parameters
1171
+ form_params = {}
1172
+ form_params['inputFile'] = input_file
1173
+
1174
+ # http body (model)
1175
+ post_body = nil
1176
+ auth_names = ['Apikey']
1177
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1178
+ :header_params => header_params,
1179
+ :query_params => query_params,
1180
+ :form_params => form_params,
1181
+ :body => post_body,
1182
+ :auth_names => auth_names,
1183
+ :return_type => 'TextConversionResult')
1184
+ if @api_client.config.debugging
1185
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_docx_to_txt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1186
+ end
1187
+ return data, status_code, headers
1188
+ end
1189
+ # Convert Email EML file to HTML string
1190
+ # Convert Outlook Email EML file to HTML string and attachments. Supports images if they are base 64 inline.
1191
+ # @param input_file Input file to perform the operation on.
1192
+ # @param [Hash] opts the optional parameters
1193
+ # @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.
1194
+ # @option opts [BOOLEAN] :include_attachments Optional; If false, the response object will not include any attachment files from the input file. Default is true.
1195
+ # @return [EmlToHtmlResult]
1196
+ def convert_document_eml_to_html(input_file, opts = {})
1197
+ data, _status_code, _headers = convert_document_eml_to_html_with_http_info(input_file, opts)
1198
+ data
1199
+ end
1200
+
1201
+ # Convert Email EML file to HTML string
1202
+ # Convert Outlook Email EML file to HTML string and attachments. Supports images if they are base 64 inline.
1203
+ # @param input_file Input file to perform the operation on.
1204
+ # @param [Hash] opts the optional parameters
1205
+ # @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.
1206
+ # @option opts [BOOLEAN] :include_attachments Optional; If false, the response object will not include any attachment files from the input file. Default is true.
1207
+ # @return [Array<(EmlToHtmlResult, Fixnum, Hash)>] EmlToHtmlResult data, response status code and response headers
1208
+ def convert_document_eml_to_html_with_http_info(input_file, opts = {})
1209
+ if @api_client.config.debugging
1210
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_eml_to_html ...'
1211
+ end
1212
+ # verify the required parameter 'input_file' is set
1213
+ if @api_client.config.client_side_validation && input_file.nil?
1214
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_eml_to_html"
1215
+ end
1216
+ # resource path
1217
+ local_var_path = '/convert/eml/to/html'
1218
+
1219
+ # query parameters
1220
+ query_params = {}
1221
+
1222
+ # header parameters
1223
+ header_params = {}
1224
+ # HTTP header 'Accept' (if needed)
1225
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
1226
+ # HTTP header 'Content-Type'
1227
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1228
+ header_params[:'bodyOnly'] = opts[:'body_only'] if !opts[:'body_only'].nil?
1229
+ header_params[:'includeAttachments'] = opts[:'include_attachments'] if !opts[:'include_attachments'].nil?
1230
+
1231
+ # form parameters
1232
+ form_params = {}
1233
+ form_params['inputFile'] = input_file
1234
+
1235
+ # http body (model)
1236
+ post_body = nil
1237
+ auth_names = ['Apikey']
1238
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1239
+ :header_params => header_params,
1240
+ :query_params => query_params,
1241
+ :form_params => form_params,
1242
+ :body => post_body,
1243
+ :auth_names => auth_names,
1244
+ :return_type => 'EmlToHtmlResult')
1245
+ if @api_client.config.debugging
1246
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_eml_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1247
+ end
1248
+ return data, status_code, headers
1249
+ end
1250
+ # Convert Email EML file to JPG/JPEG image array
1251
+ # Converts an Outlook Email File (EML) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
1252
+ # @param input_file Input file to perform the operation on.
1253
+ # @param [Hash] opts the optional parameters
1254
+ # @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.
1255
+ # @return [EmlToJpgResult]
1256
+ def convert_document_eml_to_jpg(input_file, opts = {})
1257
+ data, _status_code, _headers = convert_document_eml_to_jpg_with_http_info(input_file, opts)
1258
+ data
1259
+ end
1260
+
1261
+ # Convert Email EML file to JPG/JPEG image array
1262
+ # Converts an Outlook Email File (EML) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
1263
+ # @param input_file Input file to perform the operation on.
1264
+ # @param [Hash] opts the optional parameters
1265
+ # @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.
1266
+ # @return [Array<(EmlToJpgResult, Fixnum, Hash)>] EmlToJpgResult data, response status code and response headers
1267
+ def convert_document_eml_to_jpg_with_http_info(input_file, opts = {})
1268
+ if @api_client.config.debugging
1269
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_eml_to_jpg ...'
1270
+ end
1271
+ # verify the required parameter 'input_file' is set
1272
+ if @api_client.config.client_side_validation && input_file.nil?
1273
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_eml_to_jpg"
1274
+ end
1275
+ # resource path
1276
+ local_var_path = '/convert/eml/to/jpg'
1277
+
1278
+ # query parameters
1279
+ query_params = {}
1280
+
1281
+ # header parameters
1282
+ header_params = {}
1283
+ # HTTP header 'Accept' (if needed)
1284
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
1285
+ # HTTP header 'Content-Type'
1286
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1287
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
1288
+
1289
+ # form parameters
1290
+ form_params = {}
1291
+ form_params['inputFile'] = input_file
1292
+
1293
+ # http body (model)
1294
+ post_body = nil
1295
+ auth_names = ['Apikey']
1296
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1297
+ :header_params => header_params,
1298
+ :query_params => query_params,
1299
+ :form_params => form_params,
1300
+ :body => post_body,
1301
+ :auth_names => auth_names,
1302
+ :return_type => 'EmlToJpgResult')
1303
+ if @api_client.config.debugging
1304
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_eml_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1305
+ end
1306
+ return data, status_code, headers
1307
+ end
1308
+ # Convert Email EML file to PDF document
1309
+ # Convert Outlook Email EML file to PDF document. Supports images if they are base 64 inline.
1310
+ # @param input_file Input file to perform the operation on.
1311
+ # @param [Hash] opts the optional parameters
1312
+ # @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.
1313
+ # @return [String]
1314
+ def convert_document_eml_to_pdf(input_file, opts = {})
1315
+ data, _status_code, _headers = convert_document_eml_to_pdf_with_http_info(input_file, opts)
1316
+ data
1317
+ end
1318
+
1319
+ # Convert Email EML file to PDF document
1320
+ # Convert Outlook Email EML file to PDF document. Supports images if they are base 64 inline.
1321
+ # @param input_file Input file to perform the operation on.
1322
+ # @param [Hash] opts the optional parameters
1323
+ # @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.
1324
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
1325
+ def convert_document_eml_to_pdf_with_http_info(input_file, opts = {})
1326
+ if @api_client.config.debugging
1327
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_eml_to_pdf ...'
1328
+ end
1329
+ # verify the required parameter 'input_file' is set
1330
+ if @api_client.config.client_side_validation && input_file.nil?
1331
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_eml_to_pdf"
1332
+ end
1333
+ # resource path
1334
+ local_var_path = '/convert/eml/to/pdf'
1335
+
1336
+ # query parameters
1337
+ query_params = {}
1338
+
1339
+ # header parameters
1340
+ header_params = {}
1341
+ # HTTP header 'Accept' (if needed)
1342
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
1343
+ # HTTP header 'Content-Type'
1344
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1345
+ header_params[:'bodyOnly'] = opts[:'body_only'] if !opts[:'body_only'].nil?
1346
+
1347
+ # form parameters
1348
+ form_params = {}
1349
+ form_params['inputFile'] = input_file
1350
+
1351
+ # http body (model)
1352
+ post_body = nil
1353
+ auth_names = ['Apikey']
1354
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1355
+ :header_params => header_params,
1356
+ :query_params => query_params,
1357
+ :form_params => form_params,
1358
+ :body => post_body,
1359
+ :auth_names => auth_names,
1360
+ :return_type => 'String')
1361
+ if @api_client.config.debugging
1362
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_eml_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1363
+ end
1364
+ return data, status_code, headers
1365
+ end
1366
+ # Convert Email EML file to PNG image array
1367
+ # Converts an Outlook Email File (EML) to an array of PNG images, one for each page.
1368
+ # @param input_file Input file to perform the operation on.
1369
+ # @param [Hash] opts the optional parameters
1370
+ # @return [EmlToPngResult]
1371
+ def convert_document_eml_to_png(input_file, opts = {})
1372
+ data, _status_code, _headers = convert_document_eml_to_png_with_http_info(input_file, opts)
1373
+ data
1374
+ end
1375
+
1376
+ # Convert Email EML file to PNG image array
1377
+ # Converts an Outlook Email File (EML) to an array of PNG images, one for each page.
1378
+ # @param input_file Input file to perform the operation on.
1379
+ # @param [Hash] opts the optional parameters
1380
+ # @return [Array<(EmlToPngResult, Fixnum, Hash)>] EmlToPngResult data, response status code and response headers
1381
+ def convert_document_eml_to_png_with_http_info(input_file, opts = {})
1382
+ if @api_client.config.debugging
1383
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_eml_to_png ...'
1384
+ end
1385
+ # verify the required parameter 'input_file' is set
1386
+ if @api_client.config.client_side_validation && input_file.nil?
1387
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_eml_to_png"
1388
+ end
1389
+ # resource path
1390
+ local_var_path = '/convert/eml/to/png'
1391
+
1392
+ # query parameters
1393
+ query_params = {}
1394
+
1395
+ # header parameters
1396
+ header_params = {}
1397
+ # HTTP header 'Accept' (if needed)
1398
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
1399
+ # HTTP header 'Content-Type'
1400
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
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 => 'EmlToPngResult')
1416
+ if @api_client.config.debugging
1417
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_eml_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1418
+ end
1419
+ return data, status_code, headers
1420
+ end
1421
+ # Get PNG icon file for the file extension
1422
+ # 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.
1423
+ # @param file_extension Required; The file extension to be used for the icon. Limited to 4 AlphaNumeric characters.
1424
+ # @param [Hash] opts the optional parameters
1425
+ # @option opts [Integer] :icon_size Optional; The desired width of the icon, preserving its aspect ratio.
1426
+ # @return [String]
1427
+ def convert_document_get_file_type_icon(file_extension, opts = {})
1428
+ data, _status_code, _headers = convert_document_get_file_type_icon_with_http_info(file_extension, opts)
1429
+ data
1430
+ end
1431
+
1432
+ # Get PNG icon file for the file extension
1433
+ # 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.
1434
+ # @param file_extension Required; The file extension to be used for the icon. Limited to 4 AlphaNumeric characters.
1435
+ # @param [Hash] opts the optional parameters
1436
+ # @option opts [Integer] :icon_size Optional; The desired width of the icon, preserving its aspect ratio.
1437
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
1438
+ def convert_document_get_file_type_icon_with_http_info(file_extension, opts = {})
1439
+ if @api_client.config.debugging
1440
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_get_file_type_icon ...'
1441
+ end
1442
+ # verify the required parameter 'file_extension' is set
1443
+ if @api_client.config.client_side_validation && file_extension.nil?
1444
+ fail ArgumentError, "Missing the required parameter 'file_extension' when calling ConvertDocumentApi.convert_document_get_file_type_icon"
1445
+ end
1446
+ # resource path
1447
+ local_var_path = '/convert/autodetect/get-icon'
1448
+
1449
+ # query parameters
1450
+ query_params = {}
1451
+
1452
+ # header parameters
1453
+ header_params = {}
1454
+ # HTTP header 'Accept' (if needed)
1455
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
1456
+ header_params[:'fileExtension'] = file_extension
1457
+ header_params[:'iconSize'] = opts[:'icon_size'] if !opts[:'icon_size'].nil?
1458
+
1459
+ # form parameters
1460
+ form_params = {}
1461
+
1462
+ # http body (model)
1463
+ post_body = nil
1464
+ auth_names = ['Apikey']
1465
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1466
+ :header_params => header_params,
1467
+ :query_params => query_params,
1468
+ :form_params => form_params,
1469
+ :body => post_body,
1470
+ :auth_names => auth_names,
1471
+ :return_type => 'String')
1472
+ if @api_client.config.debugging
1473
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_get_file_type_icon\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1474
+ end
1475
+ return data, status_code, headers
1476
+ end
1477
+ # Get PNG icon byte array for the file extension
1478
+ # 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.
1479
+ # @param file_extension Required; The file extension to be used for the icon. Limited to 4 AlphaNumeric characters.
1480
+ # @param [Hash] opts the optional parameters
1481
+ # @option opts [Integer] :icon_size Optional; The desired width of the icon, preserving its aspect ratio.
1482
+ # @return [GetFileTypeIconResult]
1483
+ def convert_document_get_file_type_icon_advanced(file_extension, opts = {})
1484
+ data, _status_code, _headers = convert_document_get_file_type_icon_advanced_with_http_info(file_extension, opts)
1485
+ data
1486
+ end
1487
+
1488
+ # Get PNG icon byte array for the file extension
1489
+ # 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.
1490
+ # @param file_extension Required; The file extension to be used for the icon. Limited to 4 AlphaNumeric characters.
1491
+ # @param [Hash] opts the optional parameters
1492
+ # @option opts [Integer] :icon_size Optional; The desired width of the icon, preserving its aspect ratio.
1493
+ # @return [Array<(GetFileTypeIconResult, Fixnum, Hash)>] GetFileTypeIconResult data, response status code and response headers
1494
+ def convert_document_get_file_type_icon_advanced_with_http_info(file_extension, opts = {})
1495
+ if @api_client.config.debugging
1496
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_get_file_type_icon_advanced ...'
1497
+ end
1498
+ # verify the required parameter 'file_extension' is set
1499
+ if @api_client.config.client_side_validation && file_extension.nil?
1500
+ fail ArgumentError, "Missing the required parameter 'file_extension' when calling ConvertDocumentApi.convert_document_get_file_type_icon_advanced"
1501
+ end
1502
+ # resource path
1503
+ local_var_path = '/convert/autodetect/get-icon/advanced'
1504
+
1505
+ # query parameters
1506
+ query_params = {}
1507
+
1508
+ # header parameters
1509
+ header_params = {}
1510
+ # HTTP header 'Accept' (if needed)
1511
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
1512
+ header_params[:'fileExtension'] = file_extension
1513
+ header_params[:'iconSize'] = opts[:'icon_size'] if !opts[:'icon_size'].nil?
1514
+
1515
+ # form parameters
1516
+ form_params = {}
1517
+
1518
+ # http body (model)
1519
+ post_body = nil
1520
+ auth_names = ['Apikey']
1521
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1522
+ :header_params => header_params,
1523
+ :query_params => query_params,
1524
+ :form_params => form_params,
1525
+ :body => post_body,
1526
+ :auth_names => auth_names,
1527
+ :return_type => 'GetFileTypeIconResult')
1528
+ if @api_client.config.debugging
1529
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_get_file_type_icon_advanced\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1530
+ end
1531
+ return data, status_code, headers
1532
+ end
1533
+ # Convert HTML document file to PDF Document
1534
+ # 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.
1535
+ # @param input_file Input file to perform the operation on.
1536
+ # @param [Hash] opts the optional parameters
1537
+ # @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.
1538
+ # @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%.
1539
+ # @return [String]
1540
+ def convert_document_html_to_pdf(input_file, opts = {})
1541
+ data, _status_code, _headers = convert_document_html_to_pdf_with_http_info(input_file, opts)
1542
+ data
1543
+ end
1544
+
1545
+ # Convert HTML document file to PDF Document
1546
+ # 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.
1547
+ # @param input_file Input file to perform the operation on.
1548
+ # @param [Hash] opts the optional parameters
1549
+ # @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.
1550
+ # @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%.
1551
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
1552
+ def convert_document_html_to_pdf_with_http_info(input_file, opts = {})
1553
+ if @api_client.config.debugging
1554
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_html_to_pdf ...'
1555
+ end
1556
+ # verify the required parameter 'input_file' is set
1557
+ if @api_client.config.client_side_validation && input_file.nil?
1558
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_html_to_pdf"
1559
+ end
1560
+ # resource path
1561
+ local_var_path = '/convert/html/to/pdf'
1562
+
1563
+ # query parameters
1564
+ query_params = {}
1565
+
1566
+ # header parameters
1567
+ header_params = {}
1568
+ # HTTP header 'Accept' (if needed)
1569
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
1570
+ # HTTP header 'Content-Type'
1571
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1572
+ header_params[:'includeBackgroundGraphics'] = opts[:'include_background_graphics'] if !opts[:'include_background_graphics'].nil?
1573
+ header_params[:'scaleFactor'] = opts[:'scale_factor'] if !opts[:'scale_factor'].nil?
1574
+
1575
+ # form parameters
1576
+ form_params = {}
1577
+ form_params['inputFile'] = input_file
1578
+
1579
+ # http body (model)
1580
+ post_body = nil
1581
+ auth_names = ['Apikey']
1582
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1583
+ :header_params => header_params,
1584
+ :query_params => query_params,
1585
+ :form_params => form_params,
1586
+ :body => post_body,
1587
+ :auth_names => auth_names,
1588
+ :return_type => 'String')
1589
+ if @api_client.config.debugging
1590
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_html_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1591
+ end
1592
+ return data, status_code, headers
1593
+ end
1594
+ # Convert HTML document file to PNG image array
1595
+ # 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.
1596
+ # @param input_file Input file to perform the operation on.
1597
+ # @param [Hash] opts the optional parameters
1598
+ # @return [PdfToPngResult]
1599
+ def convert_document_html_to_png(input_file, opts = {})
1600
+ data, _status_code, _headers = convert_document_html_to_png_with_http_info(input_file, opts)
1601
+ data
1602
+ end
1603
+
1604
+ # Convert HTML document file to PNG image array
1605
+ # 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.
1606
+ # @param input_file Input file to perform the operation on.
1607
+ # @param [Hash] opts the optional parameters
1608
+ # @return [Array<(PdfToPngResult, Fixnum, Hash)>] PdfToPngResult data, response status code and response headers
1609
+ def convert_document_html_to_png_with_http_info(input_file, opts = {})
1610
+ if @api_client.config.debugging
1611
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_html_to_png ...'
1612
+ end
1613
+ # verify the required parameter 'input_file' is set
1614
+ if @api_client.config.client_side_validation && input_file.nil?
1615
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_html_to_png"
1616
+ end
1617
+ # resource path
1618
+ local_var_path = '/convert/html/to/png'
1619
+
1620
+ # query parameters
1621
+ query_params = {}
1622
+
1623
+ # header parameters
1624
+ header_params = {}
1625
+ # HTTP header 'Accept' (if needed)
1626
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
1627
+ # HTTP header 'Content-Type'
1628
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
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 => 'PdfToPngResult')
1644
+ if @api_client.config.debugging
1645
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_html_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1646
+ end
1647
+ return data, status_code, headers
1648
+ end
1649
+ # HTML Document file to Text (txt)
1650
+ # HTML document to text
1651
+ # @param input_file Input file to perform the operation on.
1652
+ # @param [Hash] opts the optional parameters
1653
+ # @return [TextConversionResult]
1654
+ def convert_document_html_to_txt(input_file, opts = {})
1655
+ data, _status_code, _headers = convert_document_html_to_txt_with_http_info(input_file, opts)
1656
+ data
1657
+ end
1658
+
1659
+ # HTML Document file to Text (txt)
1660
+ # HTML document to text
1661
+ # @param input_file Input file to perform the operation on.
1662
+ # @param [Hash] opts the optional parameters
1663
+ # @return [Array<(TextConversionResult, Fixnum, Hash)>] TextConversionResult data, response status code and response headers
1664
+ def convert_document_html_to_txt_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_txt ...'
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_txt"
1671
+ end
1672
+ # resource path
1673
+ local_var_path = '/convert/html/to/txt'
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 => 'TextConversionResult')
1699
+ if @api_client.config.debugging
1700
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_html_to_txt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1701
+ end
1702
+ return data, status_code, headers
1703
+ end
1704
+ # Convert Keynote Presentation (KEY) to JPG/JPEG image array
1705
+ # Converts a Mac Keynote Presentation (KEY) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
1706
+ # @param input_file Input file to perform the operation on.
1707
+ # @param [Hash] opts the optional parameters
1708
+ # @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.
1709
+ # @return [KeynoteToJpgResult]
1710
+ def convert_document_keynote_to_jpg(input_file, opts = {})
1711
+ data, _status_code, _headers = convert_document_keynote_to_jpg_with_http_info(input_file, opts)
1712
+ data
1713
+ end
1714
+
1715
+ # Convert Keynote Presentation (KEY) to JPG/JPEG image array
1716
+ # Converts a Mac Keynote Presentation (KEY) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
1717
+ # @param input_file Input file to perform the operation on.
1718
+ # @param [Hash] opts the optional parameters
1719
+ # @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.
1720
+ # @return [Array<(KeynoteToJpgResult, Fixnum, Hash)>] KeynoteToJpgResult data, response status code and response headers
1721
+ def convert_document_keynote_to_jpg_with_http_info(input_file, opts = {})
1722
+ if @api_client.config.debugging
1723
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_keynote_to_jpg ...'
1724
+ end
1725
+ # verify the required parameter 'input_file' is set
1726
+ if @api_client.config.client_side_validation && input_file.nil?
1727
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_keynote_to_jpg"
1728
+ end
1729
+ # resource path
1730
+ local_var_path = '/convert/key/to/jpg'
1731
+
1732
+ # query parameters
1733
+ query_params = {}
1734
+
1735
+ # header parameters
1736
+ header_params = {}
1737
+ # HTTP header 'Accept' (if needed)
1738
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
1739
+ # HTTP header 'Content-Type'
1740
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1741
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
1742
+
1743
+ # form parameters
1744
+ form_params = {}
1745
+ form_params['inputFile'] = input_file
1746
+
1747
+ # http body (model)
1748
+ post_body = nil
1749
+ auth_names = ['Apikey']
1750
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1751
+ :header_params => header_params,
1752
+ :query_params => query_params,
1753
+ :form_params => form_params,
1754
+ :body => post_body,
1755
+ :auth_names => auth_names,
1756
+ :return_type => 'KeynoteToJpgResult')
1757
+ if @api_client.config.debugging
1758
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_keynote_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1759
+ end
1760
+ return data, status_code, headers
1761
+ end
1762
+ # Convert Keynote Presentation (KEY) to PDF
1763
+ # Convert Mac Keynote Presentation (KEY) to standard PDF
1764
+ # @param input_file Input file to perform the operation on.
1765
+ # @param [Hash] opts the optional parameters
1766
+ # @return [String]
1767
+ def convert_document_keynote_to_pdf(input_file, opts = {})
1768
+ data, _status_code, _headers = convert_document_keynote_to_pdf_with_http_info(input_file, opts)
1769
+ data
1770
+ end
1771
+
1772
+ # Convert Keynote Presentation (KEY) to PDF
1773
+ # Convert Mac Keynote Presentation (KEY) to standard PDF
1774
+ # @param input_file Input file to perform the operation on.
1775
+ # @param [Hash] opts the optional parameters
1776
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
1777
+ def convert_document_keynote_to_pdf_with_http_info(input_file, opts = {})
1778
+ if @api_client.config.debugging
1779
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_keynote_to_pdf ...'
1780
+ end
1781
+ # verify the required parameter 'input_file' is set
1782
+ if @api_client.config.client_side_validation && input_file.nil?
1783
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_keynote_to_pdf"
1784
+ end
1785
+ # resource path
1786
+ local_var_path = '/convert/key/to/pdf'
1787
+
1788
+ # query parameters
1789
+ query_params = {}
1790
+
1791
+ # header parameters
1792
+ header_params = {}
1793
+ # HTTP header 'Accept' (if needed)
1794
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
1795
+ # HTTP header 'Content-Type'
1796
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
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 => 'String')
1812
+ if @api_client.config.debugging
1813
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_keynote_to_pdf\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 PNG image array
1818
+ # Converts a Mac Keynote Presentation (KEY) to an array of PNG images, one for each page.
1819
+ # @param input_file Input file to perform the operation on.
1820
+ # @param [Hash] opts the optional parameters
1821
+ # @return [KeynoteToPngResult]
1822
+ def convert_document_keynote_to_png(input_file, opts = {})
1823
+ data, _status_code, _headers = convert_document_keynote_to_png_with_http_info(input_file, opts)
1824
+ data
1825
+ end
1826
+
1827
+ # Convert Keynote Presentation (KEY) to PNG image array
1828
+ # Converts a Mac Keynote Presentation (KEY) to an array of PNG images, one for each page.
1829
+ # @param input_file Input file to perform the operation on.
1830
+ # @param [Hash] opts the optional parameters
1831
+ # @return [Array<(KeynoteToPngResult, Fixnum, Hash)>] KeynoteToPngResult data, response status code and response headers
1832
+ def convert_document_keynote_to_png_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_png ...'
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_png"
1839
+ end
1840
+ # resource path
1841
+ local_var_path = '/convert/key/to/png'
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/json', 'text/json', 'application/xml', 'text/xml'])
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 => 'KeynoteToPngResult')
1867
+ if @api_client.config.debugging
1868
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_keynote_to_png\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 PPTX
1873
+ # Convert Mac Keynote Presentation (KEY) to PowerPoint Presentation (PPTX)
1874
+ # @param input_file Input file to perform the operation on.
1875
+ # @param [Hash] opts the optional parameters
1876
+ # @return [String]
1877
+ def convert_document_keynote_to_pptx(input_file, opts = {})
1878
+ data, _status_code, _headers = convert_document_keynote_to_pptx_with_http_info(input_file, opts)
1879
+ data
1880
+ end
1881
+
1882
+ # Convert Keynote Presentation (KEY) to PPTX
1883
+ # Convert Mac Keynote Presentation (KEY) to PowerPoint Presentation (PPTX)
1884
+ # @param input_file Input file to perform the operation on.
1885
+ # @param [Hash] opts the optional parameters
1886
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
1887
+ def convert_document_keynote_to_pptx_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_pptx ...'
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_pptx"
1894
+ end
1895
+ # resource path
1896
+ local_var_path = '/convert/key/to/pptx'
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/octet-stream'])
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 => 'String')
1922
+ if @api_client.config.debugging
1923
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_keynote_to_pptx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1924
+ end
1925
+ return data, status_code, headers
1926
+ end
1927
+ # Convert Email MSG file to HTML string
1928
+ # 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.
1929
+ # @param input_file Input file to perform the operation on.
1930
+ # @param [Hash] opts the optional parameters
1931
+ # @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.
1932
+ # @option opts [BOOLEAN] :include_attachments Optional; If false, the response object will not include any attachment files from the input file. Default is true.
1933
+ # @return [MsgToHtmlResult]
1934
+ def convert_document_msg_to_html(input_file, opts = {})
1935
+ data, _status_code, _headers = convert_document_msg_to_html_with_http_info(input_file, opts)
1936
+ data
1937
+ end
1938
+
1939
+ # Convert Email MSG file to HTML string
1940
+ # 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.
1941
+ # @param input_file Input file to perform the operation on.
1942
+ # @param [Hash] opts the optional parameters
1943
+ # @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.
1944
+ # @option opts [BOOLEAN] :include_attachments Optional; If false, the response object will not include any attachment files from the input file. Default is true.
1945
+ # @return [Array<(MsgToHtmlResult, Fixnum, Hash)>] MsgToHtmlResult data, response status code and response headers
1946
+ def convert_document_msg_to_html_with_http_info(input_file, opts = {})
1947
+ if @api_client.config.debugging
1948
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_msg_to_html ...'
1949
+ end
1950
+ # verify the required parameter 'input_file' is set
1951
+ if @api_client.config.client_side_validation && input_file.nil?
1952
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_msg_to_html"
1953
+ end
1954
+ # resource path
1955
+ local_var_path = '/convert/msg/to/html'
1956
+
1957
+ # query parameters
1958
+ query_params = {}
1959
+
1960
+ # header parameters
1961
+ header_params = {}
1962
+ # HTTP header 'Accept' (if needed)
1963
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
1964
+ # HTTP header 'Content-Type'
1965
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1966
+ header_params[:'bodyOnly'] = opts[:'body_only'] if !opts[:'body_only'].nil?
1967
+ header_params[:'includeAttachments'] = opts[:'include_attachments'] if !opts[:'include_attachments'].nil?
1968
+
1969
+ # form parameters
1970
+ form_params = {}
1971
+ form_params['inputFile'] = input_file
1972
+
1973
+ # http body (model)
1974
+ post_body = nil
1975
+ auth_names = ['Apikey']
1976
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1977
+ :header_params => header_params,
1978
+ :query_params => query_params,
1979
+ :form_params => form_params,
1980
+ :body => post_body,
1981
+ :auth_names => auth_names,
1982
+ :return_type => 'MsgToHtmlResult')
1983
+ if @api_client.config.debugging
1984
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_msg_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1985
+ end
1986
+ return data, status_code, headers
1987
+ end
1988
+ # Convert Email MSG file to JPG/JPEG image array
1989
+ # Converts an Outlook Message File (MSG) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
1990
+ # @param input_file Input file to perform the operation on.
1991
+ # @param [Hash] opts the optional parameters
1992
+ # @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.
1993
+ # @return [MsgToJpgResult]
1994
+ def convert_document_msg_to_jpg(input_file, opts = {})
1995
+ data, _status_code, _headers = convert_document_msg_to_jpg_with_http_info(input_file, opts)
1996
+ data
1997
+ end
1998
+
1999
+ # Convert Email MSG file to JPG/JPEG image array
2000
+ # Converts an Outlook Message File (MSG) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
2001
+ # @param input_file Input file to perform the operation on.
2002
+ # @param [Hash] opts the optional parameters
2003
+ # @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.
2004
+ # @return [Array<(MsgToJpgResult, Fixnum, Hash)>] MsgToJpgResult data, response status code and response headers
2005
+ def convert_document_msg_to_jpg_with_http_info(input_file, opts = {})
2006
+ if @api_client.config.debugging
2007
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_msg_to_jpg ...'
2008
+ end
2009
+ # verify the required parameter 'input_file' is set
2010
+ if @api_client.config.client_side_validation && input_file.nil?
2011
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_msg_to_jpg"
2012
+ end
2013
+ # resource path
2014
+ local_var_path = '/convert/msg/to/jpg'
2015
+
2016
+ # query parameters
2017
+ query_params = {}
2018
+
2019
+ # header parameters
2020
+ header_params = {}
2021
+ # HTTP header 'Accept' (if needed)
2022
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
2023
+ # HTTP header 'Content-Type'
2024
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2025
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
2026
+
2027
+ # form parameters
2028
+ form_params = {}
2029
+ form_params['inputFile'] = input_file
2030
+
2031
+ # http body (model)
2032
+ post_body = nil
2033
+ auth_names = ['Apikey']
2034
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2035
+ :header_params => header_params,
2036
+ :query_params => query_params,
2037
+ :form_params => form_params,
2038
+ :body => post_body,
2039
+ :auth_names => auth_names,
2040
+ :return_type => 'MsgToJpgResult')
2041
+ if @api_client.config.debugging
2042
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_msg_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2043
+ end
2044
+ return data, status_code, headers
2045
+ end
2046
+ # Convert Email MSG file to PDF document
2047
+ # 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.
2048
+ # @param input_file Input file to perform the operation on.
2049
+ # @param [Hash] opts the optional parameters
2050
+ # @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.
2051
+ # @return [String]
2052
+ def convert_document_msg_to_pdf(input_file, opts = {})
2053
+ data, _status_code, _headers = convert_document_msg_to_pdf_with_http_info(input_file, opts)
2054
+ data
2055
+ end
2056
+
2057
+ # Convert Email MSG file to PDF document
2058
+ # 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.
2059
+ # @param input_file Input file to perform the operation on.
2060
+ # @param [Hash] opts the optional parameters
2061
+ # @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.
2062
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2063
+ def convert_document_msg_to_pdf_with_http_info(input_file, opts = {})
2064
+ if @api_client.config.debugging
2065
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_msg_to_pdf ...'
2066
+ end
2067
+ # verify the required parameter 'input_file' is set
2068
+ if @api_client.config.client_side_validation && input_file.nil?
2069
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_msg_to_pdf"
2070
+ end
2071
+ # resource path
2072
+ local_var_path = '/convert/msg/to/pdf'
2073
+
2074
+ # query parameters
2075
+ query_params = {}
2076
+
2077
+ # header parameters
2078
+ header_params = {}
2079
+ # HTTP header 'Accept' (if needed)
2080
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
2081
+ # HTTP header 'Content-Type'
2082
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2083
+ header_params[:'bodyOnly'] = opts[:'body_only'] if !opts[:'body_only'].nil?
2084
+
2085
+ # form parameters
2086
+ form_params = {}
2087
+ form_params['inputFile'] = input_file
2088
+
2089
+ # http body (model)
2090
+ post_body = nil
2091
+ auth_names = ['Apikey']
2092
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2093
+ :header_params => header_params,
2094
+ :query_params => query_params,
2095
+ :form_params => form_params,
2096
+ :body => post_body,
2097
+ :auth_names => auth_names,
2098
+ :return_type => 'String')
2099
+ if @api_client.config.debugging
2100
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_msg_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2101
+ end
2102
+ return data, status_code, headers
2103
+ end
2104
+ # Convert Email MSG file to PNG image array
2105
+ # Converts an Outlook Email Message File (MSG) to an array of PNG images, one for each page.
2106
+ # @param input_file Input file to perform the operation on.
2107
+ # @param [Hash] opts the optional parameters
2108
+ # @return [MsgToPngResult]
2109
+ def convert_document_msg_to_png(input_file, opts = {})
2110
+ data, _status_code, _headers = convert_document_msg_to_png_with_http_info(input_file, opts)
2111
+ data
2112
+ end
2113
+
2114
+ # Convert Email MSG file to PNG image array
2115
+ # Converts an Outlook Email Message File (MSG) to an array of PNG images, one for each page.
2116
+ # @param input_file Input file to perform the operation on.
2117
+ # @param [Hash] opts the optional parameters
2118
+ # @return [Array<(MsgToPngResult, Fixnum, Hash)>] MsgToPngResult data, response status code and response headers
2119
+ def convert_document_msg_to_png_with_http_info(input_file, opts = {})
2120
+ if @api_client.config.debugging
2121
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_msg_to_png ...'
2122
+ end
2123
+ # verify the required parameter 'input_file' is set
2124
+ if @api_client.config.client_side_validation && input_file.nil?
2125
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_msg_to_png"
2126
+ end
2127
+ # resource path
2128
+ local_var_path = '/convert/msg/to/png'
2129
+
2130
+ # query parameters
2131
+ query_params = {}
2132
+
2133
+ # header parameters
2134
+ header_params = {}
2135
+ # HTTP header 'Accept' (if needed)
2136
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
2137
+ # HTTP header 'Content-Type'
2138
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
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 => 'MsgToPngResult')
2154
+ if @api_client.config.debugging
2155
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_msg_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2156
+ end
2157
+ return data, status_code, headers
2158
+ end
2159
+ # Convert ODP Presentation to JPG/JPEG image array
2160
+ # Converts an Open Document Presentation (ODP) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
2161
+ # @param input_file Input file to perform the operation on.
2162
+ # @param [Hash] opts the optional parameters
2163
+ # @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.
2164
+ # @return [OdpToJpgResult]
2165
+ def convert_document_odp_to_jpg(input_file, opts = {})
2166
+ data, _status_code, _headers = convert_document_odp_to_jpg_with_http_info(input_file, opts)
2167
+ data
2168
+ end
2169
+
2170
+ # Convert ODP Presentation to JPG/JPEG image array
2171
+ # Converts an Open Document Presentation (ODP) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
2172
+ # @param input_file Input file to perform the operation on.
2173
+ # @param [Hash] opts the optional parameters
2174
+ # @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.
2175
+ # @return [Array<(OdpToJpgResult, Fixnum, Hash)>] OdpToJpgResult data, response status code and response headers
2176
+ def convert_document_odp_to_jpg_with_http_info(input_file, opts = {})
2177
+ if @api_client.config.debugging
2178
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_odp_to_jpg ...'
2179
+ end
2180
+ # verify the required parameter 'input_file' is set
2181
+ if @api_client.config.client_side_validation && input_file.nil?
2182
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_odp_to_jpg"
2183
+ end
2184
+ # resource path
2185
+ local_var_path = '/convert/odp/to/jpg'
2186
+
2187
+ # query parameters
2188
+ query_params = {}
2189
+
2190
+ # header parameters
2191
+ header_params = {}
2192
+ # HTTP header 'Accept' (if needed)
2193
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
2194
+ # HTTP header 'Content-Type'
2195
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2196
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
2197
+
2198
+ # form parameters
2199
+ form_params = {}
2200
+ form_params['inputFile'] = input_file
2201
+
2202
+ # http body (model)
2203
+ post_body = nil
2204
+ auth_names = ['Apikey']
2205
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2206
+ :header_params => header_params,
2207
+ :query_params => query_params,
2208
+ :form_params => form_params,
2209
+ :body => post_body,
2210
+ :auth_names => auth_names,
2211
+ :return_type => 'OdpToJpgResult')
2212
+ if @api_client.config.debugging
2213
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_odp_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2214
+ end
2215
+ return data, status_code, headers
2216
+ end
2217
+ # Convert ODP Presentation to PDF
2218
+ # Convert Office Open Document Presentation (ODP) to standard PDF
2219
+ # @param input_file Input file to perform the operation on.
2220
+ # @param [Hash] opts the optional parameters
2221
+ # @return [String]
2222
+ def convert_document_odp_to_pdf(input_file, opts = {})
2223
+ data, _status_code, _headers = convert_document_odp_to_pdf_with_http_info(input_file, opts)
2224
+ data
2225
+ end
2226
+
2227
+ # Convert ODP Presentation to PDF
2228
+ # Convert Office Open Document Presentation (ODP) to standard PDF
2229
+ # @param input_file Input file to perform the operation on.
2230
+ # @param [Hash] opts the optional parameters
2231
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2232
+ def convert_document_odp_to_pdf_with_http_info(input_file, opts = {})
2233
+ if @api_client.config.debugging
2234
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_odp_to_pdf ...'
2235
+ end
2236
+ # verify the required parameter 'input_file' is set
2237
+ if @api_client.config.client_side_validation && input_file.nil?
2238
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_odp_to_pdf"
2239
+ end
2240
+ # resource path
2241
+ local_var_path = '/convert/odp/to/pdf'
2242
+
2243
+ # query parameters
2244
+ query_params = {}
2245
+
2246
+ # header parameters
2247
+ header_params = {}
2248
+ # HTTP header 'Accept' (if needed)
2249
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
2250
+ # HTTP header 'Content-Type'
2251
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
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 => 'String')
2267
+ if @api_client.config.debugging
2268
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_odp_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2269
+ end
2270
+ return data, status_code, headers
2271
+ end
2272
+ # Convert ODP Presentation to PNG image array
2273
+ # Converts an Office Open Document Presentation (ODP) to an array of PNG images, one for each page.
2274
+ # @param input_file Input file to perform the operation on.
2275
+ # @param [Hash] opts the optional parameters
2276
+ # @return [OdpToPngResult]
2277
+ def convert_document_odp_to_png(input_file, opts = {})
2278
+ data, _status_code, _headers = convert_document_odp_to_png_with_http_info(input_file, opts)
2279
+ data
2280
+ end
2281
+
2282
+ # Convert ODP Presentation to PNG image array
2283
+ # Converts an Office Open Document Presentation (ODP) to an array of PNG images, one for each page.
2284
+ # @param input_file Input file to perform the operation on.
2285
+ # @param [Hash] opts the optional parameters
2286
+ # @return [Array<(OdpToPngResult, Fixnum, Hash)>] OdpToPngResult data, response status code and response headers
2287
+ def convert_document_odp_to_png_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_png ...'
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_png"
2294
+ end
2295
+ # resource path
2296
+ local_var_path = '/convert/odp/to/png'
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/json', 'text/json', 'application/xml', 'text/xml'])
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 => 'OdpToPngResult')
2322
+ if @api_client.config.debugging
2323
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_odp_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2324
+ end
2325
+ return data, status_code, headers
2326
+ end
2327
+ # Convert ODP Presentation to PPTX
2328
+ # Convert Office Open Document Presentation (ODP) to PowerPoint Presentation (PPTX)
2329
+ # @param input_file Input file to perform the operation on.
2330
+ # @param [Hash] opts the optional parameters
2331
+ # @return [String]
2332
+ def convert_document_odp_to_pptx(input_file, opts = {})
2333
+ data, _status_code, _headers = convert_document_odp_to_pptx_with_http_info(input_file, opts)
2334
+ data
2335
+ end
2336
+
2337
+ # Convert ODP Presentation to PPTX
2338
+ # Convert Office Open Document Presentation (ODP) to PowerPoint Presentation (PPTX)
2339
+ # @param input_file Input file to perform the operation on.
2340
+ # @param [Hash] opts the optional parameters
2341
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2342
+ def convert_document_odp_to_pptx_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_pptx ...'
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_pptx"
2349
+ end
2350
+ # resource path
2351
+ local_var_path = '/convert/odp/to/pptx'
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/octet-stream'])
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 => 'String')
2377
+ if @api_client.config.debugging
2378
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_odp_to_pptx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2379
+ end
2380
+ return data, status_code, headers
2381
+ end
2382
+ # Convert ODS Spreadsheet to JPG/JPEG image array
2383
+ # Converts an Open Document Spreadsheet (ODS) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
2384
+ # @param input_file Input file to perform the operation on.
2385
+ # @param [Hash] opts the optional parameters
2386
+ # @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.
2387
+ # @return [OdsToJpgResult]
2388
+ def convert_document_ods_to_jpg(input_file, opts = {})
2389
+ data, _status_code, _headers = convert_document_ods_to_jpg_with_http_info(input_file, opts)
2390
+ data
2391
+ end
2392
+
2393
+ # Convert ODS Spreadsheet to JPG/JPEG image array
2394
+ # Converts an Open Document Spreadsheet (ODS) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
2395
+ # @param input_file Input file to perform the operation on.
2396
+ # @param [Hash] opts the optional parameters
2397
+ # @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.
2398
+ # @return [Array<(OdsToJpgResult, Fixnum, Hash)>] OdsToJpgResult data, response status code and response headers
2399
+ def convert_document_ods_to_jpg_with_http_info(input_file, opts = {})
2400
+ if @api_client.config.debugging
2401
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_ods_to_jpg ...'
2402
+ end
2403
+ # verify the required parameter 'input_file' is set
2404
+ if @api_client.config.client_side_validation && input_file.nil?
2405
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_ods_to_jpg"
2406
+ end
2407
+ # resource path
2408
+ local_var_path = '/convert/ods/to/jpg'
2409
+
2410
+ # query parameters
2411
+ query_params = {}
2412
+
2413
+ # header parameters
2414
+ header_params = {}
2415
+ # HTTP header 'Accept' (if needed)
2416
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
2417
+ # HTTP header 'Content-Type'
2418
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2419
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
2420
+
2421
+ # form parameters
2422
+ form_params = {}
2423
+ form_params['inputFile'] = input_file
2424
+
2425
+ # http body (model)
2426
+ post_body = nil
2427
+ auth_names = ['Apikey']
2428
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2429
+ :header_params => header_params,
2430
+ :query_params => query_params,
2431
+ :form_params => form_params,
2432
+ :body => post_body,
2433
+ :auth_names => auth_names,
2434
+ :return_type => 'OdsToJpgResult')
2435
+ if @api_client.config.debugging
2436
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_ods_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2437
+ end
2438
+ return data, status_code, headers
2439
+ end
2440
+ # Convert ODS Spreadsheet to PDF
2441
+ # Convert Office Open Document Spreadsheet (ODS) to standard PDF
2442
+ # @param input_file Input file to perform the operation on.
2443
+ # @param [Hash] opts the optional parameters
2444
+ # @return [String]
2445
+ def convert_document_ods_to_pdf(input_file, opts = {})
2446
+ data, _status_code, _headers = convert_document_ods_to_pdf_with_http_info(input_file, opts)
2447
+ data
2448
+ end
2449
+
2450
+ # Convert ODS Spreadsheet to PDF
2451
+ # Convert Office Open Document Spreadsheet (ODS) to standard PDF
2452
+ # @param input_file Input file to perform the operation on.
2453
+ # @param [Hash] opts the optional parameters
2454
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2455
+ def convert_document_ods_to_pdf_with_http_info(input_file, opts = {})
2456
+ if @api_client.config.debugging
2457
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_ods_to_pdf ...'
2458
+ end
2459
+ # verify the required parameter 'input_file' is set
2460
+ if @api_client.config.client_side_validation && input_file.nil?
2461
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_ods_to_pdf"
2462
+ end
2463
+ # resource path
2464
+ local_var_path = '/convert/ods/to/pdf'
2465
+
2466
+ # query parameters
2467
+ query_params = {}
2468
+
2469
+ # header parameters
2470
+ header_params = {}
2471
+ # HTTP header 'Accept' (if needed)
2472
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
2473
+ # HTTP header 'Content-Type'
2474
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
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 => 'String')
2490
+ if @api_client.config.debugging
2491
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_ods_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2492
+ end
2493
+ return data, status_code, headers
2494
+ end
2495
+ # Convert ODS Spreadsheet to PNG image array
2496
+ # Converts an Office Open Document Spreadsheet (ODS) to an array of PNG images, one for each page.
2497
+ # @param input_file Input file to perform the operation on.
2498
+ # @param [Hash] opts the optional parameters
2499
+ # @return [OdsToPngResult]
2500
+ def convert_document_ods_to_png(input_file, opts = {})
2501
+ data, _status_code, _headers = convert_document_ods_to_png_with_http_info(input_file, opts)
2502
+ data
2503
+ end
2504
+
2505
+ # Convert ODS Spreadsheet to PNG image array
2506
+ # Converts an Office Open Document Spreadsheet (ODS) to an array of PNG images, one for each page.
2507
+ # @param input_file Input file to perform the operation on.
2508
+ # @param [Hash] opts the optional parameters
2509
+ # @return [Array<(OdsToPngResult, Fixnum, Hash)>] OdsToPngResult data, response status code and response headers
2510
+ def convert_document_ods_to_png_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_png ...'
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_png"
2517
+ end
2518
+ # resource path
2519
+ local_var_path = '/convert/ods/to/png'
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/json', 'text/json', 'application/xml', 'text/xml'])
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 => 'OdsToPngResult')
2545
+ if @api_client.config.debugging
2546
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_ods_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2547
+ end
2548
+ return data, status_code, headers
2549
+ end
2550
+ # Convert ODS Spreadsheet to XLSX
2551
+ # Convert Office Open Document Spreadsheet (ODS) to Excel Spreadsheet (XLSX)
2552
+ # @param input_file Input file to perform the operation on.
2553
+ # @param [Hash] opts the optional parameters
2554
+ # @return [String]
2555
+ def convert_document_ods_to_xlsx(input_file, opts = {})
2556
+ data, _status_code, _headers = convert_document_ods_to_xlsx_with_http_info(input_file, opts)
2557
+ data
2558
+ end
2559
+
2560
+ # Convert ODS Spreadsheet to XLSX
2561
+ # Convert Office Open Document Spreadsheet (ODS) to Excel Spreadsheet (XLSX)
2562
+ # @param input_file Input file to perform the operation on.
2563
+ # @param [Hash] opts the optional parameters
2564
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2565
+ def convert_document_ods_to_xlsx_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_xlsx ...'
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_xlsx"
2572
+ end
2573
+ # resource path
2574
+ local_var_path = '/convert/ods/to/xlsx'
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/octet-stream'])
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 => 'String')
2600
+ if @api_client.config.debugging
2601
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_ods_to_xlsx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2602
+ end
2603
+ return data, status_code, headers
2604
+ end
2605
+ # Convert ODT Text File to Word DOCX
2606
+ # Convert Office Open Document Text File (ODT) to Word DOCX Document
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_odt_to_docx(input_file, opts = {})
2611
+ data, _status_code, _headers = convert_document_odt_to_docx_with_http_info(input_file, opts)
2612
+ data
2613
+ end
2614
+
2615
+ # Convert ODT Text File to Word DOCX
2616
+ # Convert Office Open Document Text File (ODT) to Word DOCX Document
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_odt_to_docx_with_http_info(input_file, opts = {})
2621
+ if @api_client.config.debugging
2622
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_odt_to_docx ...'
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_odt_to_docx"
2627
+ end
2628
+ # resource path
2629
+ local_var_path = '/convert/odt/to/docx'
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_odt_to_docx\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 JPG/JPEG image array
2661
+ # Converts an Open Document Text File (ODT) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
2662
+ # @param input_file Input file to perform the operation on.
2663
+ # @param [Hash] opts the optional parameters
2664
+ # @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.
2665
+ # @return [OdtToJpgResult]
2666
+ def convert_document_odt_to_jpg(input_file, opts = {})
2667
+ data, _status_code, _headers = convert_document_odt_to_jpg_with_http_info(input_file, opts)
2668
+ data
2669
+ end
2670
+
2671
+ # Convert ODT Text File to JPG/JPEG image array
2672
+ # Converts an Open Document Text File (ODT) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
2673
+ # @param input_file Input file to perform the operation on.
2674
+ # @param [Hash] opts the optional parameters
2675
+ # @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.
2676
+ # @return [Array<(OdtToJpgResult, Fixnum, Hash)>] OdtToJpgResult data, response status code and response headers
2677
+ def convert_document_odt_to_jpg_with_http_info(input_file, opts = {})
2678
+ if @api_client.config.debugging
2679
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_odt_to_jpg ...'
2680
+ end
2681
+ # verify the required parameter 'input_file' is set
2682
+ if @api_client.config.client_side_validation && input_file.nil?
2683
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_odt_to_jpg"
2684
+ end
2685
+ # resource path
2686
+ local_var_path = '/convert/odt/to/jpg'
2687
+
2688
+ # query parameters
2689
+ query_params = {}
2690
+
2691
+ # header parameters
2692
+ header_params = {}
2693
+ # HTTP header 'Accept' (if needed)
2694
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
2695
+ # HTTP header 'Content-Type'
2696
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2697
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
2698
+
2699
+ # form parameters
2700
+ form_params = {}
2701
+ form_params['inputFile'] = input_file
2702
+
2703
+ # http body (model)
2704
+ post_body = nil
2705
+ auth_names = ['Apikey']
2706
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2707
+ :header_params => header_params,
2708
+ :query_params => query_params,
2709
+ :form_params => form_params,
2710
+ :body => post_body,
2711
+ :auth_names => auth_names,
2712
+ :return_type => 'OdtToJpgResult')
2713
+ if @api_client.config.debugging
2714
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_odt_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2715
+ end
2716
+ return data, status_code, headers
2717
+ end
2718
+ # Convert ODT Text File to PDF
2719
+ # Convert Office Open Document Text File (ODT) to standard PDF
2720
+ # @param input_file Input file to perform the operation on.
2721
+ # @param [Hash] opts the optional parameters
2722
+ # @return [String]
2723
+ def convert_document_odt_to_pdf(input_file, opts = {})
2724
+ data, _status_code, _headers = convert_document_odt_to_pdf_with_http_info(input_file, opts)
2725
+ data
2726
+ end
2727
+
2728
+ # Convert ODT Text File to PDF
2729
+ # Convert Office Open Document Text File (ODT) to standard PDF
2730
+ # @param input_file Input file to perform the operation on.
2731
+ # @param [Hash] opts the optional parameters
2732
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2733
+ def convert_document_odt_to_pdf_with_http_info(input_file, opts = {})
2734
+ if @api_client.config.debugging
2735
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_odt_to_pdf ...'
2736
+ end
2737
+ # verify the required parameter 'input_file' is set
2738
+ if @api_client.config.client_side_validation && input_file.nil?
2739
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_odt_to_pdf"
2740
+ end
2741
+ # resource path
2742
+ local_var_path = '/convert/odt/to/pdf'
2743
+
2744
+ # query parameters
2745
+ query_params = {}
2746
+
2747
+ # header parameters
2748
+ header_params = {}
2749
+ # HTTP header 'Accept' (if needed)
2750
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
2751
+ # HTTP header 'Content-Type'
2752
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
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 => 'String')
2768
+ if @api_client.config.debugging
2769
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_odt_to_pdf\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 PNG image array
2774
+ # Converts an Office Open Document Text File (ODT) to an array of PNG images, one for each page.
2775
+ # @param input_file Input file to perform the operation on.
2776
+ # @param [Hash] opts the optional parameters
2777
+ # @return [OdtToPngResult]
2778
+ def convert_document_odt_to_png(input_file, opts = {})
2779
+ data, _status_code, _headers = convert_document_odt_to_png_with_http_info(input_file, opts)
2780
+ data
2781
+ end
2782
+
2783
+ # Convert ODT Text File to PNG image array
2784
+ # Converts an Office Open Document Text File (ODT) to an array of PNG images, one for each page.
2785
+ # @param input_file Input file to perform the operation on.
2786
+ # @param [Hash] opts the optional parameters
2787
+ # @return [Array<(OdtToPngResult, Fixnum, Hash)>] OdtToPngResult data, response status code and response headers
2788
+ def convert_document_odt_to_png_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_png ...'
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_png"
2795
+ end
2796
+ # resource path
2797
+ local_var_path = '/convert/odt/to/png'
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/json', 'text/json', 'application/xml', 'text/xml'])
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 => 'OdtToPngResult')
2823
+ if @api_client.config.debugging
2824
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_odt_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2825
+ end
2826
+ return data, status_code, headers
2827
+ end
2828
+ # Convert PDF to Word DOCX Document
2829
+ # 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.
2830
+ # @param input_file Input file to perform the operation on.
2831
+ # @param [Hash] opts the optional parameters
2832
+ # @return [String]
2833
+ def convert_document_pdf_to_docx(input_file, opts = {})
2834
+ data, _status_code, _headers = convert_document_pdf_to_docx_with_http_info(input_file, opts)
2835
+ data
2836
+ end
2837
+
2838
+ # Convert PDF to Word DOCX Document
2839
+ # 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.
2840
+ # @param input_file Input file to perform the operation on.
2841
+ # @param [Hash] opts the optional parameters
2842
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2843
+ def convert_document_pdf_to_docx_with_http_info(input_file, opts = {})
2844
+ if @api_client.config.debugging
2845
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_pdf_to_docx ...'
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_pdf_to_docx"
2850
+ end
2851
+ # resource path
2852
+ local_var_path = '/convert/pdf/to/docx'
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/octet-stream'])
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 => 'String')
2878
+ if @api_client.config.debugging
2879
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pdf_to_docx\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 based on rasterized version of the PDF
2884
+ # Convert standard PDF to Office Word Documents (docx), but first rasterize the PDF. Converts a PDF at high fidelity into Word format.
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_rasterize(input_file, opts = {})
2889
+ data, _status_code, _headers = convert_document_pdf_to_docx_rasterize_with_http_info(input_file, opts)
2890
+ data
2891
+ end
2892
+
2893
+ # Convert PDF to Word DOCX Document based on rasterized version of the PDF
2894
+ # Convert standard PDF to Office Word Documents (docx), but first rasterize the PDF. Converts a PDF at high fidelity into Word format.
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_rasterize_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_rasterize ...'
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_rasterize"
2905
+ end
2906
+ # resource path
2907
+ local_var_path = '/convert/pdf/to/docx/rasterize'
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_rasterize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2935
+ end
2936
+ return data, status_code, headers
2937
+ end
2938
+ # Convert PDF to JPG/JPEG image array
2939
+ # Converts a PDF Document to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
2940
+ # @param input_file Input file to perform the operation on.
2941
+ # @param [Hash] opts the optional parameters
2942
+ # @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.
2943
+ # @return [PdfToJpgResult]
2944
+ def convert_document_pdf_to_jpg(input_file, opts = {})
2945
+ data, _status_code, _headers = convert_document_pdf_to_jpg_with_http_info(input_file, opts)
2946
+ data
2947
+ end
2948
+
2949
+ # Convert PDF to JPG/JPEG image array
2950
+ # Converts a PDF Document to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
2951
+ # @param input_file Input file to perform the operation on.
2952
+ # @param [Hash] opts the optional parameters
2953
+ # @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.
2954
+ # @return [Array<(PdfToJpgResult, Fixnum, Hash)>] PdfToJpgResult data, response status code and response headers
2955
+ def convert_document_pdf_to_jpg_with_http_info(input_file, opts = {})
2956
+ if @api_client.config.debugging
2957
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_pdf_to_jpg ...'
2958
+ end
2959
+ # verify the required parameter 'input_file' is set
2960
+ if @api_client.config.client_side_validation && input_file.nil?
2961
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_pdf_to_jpg"
2962
+ end
2963
+ # resource path
2964
+ local_var_path = '/convert/pdf/to/jpg'
2965
+
2966
+ # query parameters
2967
+ query_params = {}
2968
+
2969
+ # header parameters
2970
+ header_params = {}
2971
+ # HTTP header 'Accept' (if needed)
2972
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
2973
+ # HTTP header 'Content-Type'
2974
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2975
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
2976
+
2977
+ # form parameters
2978
+ form_params = {}
2979
+ form_params['inputFile'] = input_file
2980
+
2981
+ # http body (model)
2982
+ post_body = nil
2983
+ auth_names = ['Apikey']
2984
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2985
+ :header_params => header_params,
2986
+ :query_params => query_params,
2987
+ :form_params => form_params,
2988
+ :body => post_body,
2989
+ :auth_names => auth_names,
2990
+ :return_type => 'PdfToJpgResult')
2991
+ if @api_client.config.debugging
2992
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pdf_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2993
+ end
2994
+ return data, status_code, headers
2995
+ end
2996
+ # Convert PDF to PNG Image Array
2997
+ # Convert PDF document to PNG array, one image per page.
2998
+ # @param input_file Input file to perform the operation on.
2999
+ # @param [Hash] opts the optional parameters
3000
+ # @return [PdfToPngResult]
3001
+ def convert_document_pdf_to_png_array(input_file, opts = {})
3002
+ data, _status_code, _headers = convert_document_pdf_to_png_array_with_http_info(input_file, opts)
3003
+ data
3004
+ end
3005
+
3006
+ # Convert PDF to PNG Image Array
3007
+ # Convert PDF document to PNG array, one image per page.
3008
+ # @param input_file Input file to perform the operation on.
3009
+ # @param [Hash] opts the optional parameters
3010
+ # @return [Array<(PdfToPngResult, Fixnum, Hash)>] PdfToPngResult data, response status code and response headers
3011
+ def convert_document_pdf_to_png_array_with_http_info(input_file, opts = {})
3012
+ if @api_client.config.debugging
3013
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_pdf_to_png_array ...'
3014
+ end
3015
+ # verify the required parameter 'input_file' is set
3016
+ if @api_client.config.client_side_validation && input_file.nil?
3017
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_pdf_to_png_array"
3018
+ end
3019
+ # resource path
3020
+ local_var_path = '/convert/pdf/to/png'
3021
+
3022
+ # query parameters
3023
+ query_params = {}
3024
+
3025
+ # header parameters
3026
+ header_params = {}
3027
+ # HTTP header 'Accept' (if needed)
3028
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
3029
+ # HTTP header 'Content-Type'
3030
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
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 => 'PdfToPngResult')
3046
+ if @api_client.config.debugging
3047
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pdf_to_png_array\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3048
+ end
3049
+ return data, status_code, headers
3050
+ end
3051
+ # Convert PDF to Single PNG image
3052
+ # Convert PDF document to a single tall PNG image, by stacking/concatenating the images vertically into a single \"tall\" image
3053
+ # @param input_file Input file to perform the operation on.
3054
+ # @param [Hash] opts the optional parameters
3055
+ # @return [String]
3056
+ def convert_document_pdf_to_png_single(input_file, opts = {})
3057
+ data, _status_code, _headers = convert_document_pdf_to_png_single_with_http_info(input_file, opts)
3058
+ data
3059
+ end
3060
+
3061
+ # Convert PDF to Single PNG image
3062
+ # Convert PDF document to a single tall PNG image, by stacking/concatenating the images vertically into a single \&quot;tall\&quot; image
3063
+ # @param input_file Input file to perform the operation on.
3064
+ # @param [Hash] opts the optional parameters
3065
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3066
+ def convert_document_pdf_to_png_single_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_single ...'
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_single"
3073
+ end
3074
+ # resource path
3075
+ local_var_path = '/convert/pdf/to/png/merge-single'
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/octet-stream'])
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 => 'String')
3101
+ if @api_client.config.debugging
3102
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pdf_to_png_single\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3103
+ end
3104
+ return data, status_code, headers
3105
+ end
3106
+ # Convert PDF to PowerPoint PPTX Presentation
3107
+ # 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.
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_pptx(input_file, opts = {})
3112
+ data, _status_code, _headers = convert_document_pdf_to_pptx_with_http_info(input_file, opts)
3113
+ data
3114
+ end
3115
+
3116
+ # Convert PDF to PowerPoint PPTX Presentation
3117
+ # 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.
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_pptx_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_pptx ...'
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_pptx"
3128
+ end
3129
+ # resource path
3130
+ local_var_path = '/convert/pdf/to/pptx'
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_pptx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3158
+ end
3159
+ return data, status_code, headers
3160
+ end
3161
+ # Convert PDF Document to Text (txt)
3162
+ # PDF document to text
3163
+ # @param input_file Input file to perform the operation on.
3164
+ # @param [Hash] opts the optional parameters
3165
+ # @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;.
3166
+ # @return [TextConversionResult]
3167
+ def convert_document_pdf_to_txt(input_file, opts = {})
3168
+ data, _status_code, _headers = convert_document_pdf_to_txt_with_http_info(input_file, opts)
3169
+ data
3170
+ end
3171
+
3172
+ # Convert PDF Document to Text (txt)
3173
+ # PDF document to text
3174
+ # @param input_file Input file to perform the operation on.
3175
+ # @param [Hash] opts the optional parameters
3176
+ # @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;.
3177
+ # @return [Array<(TextConversionResult, Fixnum, Hash)>] TextConversionResult data, response status code and response headers
3178
+ def convert_document_pdf_to_txt_with_http_info(input_file, opts = {})
3179
+ if @api_client.config.debugging
3180
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_pdf_to_txt ...'
3181
+ end
3182
+ # verify the required parameter 'input_file' is set
3183
+ if @api_client.config.client_side_validation && input_file.nil?
3184
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_pdf_to_txt"
3185
+ end
3186
+ # resource path
3187
+ local_var_path = '/convert/pdf/to/txt'
3188
+
3189
+ # query parameters
3190
+ query_params = {}
3191
+
3192
+ # header parameters
3193
+ header_params = {}
3194
+ # HTTP header 'Accept' (if needed)
3195
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
3196
+ # HTTP header 'Content-Type'
3197
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3198
+ header_params[:'textFormattingMode'] = opts[:'text_formatting_mode'] if !opts[:'text_formatting_mode'].nil?
3199
+
3200
+ # form parameters
3201
+ form_params = {}
3202
+ form_params['inputFile'] = input_file
3203
+
3204
+ # http body (model)
3205
+ post_body = nil
3206
+ auth_names = ['Apikey']
3207
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3208
+ :header_params => header_params,
3209
+ :query_params => query_params,
3210
+ :form_params => form_params,
3211
+ :body => post_body,
3212
+ :auth_names => auth_names,
3213
+ :return_type => 'TextConversionResult')
3214
+ if @api_client.config.debugging
3215
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pdf_to_txt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3216
+ end
3217
+ return data, status_code, headers
3218
+ end
3219
+ # Convert PNG Array to PDF
3220
+ # Convert an array of PNG images, one image per page, into a newly-created PDF. Supports images of different sizes as input.
3221
+ # @param input_file1 First input file to perform the operation on.
3222
+ # @param input_file2 Second input file to perform the operation on.
3223
+ # @param [Hash] opts the optional parameters
3224
+ # @option opts [File] :input_file3 Third input file to perform the operation on.
3225
+ # @option opts [File] :input_file4 Fourth input file to perform the operation on.
3226
+ # @option opts [File] :input_file5 Fifth input file to perform the operation on.
3227
+ # @option opts [File] :input_file6 Sixth input file to perform the operation on.
3228
+ # @option opts [File] :input_file7 Seventh input file to perform the operation on.
3229
+ # @option opts [File] :input_file8 Eighth input file to perform the operation on.
3230
+ # @option opts [File] :input_file9 Ninth input file to perform the operation on.
3231
+ # @option opts [File] :input_file10 Tenth input file to perform the operation on.
3232
+ # @return [String]
3233
+ def convert_document_png_array_to_pdf(input_file1, input_file2, opts = {})
3234
+ data, _status_code, _headers = convert_document_png_array_to_pdf_with_http_info(input_file1, input_file2, opts)
3235
+ data
3236
+ end
3237
+
3238
+ # Convert PNG Array to PDF
3239
+ # Convert an array of PNG images, one image per page, into a newly-created PDF. Supports images of different sizes as input.
3240
+ # @param input_file1 First input file to perform the operation on.
3241
+ # @param input_file2 Second input file to perform the operation on.
3242
+ # @param [Hash] opts the optional parameters
3243
+ # @option opts [File] :input_file3 Third input file to perform the operation on.
3244
+ # @option opts [File] :input_file4 Fourth input file to perform the operation on.
3245
+ # @option opts [File] :input_file5 Fifth input file to perform the operation on.
3246
+ # @option opts [File] :input_file6 Sixth input file to perform the operation on.
3247
+ # @option opts [File] :input_file7 Seventh input file to perform the operation on.
3248
+ # @option opts [File] :input_file8 Eighth input file to perform the operation on.
3249
+ # @option opts [File] :input_file9 Ninth input file to perform the operation on.
3250
+ # @option opts [File] :input_file10 Tenth input file to perform the operation on.
3251
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3252
+ def convert_document_png_array_to_pdf_with_http_info(input_file1, input_file2, opts = {})
3253
+ if @api_client.config.debugging
3254
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_png_array_to_pdf ...'
3255
+ end
3256
+ # verify the required parameter 'input_file1' is set
3257
+ if @api_client.config.client_side_validation && input_file1.nil?
3258
+ fail ArgumentError, "Missing the required parameter 'input_file1' when calling ConvertDocumentApi.convert_document_png_array_to_pdf"
3259
+ end
3260
+ # verify the required parameter 'input_file2' is set
3261
+ if @api_client.config.client_side_validation && input_file2.nil?
3262
+ fail ArgumentError, "Missing the required parameter 'input_file2' when calling ConvertDocumentApi.convert_document_png_array_to_pdf"
3263
+ end
3264
+ # resource path
3265
+ local_var_path = '/convert/png/to/pdf'
3266
+
3267
+ # query parameters
3268
+ query_params = {}
3269
+
3270
+ # header parameters
3271
+ header_params = {}
3272
+ # HTTP header 'Accept' (if needed)
3273
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3274
+ # HTTP header 'Content-Type'
3275
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3276
+
3277
+ # form parameters
3278
+ form_params = {}
3279
+ form_params['inputFile1'] = input_file1
3280
+ form_params['inputFile2'] = input_file2
3281
+ form_params['inputFile3'] = opts[:'input_file3'] if !opts[:'input_file3'].nil?
3282
+ form_params['inputFile4'] = opts[:'input_file4'] if !opts[:'input_file4'].nil?
3283
+ form_params['inputFile5'] = opts[:'input_file5'] if !opts[:'input_file5'].nil?
3284
+ form_params['inputFile6'] = opts[:'input_file6'] if !opts[:'input_file6'].nil?
3285
+ form_params['inputFile7'] = opts[:'input_file7'] if !opts[:'input_file7'].nil?
3286
+ form_params['inputFile8'] = opts[:'input_file8'] if !opts[:'input_file8'].nil?
3287
+ form_params['inputFile9'] = opts[:'input_file9'] if !opts[:'input_file9'].nil?
3288
+ form_params['inputFile10'] = opts[:'input_file10'] if !opts[:'input_file10'].nil?
3289
+
3290
+ # http body (model)
3291
+ post_body = nil
3292
+ auth_names = ['Apikey']
3293
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3294
+ :header_params => header_params,
3295
+ :query_params => query_params,
3296
+ :form_params => form_params,
3297
+ :body => post_body,
3298
+ :auth_names => auth_names,
3299
+ :return_type => 'String')
3300
+ if @api_client.config.debugging
3301
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_png_array_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3302
+ end
3303
+ return data, status_code, headers
3304
+ end
3305
+ # Convert PowerPoint PPT (97-03) Presentation to PDF
3306
+ # Convert Office PowerPoint (97-2003) Documents (ppt) to standard PDF
3307
+ # @param input_file Input file to perform the operation on.
3308
+ # @param [Hash] opts the optional parameters
3309
+ # @return [String]
3310
+ def convert_document_ppt_to_pdf(input_file, opts = {})
3311
+ data, _status_code, _headers = convert_document_ppt_to_pdf_with_http_info(input_file, opts)
3312
+ data
3313
+ end
3314
+
3315
+ # Convert PowerPoint PPT (97-03) Presentation to PDF
3316
+ # Convert Office PowerPoint (97-2003) Documents (ppt) to standard PDF
3317
+ # @param input_file Input file to perform the operation on.
3318
+ # @param [Hash] opts the optional parameters
3319
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3320
+ def convert_document_ppt_to_pdf_with_http_info(input_file, opts = {})
3321
+ if @api_client.config.debugging
3322
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_ppt_to_pdf ...'
3323
+ end
3324
+ # verify the required parameter 'input_file' is set
3325
+ if @api_client.config.client_side_validation && input_file.nil?
3326
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_ppt_to_pdf"
3327
+ end
3328
+ # resource path
3329
+ local_var_path = '/convert/ppt/to/pdf'
3330
+
3331
+ # query parameters
3332
+ query_params = {}
3333
+
3334
+ # header parameters
3335
+ header_params = {}
3336
+ # HTTP header 'Accept' (if needed)
3337
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3338
+ # HTTP header 'Content-Type'
3339
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3340
+
3341
+ # form parameters
3342
+ form_params = {}
3343
+ form_params['inputFile'] = input_file
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_ppt_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 PPTX
3361
+ # Convert/upgrade Office PowerPoint (97-2003) Documents (ppt) to modern PPTX
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_pptx(input_file, opts = {})
3366
+ data, _status_code, _headers = convert_document_ppt_to_pptx_with_http_info(input_file, opts)
3367
+ data
3368
+ end
3369
+
3370
+ # Convert PowerPoint PPT (97-03) Presentation to PPTX
3371
+ # Convert/upgrade Office PowerPoint (97-2003) Documents (ppt) to modern PPTX
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_pptx_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_pptx ...'
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_pptx"
3382
+ end
3383
+ # resource path
3384
+ local_var_path = '/convert/ppt/to/pptx'
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_pptx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3412
+ end
3413
+ return data, status_code, headers
3414
+ end
3415
+ # Convert PowerPoint PPTX Presentation to PDF
3416
+ # Convert Office PowerPoint Documents (pptx) to standard PDF
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_pptx_to_pdf(input_file, opts = {})
3421
+ data, _status_code, _headers = convert_document_pptx_to_pdf_with_http_info(input_file, opts)
3422
+ data
3423
+ end
3424
+
3425
+ # Convert PowerPoint PPTX Presentation to PDF
3426
+ # Convert Office PowerPoint Documents (pptx) to standard PDF
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_pptx_to_pdf_with_http_info(input_file, opts = {})
3431
+ if @api_client.config.debugging
3432
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_pptx_to_pdf ...'
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_pptx_to_pdf"
3437
+ end
3438
+ # resource path
3439
+ local_var_path = '/convert/pptx/to/pdf'
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_pptx_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3467
+ end
3468
+ return data, status_code, headers
3469
+ end
3470
+ # Convert PowerPoint PPTX to PNG image array
3471
+ # Converts a PowerPoint Presentation (PPTX) file to an array of PNG images, one for each page.
3472
+ # @param input_file Input file to perform the operation on.
3473
+ # @param [Hash] opts the optional parameters
3474
+ # @return [PptxToPngResult]
3475
+ def convert_document_pptx_to_png(input_file, opts = {})
3476
+ data, _status_code, _headers = convert_document_pptx_to_png_with_http_info(input_file, opts)
3477
+ data
3478
+ end
3479
+
3480
+ # Convert PowerPoint PPTX to PNG image array
3481
+ # Converts a PowerPoint Presentation (PPTX) file to an array of PNG images, one for each page.
3482
+ # @param input_file Input file to perform the operation on.
3483
+ # @param [Hash] opts the optional parameters
3484
+ # @return [Array<(PptxToPngResult, Fixnum, Hash)>] PptxToPngResult data, response status code and response headers
3485
+ def convert_document_pptx_to_png_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_png ...'
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_png"
3492
+ end
3493
+ # resource path
3494
+ local_var_path = '/convert/pptx/to/png'
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/json', 'text/json', 'application/xml', 'text/xml'])
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 => 'PptxToPngResult')
3520
+ if @api_client.config.debugging
3521
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pptx_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3522
+ end
3523
+ return data, status_code, headers
3524
+ end
3525
+ # Convert PowerPoint PPTX Presentation to Text (txt)
3526
+ # Convert Office PowerPoint Documents (pptx) to standard Text
3527
+ # @param input_file Input file to perform the operation on.
3528
+ # @param [Hash] opts the optional parameters
3529
+ # @return [TextConversionResult]
3530
+ def convert_document_pptx_to_txt(input_file, opts = {})
3531
+ data, _status_code, _headers = convert_document_pptx_to_txt_with_http_info(input_file, opts)
3532
+ data
3533
+ end
3534
+
3535
+ # Convert PowerPoint PPTX Presentation to Text (txt)
3536
+ # Convert Office PowerPoint Documents (pptx) to standard Text
3537
+ # @param input_file Input file to perform the operation on.
3538
+ # @param [Hash] opts the optional parameters
3539
+ # @return [Array<(TextConversionResult, Fixnum, Hash)>] TextConversionResult data, response status code and response headers
3540
+ def convert_document_pptx_to_txt_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_txt ...'
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_txt"
3547
+ end
3548
+ # resource path
3549
+ local_var_path = '/convert/pptx/to/txt'
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 => 'TextConversionResult')
3575
+ if @api_client.config.debugging
3576
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pptx_to_txt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3577
+ end
3578
+ return data, status_code, headers
3579
+ end
3580
+ # Convert Rich Text Format RTF to DOCX Document
3581
+ # Convert Rich Text Format Document (RTF) to Word DOCX Document
3582
+ # @param input_file Input file to perform the operation on.
3583
+ # @param [Hash] opts the optional parameters
3584
+ # @return [String]
3585
+ def convert_document_rtf_to_docx(input_file, opts = {})
3586
+ data, _status_code, _headers = convert_document_rtf_to_docx_with_http_info(input_file, opts)
3587
+ data
3588
+ end
3589
+
3590
+ # Convert Rich Text Format RTF to DOCX Document
3591
+ # Convert Rich Text Format Document (RTF) to Word DOCX Document
3592
+ # @param input_file Input file to perform the operation on.
3593
+ # @param [Hash] opts the optional parameters
3594
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3595
+ def convert_document_rtf_to_docx_with_http_info(input_file, opts = {})
3596
+ if @api_client.config.debugging
3597
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_rtf_to_docx ...'
3598
+ end
3599
+ # verify the required parameter 'input_file' is set
3600
+ if @api_client.config.client_side_validation && input_file.nil?
3601
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_rtf_to_docx"
3602
+ end
3603
+ # resource path
3604
+ local_var_path = '/convert/rtf/to/docx'
3605
+
3606
+ # query parameters
3607
+ query_params = {}
3608
+
3609
+ # header parameters
3610
+ header_params = {}
3611
+ # HTTP header 'Accept' (if needed)
3612
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3613
+ # HTTP header 'Content-Type'
3614
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3615
+
3616
+ # form parameters
3617
+ form_params = {}
3618
+ form_params['inputFile'] = input_file
3619
+
3620
+ # http body (model)
3621
+ post_body = nil
3622
+ auth_names = ['Apikey']
3623
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3624
+ :header_params => header_params,
3625
+ :query_params => query_params,
3626
+ :form_params => form_params,
3627
+ :body => post_body,
3628
+ :auth_names => auth_names,
3629
+ :return_type => 'String')
3630
+ if @api_client.config.debugging
3631
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_rtf_to_docx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3632
+ end
3633
+ return data, status_code, headers
3634
+ end
3635
+ # Convert Rich Text Format RTF to HTML Document
3636
+ # Convert Rich Text Format Document (RTF) to HTML Document
3637
+ # @param input_file Input file to perform the operation on.
3638
+ # @param [Hash] opts the optional parameters
3639
+ # @return [String]
3640
+ def convert_document_rtf_to_html(input_file, opts = {})
3641
+ data, _status_code, _headers = convert_document_rtf_to_html_with_http_info(input_file, opts)
3642
+ data
3643
+ end
3644
+
3645
+ # Convert Rich Text Format RTF to HTML Document
3646
+ # Convert Rich Text Format Document (RTF) to HTML Document
3647
+ # @param input_file Input file to perform the operation on.
3648
+ # @param [Hash] opts the optional parameters
3649
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3650
+ def convert_document_rtf_to_html_with_http_info(input_file, opts = {})
3651
+ if @api_client.config.debugging
3652
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_rtf_to_html ...'
3653
+ end
3654
+ # verify the required parameter 'input_file' is set
3655
+ if @api_client.config.client_side_validation && input_file.nil?
3656
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_rtf_to_html"
3657
+ end
3658
+ # resource path
3659
+ local_var_path = '/convert/rtf/to/html'
3660
+
3661
+ # query parameters
3662
+ query_params = {}
3663
+
3664
+ # header parameters
3665
+ header_params = {}
3666
+ # HTTP header 'Accept' (if needed)
3667
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3668
+ # HTTP header 'Content-Type'
3669
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3670
+
3671
+ # form parameters
3672
+ form_params = {}
3673
+ form_params['inputFile'] = input_file
3674
+
3675
+ # http body (model)
3676
+ post_body = nil
3677
+ auth_names = ['Apikey']
3678
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3679
+ :header_params => header_params,
3680
+ :query_params => query_params,
3681
+ :form_params => form_params,
3682
+ :body => post_body,
3683
+ :auth_names => auth_names,
3684
+ :return_type => 'String')
3685
+ if @api_client.config.debugging
3686
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_rtf_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3687
+ end
3688
+ return data, status_code, headers
3689
+ end
3690
+ # Convert Rich Text Format RTF to JPG/JPEG image array
3691
+ # Converts a Rich Text Format Document (RTF) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
3692
+ # @param input_file Input file to perform the operation on.
3693
+ # @param [Hash] opts the optional parameters
3694
+ # @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.
3695
+ # @return [RtfToJpgResult]
3696
+ def convert_document_rtf_to_jpg(input_file, opts = {})
3697
+ data, _status_code, _headers = convert_document_rtf_to_jpg_with_http_info(input_file, opts)
3698
+ data
3699
+ end
3700
+
3701
+ # Convert Rich Text Format RTF to JPG/JPEG image array
3702
+ # Converts a Rich Text Format Document (RTF) to an array of JPG/JPEG images, one for each page. Customize image quality using quality header.
3703
+ # @param input_file Input file to perform the operation on.
3704
+ # @param [Hash] opts the optional parameters
3705
+ # @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.
3706
+ # @return [Array<(RtfToJpgResult, Fixnum, Hash)>] RtfToJpgResult data, response status code and response headers
3707
+ def convert_document_rtf_to_jpg_with_http_info(input_file, opts = {})
3708
+ if @api_client.config.debugging
3709
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_rtf_to_jpg ...'
3710
+ end
3711
+ # verify the required parameter 'input_file' is set
3712
+ if @api_client.config.client_side_validation && input_file.nil?
3713
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_rtf_to_jpg"
3714
+ end
3715
+ # resource path
3716
+ local_var_path = '/convert/rtf/to/jpg'
3717
+
3718
+ # query parameters
3719
+ query_params = {}
3720
+
3721
+ # header parameters
3722
+ header_params = {}
3723
+ # HTTP header 'Accept' (if needed)
3724
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
3725
+ # HTTP header 'Content-Type'
3726
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3727
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
3728
+
3729
+ # form parameters
3730
+ form_params = {}
3731
+ form_params['inputFile'] = input_file
3732
+
3733
+ # http body (model)
3734
+ post_body = nil
3735
+ auth_names = ['Apikey']
3736
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3737
+ :header_params => header_params,
3738
+ :query_params => query_params,
3739
+ :form_params => form_params,
3740
+ :body => post_body,
3741
+ :auth_names => auth_names,
3742
+ :return_type => 'RtfToJpgResult')
3743
+ if @api_client.config.debugging
3744
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_rtf_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3745
+ end
3746
+ return data, status_code, headers
3747
+ end
3748
+ # Convert Rich Text Format RTF to PDF
3749
+ # Convert Rich Text Format Document (RTF) to standard PDF
3750
+ # @param input_file Input file to perform the operation on.
3751
+ # @param [Hash] opts the optional parameters
3752
+ # @return [String]
3753
+ def convert_document_rtf_to_pdf(input_file, opts = {})
3754
+ data, _status_code, _headers = convert_document_rtf_to_pdf_with_http_info(input_file, opts)
3755
+ data
3756
+ end
3757
+
3758
+ # Convert Rich Text Format RTF to PDF
3759
+ # Convert Rich Text Format Document (RTF) to standard PDF
3760
+ # @param input_file Input file to perform the operation on.
3761
+ # @param [Hash] opts the optional parameters
3762
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3763
+ def convert_document_rtf_to_pdf_with_http_info(input_file, opts = {})
3764
+ if @api_client.config.debugging
3765
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_rtf_to_pdf ...'
3766
+ end
3767
+ # verify the required parameter 'input_file' is set
3768
+ if @api_client.config.client_side_validation && input_file.nil?
3769
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_rtf_to_pdf"
3770
+ end
3771
+ # resource path
3772
+ local_var_path = '/convert/rtf/to/pdf'
3773
+
3774
+ # query parameters
3775
+ query_params = {}
3776
+
3777
+ # header parameters
3778
+ header_params = {}
3779
+ # HTTP header 'Accept' (if needed)
3780
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3781
+ # HTTP header 'Content-Type'
3782
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3783
+
3784
+ # form parameters
3785
+ form_params = {}
3786
+ form_params['inputFile'] = input_file
3787
+
3788
+ # http body (model)
3789
+ post_body = nil
3790
+ auth_names = ['Apikey']
3791
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3792
+ :header_params => header_params,
3793
+ :query_params => query_params,
3794
+ :form_params => form_params,
3795
+ :body => post_body,
3796
+ :auth_names => auth_names,
3797
+ :return_type => 'String')
3798
+ if @api_client.config.debugging
3799
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_rtf_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3800
+ end
3801
+ return data, status_code, headers
3802
+ end
3803
+ # Convert Rich Text Format RTF to PNG image array
3804
+ # Converts a Rich Text Format Document (RTF) to an array of PNG images, one for each page.
3805
+ # @param input_file Input file to perform the operation on.
3806
+ # @param [Hash] opts the optional parameters
3807
+ # @return [RtfToPngResult]
3808
+ def convert_document_rtf_to_png(input_file, opts = {})
3809
+ data, _status_code, _headers = convert_document_rtf_to_png_with_http_info(input_file, opts)
3810
+ data
3811
+ end
3812
+
3813
+ # Convert Rich Text Format RTF to PNG image array
3814
+ # Converts a Rich Text Format Document (RTF) to an array of PNG images, one for each page.
3815
+ # @param input_file Input file to perform the operation on.
3816
+ # @param [Hash] opts the optional parameters
3817
+ # @return [Array<(RtfToPngResult, Fixnum, Hash)>] RtfToPngResult data, response status code and response headers
3818
+ def convert_document_rtf_to_png_with_http_info(input_file, opts = {})
3819
+ if @api_client.config.debugging
3820
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_rtf_to_png ...'
3821
+ end
3822
+ # verify the required parameter 'input_file' is set
3823
+ if @api_client.config.client_side_validation && input_file.nil?
3824
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_rtf_to_png"
3825
+ end
3826
+ # resource path
3827
+ local_var_path = '/convert/rtf/to/png'
3828
+
3829
+ # query parameters
3830
+ query_params = {}
3831
+
3832
+ # header parameters
3833
+ header_params = {}
3834
+ # HTTP header 'Accept' (if needed)
3835
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
3836
+ # HTTP header 'Content-Type'
3837
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3838
+
3839
+ # form parameters
3840
+ form_params = {}
3841
+ form_params['inputFile'] = input_file
3842
+
3843
+ # http body (model)
3844
+ post_body = nil
3845
+ auth_names = ['Apikey']
3846
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3847
+ :header_params => header_params,
3848
+ :query_params => query_params,
3849
+ :form_params => form_params,
3850
+ :body => post_body,
3851
+ :auth_names => auth_names,
3852
+ :return_type => 'RtfToPngResult')
3853
+ if @api_client.config.debugging
3854
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_rtf_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3855
+ end
3856
+ return data, status_code, headers
3857
+ end
3858
+ # Convert Excel XLS (97-03) Spreadsheet to CSV
3859
+ # Convert/upgrade Office Excel (97-2003) Workbooks (xls) to standard CSV format.
3860
+ # @param input_file Input file to perform the operation on.
3861
+ # @param [Hash] opts the optional parameters
3862
+ # @return [String]
3863
+ def convert_document_xls_to_csv(input_file, opts = {})
3864
+ data, _status_code, _headers = convert_document_xls_to_csv_with_http_info(input_file, opts)
3865
+ data
3866
+ end
3867
+
3868
+ # Convert Excel XLS (97-03) Spreadsheet to CSV
3869
+ # Convert/upgrade Office Excel (97-2003) Workbooks (xls) to standard CSV format.
3870
+ # @param input_file Input file to perform the operation on.
3871
+ # @param [Hash] opts the optional parameters
3872
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3873
+ def convert_document_xls_to_csv_with_http_info(input_file, opts = {})
3874
+ if @api_client.config.debugging
3875
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_xls_to_csv ...'
3876
+ end
3877
+ # verify the required parameter 'input_file' is set
3878
+ if @api_client.config.client_side_validation && input_file.nil?
3879
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xls_to_csv"
3880
+ end
3881
+ # resource path
3882
+ local_var_path = '/convert/xls/to/csv'
3883
+
3884
+ # query parameters
3885
+ query_params = {}
3886
+
3887
+ # header parameters
3888
+ header_params = {}
3889
+ # HTTP header 'Accept' (if needed)
3890
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3891
+ # HTTP header 'Content-Type'
3892
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3893
+
3894
+ # form parameters
3895
+ form_params = {}
3896
+ form_params['inputFile'] = input_file
3897
+
3898
+ # http body (model)
3899
+ post_body = nil
3900
+ auth_names = ['Apikey']
3901
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3902
+ :header_params => header_params,
3903
+ :query_params => query_params,
3904
+ :form_params => form_params,
3905
+ :body => post_body,
3906
+ :auth_names => auth_names,
3907
+ :return_type => 'String')
3908
+ if @api_client.config.debugging
3909
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xls_to_csv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3910
+ end
3911
+ return data, status_code, headers
3912
+ end
3913
+ # Convert Excel XLS (97-03) Spreadsheet to PDF
3914
+ # Convert Office Excel (97-2003) Workbooks (xls) to standard PDF. Converts all worksheets in the workbook to PDF.
3915
+ # @param input_file Input file to perform the operation on.
3916
+ # @param [Hash] opts the optional parameters
3917
+ # @return [String]
3918
+ def convert_document_xls_to_pdf(input_file, opts = {})
3919
+ data, _status_code, _headers = convert_document_xls_to_pdf_with_http_info(input_file, opts)
3920
+ data
3921
+ end
3922
+
3923
+ # Convert Excel XLS (97-03) Spreadsheet to PDF
3924
+ # Convert Office Excel (97-2003) Workbooks (xls) to standard PDF. Converts all worksheets in the workbook to PDF.
3925
+ # @param input_file Input file to perform the operation on.
3926
+ # @param [Hash] opts the optional parameters
3927
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3928
+ def convert_document_xls_to_pdf_with_http_info(input_file, opts = {})
3929
+ if @api_client.config.debugging
3930
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_xls_to_pdf ...'
3931
+ end
3932
+ # verify the required parameter 'input_file' is set
3933
+ if @api_client.config.client_side_validation && input_file.nil?
3934
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xls_to_pdf"
3935
+ end
3936
+ # resource path
3937
+ local_var_path = '/convert/xls/to/pdf'
3938
+
3939
+ # query parameters
3940
+ query_params = {}
3941
+
3942
+ # header parameters
3943
+ header_params = {}
3944
+ # HTTP header 'Accept' (if needed)
3945
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3946
+ # HTTP header 'Content-Type'
3947
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3948
+
3949
+ # form parameters
3950
+ form_params = {}
3951
+ form_params['inputFile'] = input_file
3952
+
3953
+ # http body (model)
3954
+ post_body = nil
3955
+ auth_names = ['Apikey']
3956
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3957
+ :header_params => header_params,
3958
+ :query_params => query_params,
3959
+ :form_params => form_params,
3960
+ :body => post_body,
3961
+ :auth_names => auth_names,
3962
+ :return_type => 'String')
3963
+ if @api_client.config.debugging
3964
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xls_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3965
+ end
3966
+ return data, status_code, headers
3967
+ end
3968
+ # Convert Excel XLS (97-03) Spreadsheet to XLSX
3969
+ # Convert/upgrade Office Excel (97-2003) Workbooks (xls) to modern XLSX format.
3970
+ # @param input_file Input file to perform the operation on.
3971
+ # @param [Hash] opts the optional parameters
3972
+ # @return [String]
3973
+ def convert_document_xls_to_xlsx(input_file, opts = {})
3974
+ data, _status_code, _headers = convert_document_xls_to_xlsx_with_http_info(input_file, opts)
3975
+ data
3976
+ end
3977
+
3978
+ # Convert Excel XLS (97-03) Spreadsheet to XLSX
3979
+ # Convert/upgrade Office Excel (97-2003) Workbooks (xls) to modern XLSX format.
3980
+ # @param input_file Input file to perform the operation on.
3981
+ # @param [Hash] opts the optional parameters
3982
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3983
+ def convert_document_xls_to_xlsx_with_http_info(input_file, opts = {})
3984
+ if @api_client.config.debugging
3985
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_xls_to_xlsx ...'
3986
+ end
3987
+ # verify the required parameter 'input_file' is set
3988
+ if @api_client.config.client_side_validation && input_file.nil?
3989
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xls_to_xlsx"
3990
+ end
3991
+ # resource path
3992
+ local_var_path = '/convert/xls/to/xlsx'
3993
+
3994
+ # query parameters
3995
+ query_params = {}
3996
+
3997
+ # header parameters
3998
+ header_params = {}
3999
+ # HTTP header 'Accept' (if needed)
4000
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
4001
+ # HTTP header 'Content-Type'
4002
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4003
+
4004
+ # form parameters
4005
+ form_params = {}
4006
+ form_params['inputFile'] = input_file
4007
+
4008
+ # http body (model)
4009
+ post_body = nil
4010
+ auth_names = ['Apikey']
4011
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4012
+ :header_params => header_params,
4013
+ :query_params => query_params,
4014
+ :form_params => form_params,
4015
+ :body => post_body,
4016
+ :auth_names => auth_names,
4017
+ :return_type => 'String')
4018
+ if @api_client.config.debugging
4019
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xls_to_xlsx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4020
+ end
4021
+ return data, status_code, headers
4022
+ end
4023
+ # Convert Excel XLSX Spreadsheet to CSV, Single Worksheet
4024
+ # 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.
4025
+ # @param input_file Input file to perform the operation on.
4026
+ # @param [Hash] opts the optional parameters
4027
+ # @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.
4028
+ # @return [String]
4029
+ def convert_document_xlsx_to_csv(input_file, opts = {})
4030
+ data, _status_code, _headers = convert_document_xlsx_to_csv_with_http_info(input_file, opts)
4031
+ data
4032
+ end
4033
+
4034
+ # Convert Excel XLSX Spreadsheet to CSV, Single Worksheet
4035
+ # 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.
4036
+ # @param input_file Input file to perform the operation on.
4037
+ # @param [Hash] opts the optional parameters
4038
+ # @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.
4039
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
4040
+ def convert_document_xlsx_to_csv_with_http_info(input_file, opts = {})
4041
+ if @api_client.config.debugging
4042
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_xlsx_to_csv ...'
4043
+ end
4044
+ # verify the required parameter 'input_file' is set
4045
+ if @api_client.config.client_side_validation && input_file.nil?
4046
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xlsx_to_csv"
4047
+ end
4048
+ # resource path
4049
+ local_var_path = '/convert/xlsx/to/csv'
4050
+
4051
+ # query parameters
4052
+ query_params = {}
4053
+
4054
+ # header parameters
4055
+ header_params = {}
4056
+ # HTTP header 'Accept' (if needed)
4057
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
4058
+ # HTTP header 'Content-Type'
4059
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4060
+ header_params[:'outputEncoding'] = opts[:'output_encoding'] if !opts[:'output_encoding'].nil?
4061
+
4062
+ # form parameters
4063
+ form_params = {}
4064
+ form_params['inputFile'] = input_file
4065
+
4066
+ # http body (model)
4067
+ post_body = nil
4068
+ auth_names = ['Apikey']
4069
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4070
+ :header_params => header_params,
4071
+ :query_params => query_params,
4072
+ :form_params => form_params,
4073
+ :body => post_body,
4074
+ :auth_names => auth_names,
4075
+ :return_type => 'String')
4076
+ if @api_client.config.debugging
4077
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xlsx_to_csv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4078
+ end
4079
+ return data, status_code, headers
4080
+ end
4081
+ # Convert Excel XLSX Spreadsheet to CSV, Multiple Worksheets
4082
+ # 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.
4083
+ # @param input_file Input file to perform the operation on.
4084
+ # @param [Hash] opts the optional parameters
4085
+ # @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.
4086
+ # @return [CsvCollection]
4087
+ def convert_document_xlsx_to_csv_multi(input_file, opts = {})
4088
+ data, _status_code, _headers = convert_document_xlsx_to_csv_multi_with_http_info(input_file, opts)
4089
+ data
4090
+ end
4091
+
4092
+ # Convert Excel XLSX Spreadsheet to CSV, Multiple Worksheets
4093
+ # 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.
4094
+ # @param input_file Input file to perform the operation on.
4095
+ # @param [Hash] opts the optional parameters
4096
+ # @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.
4097
+ # @return [Array<(CsvCollection, Fixnum, Hash)>] CsvCollection data, response status code and response headers
4098
+ def convert_document_xlsx_to_csv_multi_with_http_info(input_file, opts = {})
4099
+ if @api_client.config.debugging
4100
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_xlsx_to_csv_multi ...'
4101
+ end
4102
+ # verify the required parameter 'input_file' is set
4103
+ if @api_client.config.client_side_validation && input_file.nil?
4104
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xlsx_to_csv_multi"
4105
+ end
4106
+ # resource path
4107
+ local_var_path = '/convert/xlsx/to/csv/multi'
4108
+
4109
+ # query parameters
4110
+ query_params = {}
4111
+
4112
+ # header parameters
4113
+ header_params = {}
4114
+ # HTTP header 'Accept' (if needed)
4115
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
4116
+ # HTTP header 'Content-Type'
4117
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4118
+ header_params[:'outputEncoding'] = opts[:'output_encoding'] if !opts[:'output_encoding'].nil?
4119
+
4120
+ # form parameters
4121
+ form_params = {}
4122
+ form_params['inputFile'] = input_file
4123
+
4124
+ # http body (model)
4125
+ post_body = nil
4126
+ auth_names = ['Apikey']
4127
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4128
+ :header_params => header_params,
4129
+ :query_params => query_params,
4130
+ :form_params => form_params,
4131
+ :body => post_body,
4132
+ :auth_names => auth_names,
4133
+ :return_type => 'CsvCollection')
4134
+ if @api_client.config.debugging
4135
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xlsx_to_csv_multi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4136
+ end
4137
+ return data, status_code, headers
4138
+ end
4139
+ # Convert Excel XLSX Spreadsheet to HTML Document
4140
+ # Convert Office Excel Spreadsheet (XLSX) to HTML Document. Converts all worksheets to HTML. Supports both XLSX and XLSB Excel file formats.
4141
+ # @param input_file Input file to perform the operation on.
4142
+ # @param [Hash] opts the optional parameters
4143
+ # @return [String]
4144
+ def convert_document_xlsx_to_html(input_file, opts = {})
4145
+ data, _status_code, _headers = convert_document_xlsx_to_html_with_http_info(input_file, opts)
4146
+ data
4147
+ end
4148
+
4149
+ # Convert Excel XLSX Spreadsheet to HTML Document
4150
+ # Convert Office Excel Spreadsheet (XLSX) to HTML Document. Converts all worksheets to HTML. Supports both XLSX and XLSB Excel file formats.
4151
+ # @param input_file Input file to perform the operation on.
4152
+ # @param [Hash] opts the optional parameters
4153
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
4154
+ def convert_document_xlsx_to_html_with_http_info(input_file, opts = {})
4155
+ if @api_client.config.debugging
4156
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_xlsx_to_html ...'
4157
+ end
4158
+ # verify the required parameter 'input_file' is set
4159
+ if @api_client.config.client_side_validation && input_file.nil?
4160
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xlsx_to_html"
4161
+ end
4162
+ # resource path
4163
+ local_var_path = '/convert/xlsx/to/html'
4164
+
4165
+ # query parameters
4166
+ query_params = {}
4167
+
4168
+ # header parameters
4169
+ header_params = {}
4170
+ # HTTP header 'Accept' (if needed)
4171
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
4172
+ # HTTP header 'Content-Type'
4173
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4174
+
4175
+ # form parameters
4176
+ form_params = {}
4177
+ form_params['inputFile'] = input_file
4178
+
4179
+ # http body (model)
4180
+ post_body = nil
4181
+ auth_names = ['Apikey']
4182
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4183
+ :header_params => header_params,
4184
+ :query_params => query_params,
4185
+ :form_params => form_params,
4186
+ :body => post_body,
4187
+ :auth_names => auth_names,
4188
+ :return_type => 'String')
4189
+ if @api_client.config.debugging
4190
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xlsx_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4191
+ end
4192
+ return data, status_code, headers
4193
+ end
4194
+ # Convert Excel XLSX Spreadsheet to PDF
4195
+ # Convert Office Excel Workbooks (XLSX) to standard PDF. Converts all worksheets in the workbook to PDF. Supports both XLSX and XLSB Excel file formats.
4196
+ # @param input_file Input file to perform the operation on.
4197
+ # @param [Hash] opts the optional parameters
4198
+ # @return [String]
4199
+ def convert_document_xlsx_to_pdf(input_file, opts = {})
4200
+ data, _status_code, _headers = convert_document_xlsx_to_pdf_with_http_info(input_file, opts)
4201
+ data
4202
+ end
4203
+
4204
+ # Convert Excel XLSX Spreadsheet to PDF
4205
+ # Convert Office Excel Workbooks (XLSX) to standard PDF. Converts all worksheets in the workbook to PDF. Supports both XLSX and XLSB Excel file formats.
4206
+ # @param input_file Input file to perform the operation on.
4207
+ # @param [Hash] opts the optional parameters
4208
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
4209
+ def convert_document_xlsx_to_pdf_with_http_info(input_file, opts = {})
4210
+ if @api_client.config.debugging
4211
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_xlsx_to_pdf ...'
4212
+ end
4213
+ # verify the required parameter 'input_file' is set
4214
+ if @api_client.config.client_side_validation && input_file.nil?
4215
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xlsx_to_pdf"
4216
+ end
4217
+ # resource path
4218
+ local_var_path = '/convert/xlsx/to/pdf'
4219
+
4220
+ # query parameters
4221
+ query_params = {}
4222
+
4223
+ # header parameters
4224
+ header_params = {}
4225
+ # HTTP header 'Accept' (if needed)
4226
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
4227
+ # HTTP header 'Content-Type'
4228
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4229
+
4230
+ # form parameters
4231
+ form_params = {}
4232
+ form_params['inputFile'] = input_file
4233
+
4234
+ # http body (model)
4235
+ post_body = nil
4236
+ auth_names = ['Apikey']
4237
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4238
+ :header_params => header_params,
4239
+ :query_params => query_params,
4240
+ :form_params => form_params,
4241
+ :body => post_body,
4242
+ :auth_names => auth_names,
4243
+ :return_type => 'String')
4244
+ if @api_client.config.debugging
4245
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xlsx_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4246
+ end
4247
+ return data, status_code, headers
4248
+ end
4249
+ # Convert Excel XLSX spreadsheet to PNG image array
4250
+ # Converts an Excel Spreadsheet (XLSX) file to an array of PNG images, one for each page.
4251
+ # @param input_file Input file to perform the operation on.
4252
+ # @param [Hash] opts the optional parameters
4253
+ # @return [XlsxToPngResult]
4254
+ def convert_document_xlsx_to_png(input_file, opts = {})
4255
+ data, _status_code, _headers = convert_document_xlsx_to_png_with_http_info(input_file, opts)
4256
+ data
4257
+ end
4258
+
4259
+ # Convert Excel XLSX spreadsheet to PNG image array
4260
+ # Converts an Excel Spreadsheet (XLSX) file to an array of PNG images, one for each page.
4261
+ # @param input_file Input file to perform the operation on.
4262
+ # @param [Hash] opts the optional parameters
4263
+ # @return [Array<(XlsxToPngResult, Fixnum, Hash)>] XlsxToPngResult data, response status code and response headers
4264
+ def convert_document_xlsx_to_png_with_http_info(input_file, opts = {})
4265
+ if @api_client.config.debugging
4266
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_xlsx_to_png ...'
4267
+ end
4268
+ # verify the required parameter 'input_file' is set
4269
+ if @api_client.config.client_side_validation && input_file.nil?
4270
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xlsx_to_png"
4271
+ end
4272
+ # resource path
4273
+ local_var_path = '/convert/xlsx/to/png'
4274
+
4275
+ # query parameters
4276
+ query_params = {}
4277
+
4278
+ # header parameters
4279
+ header_params = {}
4280
+ # HTTP header 'Accept' (if needed)
4281
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
4282
+ # HTTP header 'Content-Type'
4283
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4284
+
4285
+ # form parameters
4286
+ form_params = {}
4287
+ form_params['inputFile'] = input_file
4288
+
4289
+ # http body (model)
4290
+ post_body = nil
4291
+ auth_names = ['Apikey']
4292
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4293
+ :header_params => header_params,
4294
+ :query_params => query_params,
4295
+ :form_params => form_params,
4296
+ :body => post_body,
4297
+ :auth_names => auth_names,
4298
+ :return_type => 'XlsxToPngResult')
4299
+ if @api_client.config.debugging
4300
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xlsx_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4301
+ end
4302
+ return data, status_code, headers
4303
+ end
4304
+ # Convert Excel XLSX Spreadsheet to Text (txt)
4305
+ # 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.
4306
+ # @param input_file Input file to perform the operation on.
4307
+ # @param [Hash] opts the optional parameters
4308
+ # @return [TextConversionResult]
4309
+ def convert_document_xlsx_to_txt(input_file, opts = {})
4310
+ data, _status_code, _headers = convert_document_xlsx_to_txt_with_http_info(input_file, opts)
4311
+ data
4312
+ end
4313
+
4314
+ # Convert Excel XLSX Spreadsheet to Text (txt)
4315
+ # 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.
4316
+ # @param input_file Input file to perform the operation on.
4317
+ # @param [Hash] opts the optional parameters
4318
+ # @return [Array<(TextConversionResult, Fixnum, Hash)>] TextConversionResult data, response status code and response headers
4319
+ def convert_document_xlsx_to_txt_with_http_info(input_file, opts = {})
4320
+ if @api_client.config.debugging
4321
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_xlsx_to_txt ...'
4322
+ end
4323
+ # verify the required parameter 'input_file' is set
4324
+ if @api_client.config.client_side_validation && input_file.nil?
4325
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xlsx_to_txt"
4326
+ end
4327
+ # resource path
4328
+ local_var_path = '/convert/xlsx/to/txt'
4329
+
4330
+ # query parameters
4331
+ query_params = {}
4332
+
4333
+ # header parameters
4334
+ header_params = {}
4335
+ # HTTP header 'Accept' (if needed)
4336
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
4337
+ # HTTP header 'Content-Type'
4338
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4339
+
4340
+ # form parameters
4341
+ form_params = {}
4342
+ form_params['inputFile'] = input_file
4343
+
4344
+ # http body (model)
4345
+ post_body = nil
4346
+ auth_names = ['Apikey']
4347
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4348
+ :header_params => header_params,
4349
+ :query_params => query_params,
4350
+ :form_params => form_params,
4351
+ :body => post_body,
4352
+ :auth_names => auth_names,
4353
+ :return_type => 'TextConversionResult')
4354
+ if @api_client.config.debugging
4355
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xlsx_to_txt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4356
+ end
4357
+ return data, status_code, headers
4358
+ end
4359
+ end
4360
+ end