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,339 @@
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 EditHtmlApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Append a Heading to an HTML Document
23
+ # Appends a heading to the end of an HTML document.
24
+ # @param heading_text The text content to be used in the header.
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [File] :input_file Optional: Input file to perform the operation on.
27
+ # @option opts [String] :input_file_url Optional: URL of a file to operate on as input.
28
+ # @option opts [Integer] :heading_size Optional: The heading size number. Default is 1. Accepts values between 1 and 6.
29
+ # @option opts [String] :css_style Optional: The CSS style for the heading.
30
+ # @return [String]
31
+ def edit_html_html_append_heading(heading_text, opts = {})
32
+ data, _status_code, _headers = edit_html_html_append_heading_with_http_info(heading_text, opts)
33
+ data
34
+ end
35
+
36
+ # Append a Heading to an HTML Document
37
+ # Appends a heading to the end of an HTML document.
38
+ # @param heading_text The text content to be used in the header.
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [File] :input_file Optional: Input file to perform the operation on.
41
+ # @option opts [String] :input_file_url Optional: URL of a file to operate on as input.
42
+ # @option opts [Integer] :heading_size Optional: The heading size number. Default is 1. Accepts values between 1 and 6.
43
+ # @option opts [String] :css_style Optional: The CSS style for the heading.
44
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
45
+ def edit_html_html_append_heading_with_http_info(heading_text, opts = {})
46
+ if @api_client.config.debugging
47
+ @api_client.config.logger.debug 'Calling API: EditHtmlApi.edit_html_html_append_heading ...'
48
+ end
49
+ # verify the required parameter 'heading_text' is set
50
+ if @api_client.config.client_side_validation && heading_text.nil?
51
+ fail ArgumentError, "Missing the required parameter 'heading_text' when calling EditHtmlApi.edit_html_html_append_heading"
52
+ end
53
+ # resource path
54
+ local_var_path = '/convert/edit/html/append/heading'
55
+
56
+ # query parameters
57
+ query_params = {}
58
+
59
+ # header parameters
60
+ header_params = {}
61
+ # HTTP header 'Accept' (if needed)
62
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
63
+ header_params[:'headingText'] = heading_text
64
+ header_params[:'inputFileUrl'] = opts[:'input_file_url'] if !opts[:'input_file_url'].nil?
65
+ header_params[:'headingSize'] = opts[:'heading_size'] if !opts[:'heading_size'].nil?
66
+ header_params[:'cssStyle'] = opts[:'css_style'] if !opts[:'css_style'].nil?
67
+
68
+ # form parameters
69
+ form_params = {}
70
+ form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
71
+
72
+ # http body (model)
73
+ post_body = nil
74
+ auth_names = ['Apikey']
75
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
76
+ :header_params => header_params,
77
+ :query_params => query_params,
78
+ :form_params => form_params,
79
+ :body => post_body,
80
+ :auth_names => auth_names,
81
+ :return_type => 'String')
82
+ if @api_client.config.debugging
83
+ @api_client.config.logger.debug "API called: EditHtmlApi#edit_html_html_append_heading\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
+ end
85
+ return data, status_code, headers
86
+ end
87
+ # Append an Image to an HTML Document from a URL
88
+ # Appends an image to the end of an HTML document using a URL.
89
+ # @param image_url The URL for the image.
90
+ # @param [Hash] opts the optional parameters
91
+ # @option opts [File] :input_file Optional: Input file to perform the operation on.
92
+ # @option opts [String] :input_file_url Optional: URL of a file to operate on as input.
93
+ # @option opts [String] :css_style Optional: CSS style for the image.
94
+ # @return [String]
95
+ def edit_html_html_append_image_from_url(image_url, opts = {})
96
+ data, _status_code, _headers = edit_html_html_append_image_from_url_with_http_info(image_url, opts)
97
+ data
98
+ end
99
+
100
+ # Append an Image to an HTML Document from a URL
101
+ # Appends an image to the end of an HTML document using a URL.
102
+ # @param image_url The URL for the image.
103
+ # @param [Hash] opts the optional parameters
104
+ # @option opts [File] :input_file Optional: Input file to perform the operation on.
105
+ # @option opts [String] :input_file_url Optional: URL of a file to operate on as input.
106
+ # @option opts [String] :css_style Optional: CSS style for the image.
107
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
108
+ def edit_html_html_append_image_from_url_with_http_info(image_url, opts = {})
109
+ if @api_client.config.debugging
110
+ @api_client.config.logger.debug 'Calling API: EditHtmlApi.edit_html_html_append_image_from_url ...'
111
+ end
112
+ # verify the required parameter 'image_url' is set
113
+ if @api_client.config.client_side_validation && image_url.nil?
114
+ fail ArgumentError, "Missing the required parameter 'image_url' when calling EditHtmlApi.edit_html_html_append_image_from_url"
115
+ end
116
+ # resource path
117
+ local_var_path = '/convert/edit/html/append/image/from-url'
118
+
119
+ # query parameters
120
+ query_params = {}
121
+
122
+ # header parameters
123
+ header_params = {}
124
+ # HTTP header 'Accept' (if needed)
125
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
126
+ header_params[:'imageUrl'] = image_url
127
+ header_params[:'inputFileUrl'] = opts[:'input_file_url'] if !opts[:'input_file_url'].nil?
128
+ header_params[:'cssStyle'] = opts[:'css_style'] if !opts[:'css_style'].nil?
129
+
130
+ # form parameters
131
+ form_params = {}
132
+ form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
133
+
134
+ # http body (model)
135
+ post_body = nil
136
+ auth_names = ['Apikey']
137
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
138
+ :header_params => header_params,
139
+ :query_params => query_params,
140
+ :form_params => form_params,
141
+ :body => post_body,
142
+ :auth_names => auth_names,
143
+ :return_type => 'String')
144
+ if @api_client.config.debugging
145
+ @api_client.config.logger.debug "API called: EditHtmlApi#edit_html_html_append_image_from_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
146
+ end
147
+ return data, status_code, headers
148
+ end
149
+ # Append a Base64 Inline Image to an HTML Document
150
+ # Appends a base64 inline image to the end of an HTML document from an input file or URL.
151
+ # @param [Hash] opts the optional parameters
152
+ # @option opts [File] :input_file Optional: Input file to perform the operation on.
153
+ # @option opts [String] :input_file_url Optional: URL of a file to operate on as input.
154
+ # @option opts [File] :image_file Optional: Image file to be appended as base64 inline image.
155
+ # @option opts [String] :image_url Optional: Image URL to be appended as base64 inline image.
156
+ # @option opts [String] :css_style Optional: CSS style for the image.
157
+ # @option opts [String] :image_extension Optional: The extension (JPG, PNG, GIF, etc.) of the image file. Recommended if uploading an imageFile directly, instead of using imageUrl. If no extension can be determined, will default to JPG.
158
+ # @return [String]
159
+ def edit_html_html_append_image_inline(opts = {})
160
+ data, _status_code, _headers = edit_html_html_append_image_inline_with_http_info(opts)
161
+ data
162
+ end
163
+
164
+ # Append a Base64 Inline Image to an HTML Document
165
+ # Appends a base64 inline image to the end of an HTML document from an input file or URL.
166
+ # @param [Hash] opts the optional parameters
167
+ # @option opts [File] :input_file Optional: Input file to perform the operation on.
168
+ # @option opts [String] :input_file_url Optional: URL of a file to operate on as input.
169
+ # @option opts [File] :image_file Optional: Image file to be appended as base64 inline image.
170
+ # @option opts [String] :image_url Optional: Image URL to be appended as base64 inline image.
171
+ # @option opts [String] :css_style Optional: CSS style for the image.
172
+ # @option opts [String] :image_extension Optional: The extension (JPG, PNG, GIF, etc.) of the image file. Recommended if uploading an imageFile directly, instead of using imageUrl. If no extension can be determined, will default to JPG.
173
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
174
+ def edit_html_html_append_image_inline_with_http_info(opts = {})
175
+ if @api_client.config.debugging
176
+ @api_client.config.logger.debug 'Calling API: EditHtmlApi.edit_html_html_append_image_inline ...'
177
+ end
178
+ # resource path
179
+ local_var_path = '/convert/edit/html/append/image/inline'
180
+
181
+ # query parameters
182
+ query_params = {}
183
+
184
+ # header parameters
185
+ header_params = {}
186
+ # HTTP header 'Accept' (if needed)
187
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
188
+ # HTTP header 'Content-Type'
189
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
190
+ header_params[:'inputFileUrl'] = opts[:'input_file_url'] if !opts[:'input_file_url'].nil?
191
+ header_params[:'imageUrl'] = opts[:'image_url'] if !opts[:'image_url'].nil?
192
+ header_params[:'cssStyle'] = opts[:'css_style'] if !opts[:'css_style'].nil?
193
+ header_params[:'imageExtension'] = opts[:'image_extension'] if !opts[:'image_extension'].nil?
194
+
195
+ # form parameters
196
+ form_params = {}
197
+ form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
198
+ form_params['imageFile'] = opts[:'image_file'] if !opts[:'image_file'].nil?
199
+
200
+ # http body (model)
201
+ post_body = nil
202
+ auth_names = ['Apikey']
203
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
204
+ :header_params => header_params,
205
+ :query_params => query_params,
206
+ :form_params => form_params,
207
+ :body => post_body,
208
+ :auth_names => auth_names,
209
+ :return_type => 'String')
210
+ if @api_client.config.debugging
211
+ @api_client.config.logger.debug "API called: EditHtmlApi#edit_html_html_append_image_inline\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
212
+ end
213
+ return data, status_code, headers
214
+ end
215
+ # Append a Paragraph to an HTML Document
216
+ # Appends a paragraph to the end of an HTML document.
217
+ # @param paragraph_text The text content to be used in the paragraph.
218
+ # @param [Hash] opts the optional parameters
219
+ # @option opts [File] :input_file Optional: Input file to perform the operation on.
220
+ # @option opts [String] :input_file_url Optional: URL of a file to operate on as input.
221
+ # @option opts [String] :css_style Optional: The CSS style for the paragraph.
222
+ # @return [String]
223
+ def edit_html_html_append_paragraph(paragraph_text, opts = {})
224
+ data, _status_code, _headers = edit_html_html_append_paragraph_with_http_info(paragraph_text, opts)
225
+ data
226
+ end
227
+
228
+ # Append a Paragraph to an HTML Document
229
+ # Appends a paragraph to the end of an HTML document.
230
+ # @param paragraph_text The text content to be used in the paragraph.
231
+ # @param [Hash] opts the optional parameters
232
+ # @option opts [File] :input_file Optional: Input file to perform the operation on.
233
+ # @option opts [String] :input_file_url Optional: URL of a file to operate on as input.
234
+ # @option opts [String] :css_style Optional: The CSS style for the paragraph.
235
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
236
+ def edit_html_html_append_paragraph_with_http_info(paragraph_text, opts = {})
237
+ if @api_client.config.debugging
238
+ @api_client.config.logger.debug 'Calling API: EditHtmlApi.edit_html_html_append_paragraph ...'
239
+ end
240
+ # verify the required parameter 'paragraph_text' is set
241
+ if @api_client.config.client_side_validation && paragraph_text.nil?
242
+ fail ArgumentError, "Missing the required parameter 'paragraph_text' when calling EditHtmlApi.edit_html_html_append_paragraph"
243
+ end
244
+ # resource path
245
+ local_var_path = '/convert/edit/html/append/paragraph'
246
+
247
+ # query parameters
248
+ query_params = {}
249
+
250
+ # header parameters
251
+ header_params = {}
252
+ # HTTP header 'Accept' (if needed)
253
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
254
+ header_params[:'paragraphText'] = paragraph_text
255
+ header_params[:'inputFileUrl'] = opts[:'input_file_url'] if !opts[:'input_file_url'].nil?
256
+ header_params[:'cssStyle'] = opts[:'css_style'] if !opts[:'css_style'].nil?
257
+
258
+ # form parameters
259
+ form_params = {}
260
+ form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
261
+
262
+ # http body (model)
263
+ post_body = nil
264
+ auth_names = ['Apikey']
265
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
266
+ :header_params => header_params,
267
+ :query_params => query_params,
268
+ :form_params => form_params,
269
+ :body => post_body,
270
+ :auth_names => auth_names,
271
+ :return_type => 'String')
272
+ if @api_client.config.debugging
273
+ @api_client.config.logger.debug "API called: EditHtmlApi#edit_html_html_append_paragraph\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
274
+ end
275
+ return data, status_code, headers
276
+ end
277
+ # Create a Blank HTML Document
278
+ # Returns a blank HTML Document format file. The file is blank, with no contents by default. Use the optional input parameters to add various starting elements. Use additional editing commands such as Append Header, Append Paragraph or Append Image from URL to populate the document.
279
+ # @param [Hash] opts the optional parameters
280
+ # @option opts [String] :title Optional: The title of the HTML document
281
+ # @option opts [String] :css_url Optional: A CSS style URL to be added to the document.
282
+ # @option opts [String] :css_inline Optional: An inline CSS style to be added to the document.
283
+ # @option opts [String] :javascript_url Optional: Javascript URL to be added to the document.
284
+ # @option opts [String] :javascript_inline Optional: Inline Javascript to be added to the document.
285
+ # @return [String]
286
+ def edit_html_html_create_blank_document(opts = {})
287
+ data, _status_code, _headers = edit_html_html_create_blank_document_with_http_info(opts)
288
+ data
289
+ end
290
+
291
+ # Create a Blank HTML Document
292
+ # Returns a blank HTML Document format file. The file is blank, with no contents by default. Use the optional input parameters to add various starting elements. Use additional editing commands such as Append Header, Append Paragraph or Append Image from URL to populate the document.
293
+ # @param [Hash] opts the optional parameters
294
+ # @option opts [String] :title Optional: The title of the HTML document
295
+ # @option opts [String] :css_url Optional: A CSS style URL to be added to the document.
296
+ # @option opts [String] :css_inline Optional: An inline CSS style to be added to the document.
297
+ # @option opts [String] :javascript_url Optional: Javascript URL to be added to the document.
298
+ # @option opts [String] :javascript_inline Optional: Inline Javascript to be added to the document.
299
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
300
+ def edit_html_html_create_blank_document_with_http_info(opts = {})
301
+ if @api_client.config.debugging
302
+ @api_client.config.logger.debug 'Calling API: EditHtmlApi.edit_html_html_create_blank_document ...'
303
+ end
304
+ # resource path
305
+ local_var_path = '/convert/edit/html/create/blank'
306
+
307
+ # query parameters
308
+ query_params = {}
309
+
310
+ # header parameters
311
+ header_params = {}
312
+ # HTTP header 'Accept' (if needed)
313
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
314
+ header_params[:'title'] = opts[:'title'] if !opts[:'title'].nil?
315
+ header_params[:'cssUrl'] = opts[:'css_url'] if !opts[:'css_url'].nil?
316
+ header_params[:'cssInline'] = opts[:'css_inline'] if !opts[:'css_inline'].nil?
317
+ header_params[:'javascriptUrl'] = opts[:'javascript_url'] if !opts[:'javascript_url'].nil?
318
+ header_params[:'javascriptInline'] = opts[:'javascript_inline'] if !opts[:'javascript_inline'].nil?
319
+
320
+ # form parameters
321
+ form_params = {}
322
+
323
+ # http body (model)
324
+ post_body = nil
325
+ auth_names = ['Apikey']
326
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
327
+ :header_params => header_params,
328
+ :query_params => query_params,
329
+ :form_params => form_params,
330
+ :body => post_body,
331
+ :auth_names => auth_names,
332
+ :return_type => 'String')
333
+ if @api_client.config.debugging
334
+ @api_client.config.logger.debug "API called: EditHtmlApi#edit_html_html_create_blank_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
335
+ end
336
+ return data, status_code, headers
337
+ end
338
+ end
339
+ end
@@ -0,0 +1,1225 @@
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 EditPdfApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Add one or more PDF annotations, comments in the PDF document
23
+ # Adds one or more annotations, comments to a PDF document.
24
+ # @param request
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [String]
27
+ def edit_pdf_add_annotations(request, opts = {})
28
+ data, _status_code, _headers = edit_pdf_add_annotations_with_http_info(request, opts)
29
+ data
30
+ end
31
+
32
+ # Add one or more PDF annotations, comments in the PDF document
33
+ # Adds one or more annotations, comments to a PDF document.
34
+ # @param request
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
37
+ def edit_pdf_add_annotations_with_http_info(request, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_add_annotations ...'
40
+ end
41
+ # verify the required parameter 'request' is set
42
+ if @api_client.config.client_side_validation && request.nil?
43
+ fail ArgumentError, "Missing the required parameter 'request' when calling EditPdfApi.edit_pdf_add_annotations"
44
+ end
45
+ # resource path
46
+ local_var_path = '/convert/edit/pdf/annotations/add-item'
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/octet-stream'])
55
+ # HTTP header 'Content-Type'
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
57
+
58
+ # form parameters
59
+ form_params = {}
60
+
61
+ # http body (model)
62
+ post_body = @api_client.object_to_http_body(request)
63
+ auth_names = ['Apikey']
64
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
65
+ :header_params => header_params,
66
+ :query_params => query_params,
67
+ :form_params => form_params,
68
+ :body => post_body,
69
+ :auth_names => auth_names,
70
+ :return_type => 'String')
71
+ if @api_client.config.debugging
72
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_add_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
+ end
74
+ return data, status_code, headers
75
+ end
76
+ # Decrypt and password-protect a PDF
77
+ # Decrypt a PDF document with a password. Decrypted PDF will no longer require a password to open.
78
+ # @param password Valid password for the PDF file
79
+ # @param input_file Input file to perform the operation on.
80
+ # @param [Hash] opts the optional parameters
81
+ # @return [String]
82
+ def edit_pdf_decrypt(password, input_file, opts = {})
83
+ data, _status_code, _headers = edit_pdf_decrypt_with_http_info(password, input_file, opts)
84
+ data
85
+ end
86
+
87
+ # Decrypt and password-protect a PDF
88
+ # Decrypt a PDF document with a password. Decrypted PDF will no longer require a password to open.
89
+ # @param password Valid password for the PDF file
90
+ # @param input_file Input file to perform the operation on.
91
+ # @param [Hash] opts the optional parameters
92
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
93
+ def edit_pdf_decrypt_with_http_info(password, input_file, opts = {})
94
+ if @api_client.config.debugging
95
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_decrypt ...'
96
+ end
97
+ # verify the required parameter 'password' is set
98
+ if @api_client.config.client_side_validation && password.nil?
99
+ fail ArgumentError, "Missing the required parameter 'password' when calling EditPdfApi.edit_pdf_decrypt"
100
+ end
101
+ # verify the required parameter 'input_file' is set
102
+ if @api_client.config.client_side_validation && input_file.nil?
103
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_decrypt"
104
+ end
105
+ # resource path
106
+ local_var_path = '/convert/edit/pdf/decrypt'
107
+
108
+ # query parameters
109
+ query_params = {}
110
+
111
+ # header parameters
112
+ header_params = {}
113
+ # HTTP header 'Accept' (if needed)
114
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
115
+ # HTTP header 'Content-Type'
116
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
117
+ header_params[:'password'] = password
118
+
119
+ # form parameters
120
+ form_params = {}
121
+ form_params['inputFile'] = input_file
122
+
123
+ # http body (model)
124
+ post_body = nil
125
+ auth_names = ['Apikey']
126
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
127
+ :header_params => header_params,
128
+ :query_params => query_params,
129
+ :form_params => form_params,
130
+ :body => post_body,
131
+ :auth_names => auth_names,
132
+ :return_type => 'String')
133
+ if @api_client.config.debugging
134
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_decrypt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
135
+ end
136
+ return data, status_code, headers
137
+ end
138
+ # Remove, delete pages from a PDF document
139
+ # Remove one or more pages from a PDF document
140
+ # @param input_file Input file to perform the operation on.
141
+ # @param page_start Page number (1 based) to start deleting pages from (inclusive).
142
+ # @param page_end Page number (1 based) to stop deleting pages from (inclusive).
143
+ # @param [Hash] opts the optional parameters
144
+ # @return [String]
145
+ def edit_pdf_delete_pages(input_file, page_start, page_end, opts = {})
146
+ data, _status_code, _headers = edit_pdf_delete_pages_with_http_info(input_file, page_start, page_end, opts)
147
+ data
148
+ end
149
+
150
+ # Remove, delete pages from a PDF document
151
+ # Remove one or more pages from a PDF document
152
+ # @param input_file Input file to perform the operation on.
153
+ # @param page_start Page number (1 based) to start deleting pages from (inclusive).
154
+ # @param page_end Page number (1 based) to stop deleting pages from (inclusive).
155
+ # @param [Hash] opts the optional parameters
156
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
157
+ def edit_pdf_delete_pages_with_http_info(input_file, page_start, page_end, opts = {})
158
+ if @api_client.config.debugging
159
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_delete_pages ...'
160
+ end
161
+ # verify the required parameter 'input_file' is set
162
+ if @api_client.config.client_side_validation && input_file.nil?
163
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_delete_pages"
164
+ end
165
+ # verify the required parameter 'page_start' is set
166
+ if @api_client.config.client_side_validation && page_start.nil?
167
+ fail ArgumentError, "Missing the required parameter 'page_start' when calling EditPdfApi.edit_pdf_delete_pages"
168
+ end
169
+ # verify the required parameter 'page_end' is set
170
+ if @api_client.config.client_side_validation && page_end.nil?
171
+ fail ArgumentError, "Missing the required parameter 'page_end' when calling EditPdfApi.edit_pdf_delete_pages"
172
+ end
173
+ # resource path
174
+ local_var_path = '/convert/edit/pdf/pages/delete'
175
+
176
+ # query parameters
177
+ query_params = {}
178
+
179
+ # header parameters
180
+ header_params = {}
181
+ # HTTP header 'Accept' (if needed)
182
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
183
+ # HTTP header 'Content-Type'
184
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
185
+ header_params[:'pageStart'] = page_start
186
+ header_params[:'pageEnd'] = page_end
187
+
188
+ # form parameters
189
+ form_params = {}
190
+ form_params['inputFile'] = input_file
191
+
192
+ # http body (model)
193
+ post_body = nil
194
+ auth_names = ['Apikey']
195
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
196
+ :header_params => header_params,
197
+ :query_params => query_params,
198
+ :form_params => form_params,
199
+ :body => post_body,
200
+ :auth_names => auth_names,
201
+ :return_type => 'String')
202
+ if @api_client.config.debugging
203
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_delete_pages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
204
+ end
205
+ return data, status_code, headers
206
+ end
207
+ # Encrypt and password-protect a PDF
208
+ # Encrypt a PDF document with a password. Set an owner password to control owner (editor/creator) permissions, and set a user (reader) password to control the viewer of the PDF. Set the password fields null to omit the given password.
209
+ # @param input_file Input file to perform the operation on.
210
+ # @param [Hash] opts the optional parameters
211
+ # @option opts [String] :user_password Password of a user (reader) of the PDF file
212
+ # @option opts [String] :owner_password Password of a owner (creator/editor) of the PDF file
213
+ # @option opts [String] :encryption_key_length Possible values are \&quot;128\&quot; (128-bit RC4 encryption) and \&quot;256\&quot; (256-bit AES encryption). Default is 256.
214
+ # @return [String]
215
+ def edit_pdf_encrypt(input_file, opts = {})
216
+ data, _status_code, _headers = edit_pdf_encrypt_with_http_info(input_file, opts)
217
+ data
218
+ end
219
+
220
+ # Encrypt and password-protect a PDF
221
+ # Encrypt a PDF document with a password. Set an owner password to control owner (editor/creator) permissions, and set a user (reader) password to control the viewer of the PDF. Set the password fields null to omit the given password.
222
+ # @param input_file Input file to perform the operation on.
223
+ # @param [Hash] opts the optional parameters
224
+ # @option opts [String] :user_password Password of a user (reader) of the PDF file
225
+ # @option opts [String] :owner_password Password of a owner (creator/editor) of the PDF file
226
+ # @option opts [String] :encryption_key_length Possible values are \&quot;128\&quot; (128-bit RC4 encryption) and \&quot;256\&quot; (256-bit AES encryption). Default is 256.
227
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
228
+ def edit_pdf_encrypt_with_http_info(input_file, opts = {})
229
+ if @api_client.config.debugging
230
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_encrypt ...'
231
+ end
232
+ # verify the required parameter 'input_file' is set
233
+ if @api_client.config.client_side_validation && input_file.nil?
234
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_encrypt"
235
+ end
236
+ # resource path
237
+ local_var_path = '/convert/edit/pdf/encrypt'
238
+
239
+ # query parameters
240
+ query_params = {}
241
+
242
+ # header parameters
243
+ header_params = {}
244
+ # HTTP header 'Accept' (if needed)
245
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
246
+ # HTTP header 'Content-Type'
247
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
248
+ header_params[:'userPassword'] = opts[:'user_password'] if !opts[:'user_password'].nil?
249
+ header_params[:'ownerPassword'] = opts[:'owner_password'] if !opts[:'owner_password'].nil?
250
+ header_params[:'encryptionKeyLength'] = opts[:'encryption_key_length'] if !opts[:'encryption_key_length'].nil?
251
+
252
+ # form parameters
253
+ form_params = {}
254
+ form_params['inputFile'] = input_file
255
+
256
+ # http body (model)
257
+ post_body = nil
258
+ auth_names = ['Apikey']
259
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
260
+ :header_params => header_params,
261
+ :query_params => query_params,
262
+ :form_params => form_params,
263
+ :body => post_body,
264
+ :auth_names => auth_names,
265
+ :return_type => 'String')
266
+ if @api_client.config.debugging
267
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_encrypt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
268
+ end
269
+ return data, status_code, headers
270
+ end
271
+ # Get PDF annotations, including comments in the document
272
+ # Enumerates the annotations, including comments and notes, in a PDF document.
273
+ # @param input_file Input file to perform the operation on.
274
+ # @param [Hash] opts the optional parameters
275
+ # @return [GetPdfAnnotationsResult]
276
+ def edit_pdf_get_annotations(input_file, opts = {})
277
+ data, _status_code, _headers = edit_pdf_get_annotations_with_http_info(input_file, opts)
278
+ data
279
+ end
280
+
281
+ # Get PDF annotations, including comments in the document
282
+ # Enumerates the annotations, including comments and notes, in a PDF document.
283
+ # @param input_file Input file to perform the operation on.
284
+ # @param [Hash] opts the optional parameters
285
+ # @return [Array<(GetPdfAnnotationsResult, Fixnum, Hash)>] GetPdfAnnotationsResult data, response status code and response headers
286
+ def edit_pdf_get_annotations_with_http_info(input_file, opts = {})
287
+ if @api_client.config.debugging
288
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_get_annotations ...'
289
+ end
290
+ # verify the required parameter 'input_file' is set
291
+ if @api_client.config.client_side_validation && input_file.nil?
292
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_get_annotations"
293
+ end
294
+ # resource path
295
+ local_var_path = '/convert/edit/pdf/annotations/list'
296
+
297
+ # query parameters
298
+ query_params = {}
299
+
300
+ # header parameters
301
+ header_params = {}
302
+ # HTTP header 'Accept' (if needed)
303
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
304
+ # HTTP header 'Content-Type'
305
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
306
+
307
+ # form parameters
308
+ form_params = {}
309
+ form_params['inputFile'] = input_file
310
+
311
+ # http body (model)
312
+ post_body = nil
313
+ auth_names = ['Apikey']
314
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
315
+ :header_params => header_params,
316
+ :query_params => query_params,
317
+ :form_params => form_params,
318
+ :body => post_body,
319
+ :auth_names => auth_names,
320
+ :return_type => 'GetPdfAnnotationsResult')
321
+ if @api_client.config.debugging
322
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_get_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
323
+ end
324
+ return data, status_code, headers
325
+ end
326
+ # Gets PDF Form fields and values
327
+ # Encrypt a PDF document with a password. Set an owner password to control owner (editor/creator) permissions, and set a user (reader) password to control the viewer of the PDF. Set the password fields null to omit the given password.
328
+ # @param input_file Input file to perform the operation on.
329
+ # @param [Hash] opts the optional parameters
330
+ # @return [PdfFormFields]
331
+ def edit_pdf_get_form_fields(input_file, opts = {})
332
+ data, _status_code, _headers = edit_pdf_get_form_fields_with_http_info(input_file, opts)
333
+ data
334
+ end
335
+
336
+ # Gets PDF Form fields and values
337
+ # Encrypt a PDF document with a password. Set an owner password to control owner (editor/creator) permissions, and set a user (reader) password to control the viewer of the PDF. Set the password fields null to omit the given password.
338
+ # @param input_file Input file to perform the operation on.
339
+ # @param [Hash] opts the optional parameters
340
+ # @return [Array<(PdfFormFields, Fixnum, Hash)>] PdfFormFields data, response status code and response headers
341
+ def edit_pdf_get_form_fields_with_http_info(input_file, opts = {})
342
+ if @api_client.config.debugging
343
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_get_form_fields ...'
344
+ end
345
+ # verify the required parameter 'input_file' is set
346
+ if @api_client.config.client_side_validation && input_file.nil?
347
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_get_form_fields"
348
+ end
349
+ # resource path
350
+ local_var_path = '/convert/edit/pdf/form/get-fields'
351
+
352
+ # query parameters
353
+ query_params = {}
354
+
355
+ # header parameters
356
+ header_params = {}
357
+ # HTTP header 'Accept' (if needed)
358
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
359
+ # HTTP header 'Content-Type'
360
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
361
+
362
+ # form parameters
363
+ form_params = {}
364
+ form_params['inputFile'] = input_file
365
+
366
+ # http body (model)
367
+ post_body = nil
368
+ auth_names = ['Apikey']
369
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
370
+ :header_params => header_params,
371
+ :query_params => query_params,
372
+ :form_params => form_params,
373
+ :body => post_body,
374
+ :auth_names => auth_names,
375
+ :return_type => 'PdfFormFields')
376
+ if @api_client.config.debugging
377
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_get_form_fields\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
378
+ end
379
+ return data, status_code, headers
380
+ end
381
+ # Get PDF document metadata
382
+ # Returns the metadata from the PDF document, including Title, Author, etc.
383
+ # @param input_file Input file to perform the operation on.
384
+ # @param [Hash] opts the optional parameters
385
+ # @return [PdfMetadata]
386
+ def edit_pdf_get_metadata(input_file, opts = {})
387
+ data, _status_code, _headers = edit_pdf_get_metadata_with_http_info(input_file, opts)
388
+ data
389
+ end
390
+
391
+ # Get PDF document metadata
392
+ # Returns the metadata from the PDF document, including Title, Author, etc.
393
+ # @param input_file Input file to perform the operation on.
394
+ # @param [Hash] opts the optional parameters
395
+ # @return [Array<(PdfMetadata, Fixnum, Hash)>] PdfMetadata data, response status code and response headers
396
+ def edit_pdf_get_metadata_with_http_info(input_file, opts = {})
397
+ if @api_client.config.debugging
398
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_get_metadata ...'
399
+ end
400
+ # verify the required parameter 'input_file' is set
401
+ if @api_client.config.client_side_validation && input_file.nil?
402
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_get_metadata"
403
+ end
404
+ # resource path
405
+ local_var_path = '/convert/edit/pdf/get-metadata'
406
+
407
+ # query parameters
408
+ query_params = {}
409
+
410
+ # header parameters
411
+ header_params = {}
412
+ # HTTP header 'Accept' (if needed)
413
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
414
+ # HTTP header 'Content-Type'
415
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
416
+
417
+ # form parameters
418
+ form_params = {}
419
+ form_params['inputFile'] = input_file
420
+
421
+ # http body (model)
422
+ post_body = nil
423
+ auth_names = ['Apikey']
424
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
425
+ :header_params => header_params,
426
+ :query_params => query_params,
427
+ :form_params => form_params,
428
+ :body => post_body,
429
+ :auth_names => auth_names,
430
+ :return_type => 'PdfMetadata')
431
+ if @api_client.config.debugging
432
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_get_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
433
+ end
434
+ return data, status_code, headers
435
+ end
436
+ # Get text in a PDF document by page
437
+ # Gets the text in a PDF by page
438
+ # @param input_file Input file to perform the operation on.
439
+ # @param [Hash] opts the optional parameters
440
+ # @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;.
441
+ # @return [PdfTextByPageResult]
442
+ def edit_pdf_get_pdf_text_by_pages(input_file, opts = {})
443
+ data, _status_code, _headers = edit_pdf_get_pdf_text_by_pages_with_http_info(input_file, opts)
444
+ data
445
+ end
446
+
447
+ # Get text in a PDF document by page
448
+ # Gets the text in a PDF by page
449
+ # @param input_file Input file to perform the operation on.
450
+ # @param [Hash] opts the optional parameters
451
+ # @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;.
452
+ # @return [Array<(PdfTextByPageResult, Fixnum, Hash)>] PdfTextByPageResult data, response status code and response headers
453
+ def edit_pdf_get_pdf_text_by_pages_with_http_info(input_file, opts = {})
454
+ if @api_client.config.debugging
455
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_get_pdf_text_by_pages ...'
456
+ end
457
+ # verify the required parameter 'input_file' is set
458
+ if @api_client.config.client_side_validation && input_file.nil?
459
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_get_pdf_text_by_pages"
460
+ end
461
+ # resource path
462
+ local_var_path = '/convert/edit/pdf/pages/get-text'
463
+
464
+ # query parameters
465
+ query_params = {}
466
+
467
+ # header parameters
468
+ header_params = {}
469
+ # HTTP header 'Accept' (if needed)
470
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
471
+ # HTTP header 'Content-Type'
472
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
473
+ header_params[:'textFormattingMode'] = opts[:'text_formatting_mode'] if !opts[:'text_formatting_mode'].nil?
474
+
475
+ # form parameters
476
+ form_params = {}
477
+ form_params['inputFile'] = input_file
478
+
479
+ # http body (model)
480
+ post_body = nil
481
+ auth_names = ['Apikey']
482
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
483
+ :header_params => header_params,
484
+ :query_params => query_params,
485
+ :form_params => form_params,
486
+ :body => post_body,
487
+ :auth_names => auth_names,
488
+ :return_type => 'PdfTextByPageResult')
489
+ if @api_client.config.debugging
490
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_get_pdf_text_by_pages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
491
+ end
492
+ return data, status_code, headers
493
+ end
494
+ # Insert, copy pages from one PDF document into another
495
+ # Copy one or more pages from one PDF document (source document) and insert them into a second PDF document (destination document).
496
+ # @param source_file Source PDF file to copy pages from.
497
+ # @param destination_file Destination PDF file to copy pages into.
498
+ # @param page_start_source Page number (1 based) to start copying pages from (inclusive) in the Source file.
499
+ # @param page_end_source Page number (1 based) to stop copying pages pages from (inclusive) in the Source file.
500
+ # @param page_insert_before_desitnation Page number (1 based) to insert the pages before in the Destination file.
501
+ # @param [Hash] opts the optional parameters
502
+ # @return [String]
503
+ def edit_pdf_insert_pages(source_file, destination_file, page_start_source, page_end_source, page_insert_before_desitnation, opts = {})
504
+ data, _status_code, _headers = edit_pdf_insert_pages_with_http_info(source_file, destination_file, page_start_source, page_end_source, page_insert_before_desitnation, opts)
505
+ data
506
+ end
507
+
508
+ # Insert, copy pages from one PDF document into another
509
+ # Copy one or more pages from one PDF document (source document) and insert them into a second PDF document (destination document).
510
+ # @param source_file Source PDF file to copy pages from.
511
+ # @param destination_file Destination PDF file to copy pages into.
512
+ # @param page_start_source Page number (1 based) to start copying pages from (inclusive) in the Source file.
513
+ # @param page_end_source Page number (1 based) to stop copying pages pages from (inclusive) in the Source file.
514
+ # @param page_insert_before_desitnation Page number (1 based) to insert the pages before in the Destination file.
515
+ # @param [Hash] opts the optional parameters
516
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
517
+ def edit_pdf_insert_pages_with_http_info(source_file, destination_file, page_start_source, page_end_source, page_insert_before_desitnation, opts = {})
518
+ if @api_client.config.debugging
519
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_insert_pages ...'
520
+ end
521
+ # verify the required parameter 'source_file' is set
522
+ if @api_client.config.client_side_validation && source_file.nil?
523
+ fail ArgumentError, "Missing the required parameter 'source_file' when calling EditPdfApi.edit_pdf_insert_pages"
524
+ end
525
+ # verify the required parameter 'destination_file' is set
526
+ if @api_client.config.client_side_validation && destination_file.nil?
527
+ fail ArgumentError, "Missing the required parameter 'destination_file' when calling EditPdfApi.edit_pdf_insert_pages"
528
+ end
529
+ # verify the required parameter 'page_start_source' is set
530
+ if @api_client.config.client_side_validation && page_start_source.nil?
531
+ fail ArgumentError, "Missing the required parameter 'page_start_source' when calling EditPdfApi.edit_pdf_insert_pages"
532
+ end
533
+ # verify the required parameter 'page_end_source' is set
534
+ if @api_client.config.client_side_validation && page_end_source.nil?
535
+ fail ArgumentError, "Missing the required parameter 'page_end_source' when calling EditPdfApi.edit_pdf_insert_pages"
536
+ end
537
+ # verify the required parameter 'page_insert_before_desitnation' is set
538
+ if @api_client.config.client_side_validation && page_insert_before_desitnation.nil?
539
+ fail ArgumentError, "Missing the required parameter 'page_insert_before_desitnation' when calling EditPdfApi.edit_pdf_insert_pages"
540
+ end
541
+ # resource path
542
+ local_var_path = '/convert/edit/pdf/pages/insert'
543
+
544
+ # query parameters
545
+ query_params = {}
546
+
547
+ # header parameters
548
+ header_params = {}
549
+ # HTTP header 'Accept' (if needed)
550
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
551
+ # HTTP header 'Content-Type'
552
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
553
+ header_params[:'pageStartSource'] = page_start_source
554
+ header_params[:'pageEndSource'] = page_end_source
555
+ header_params[:'pageInsertBeforeDesitnation'] = page_insert_before_desitnation
556
+
557
+ # form parameters
558
+ form_params = {}
559
+ form_params['sourceFile'] = source_file
560
+ form_params['destinationFile'] = destination_file
561
+
562
+ # http body (model)
563
+ post_body = nil
564
+ auth_names = ['Apikey']
565
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
566
+ :header_params => header_params,
567
+ :query_params => query_params,
568
+ :form_params => form_params,
569
+ :body => post_body,
570
+ :auth_names => auth_names,
571
+ :return_type => 'String')
572
+ if @api_client.config.debugging
573
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_insert_pages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
574
+ end
575
+ return data, status_code, headers
576
+ end
577
+ # Rasterize a PDF to an image-based PDF
578
+ # Rasterize a PDF into an image-based PDF. The output is a PDF where each page is comprised of a high-resolution image, with all text, figures and other components removed.
579
+ # @param input_file Input file to perform the operation on.
580
+ # @param [Hash] opts the optional parameters
581
+ # @return [String]
582
+ def edit_pdf_rasterize(input_file, opts = {})
583
+ data, _status_code, _headers = edit_pdf_rasterize_with_http_info(input_file, opts)
584
+ data
585
+ end
586
+
587
+ # Rasterize a PDF to an image-based PDF
588
+ # Rasterize a PDF into an image-based PDF. The output is a PDF where each page is comprised of a high-resolution image, with all text, figures and other components removed.
589
+ # @param input_file Input file to perform the operation on.
590
+ # @param [Hash] opts the optional parameters
591
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
592
+ def edit_pdf_rasterize_with_http_info(input_file, opts = {})
593
+ if @api_client.config.debugging
594
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_rasterize ...'
595
+ end
596
+ # verify the required parameter 'input_file' is set
597
+ if @api_client.config.client_side_validation && input_file.nil?
598
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_rasterize"
599
+ end
600
+ # resource path
601
+ local_var_path = '/convert/edit/pdf/rasterize'
602
+
603
+ # query parameters
604
+ query_params = {}
605
+
606
+ # header parameters
607
+ header_params = {}
608
+ # HTTP header 'Accept' (if needed)
609
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
610
+ # HTTP header 'Content-Type'
611
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
612
+
613
+ # form parameters
614
+ form_params = {}
615
+ form_params['inputFile'] = input_file
616
+
617
+ # http body (model)
618
+ post_body = nil
619
+ auth_names = ['Apikey']
620
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
621
+ :header_params => header_params,
622
+ :query_params => query_params,
623
+ :form_params => form_params,
624
+ :body => post_body,
625
+ :auth_names => auth_names,
626
+ :return_type => 'String')
627
+ if @api_client.config.debugging
628
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_rasterize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
629
+ end
630
+ return data, status_code, headers
631
+ end
632
+ # Remove all PDF annotations, including comments in the document
633
+ # Removes all of the annotations, including comments and notes, in a PDF document.
634
+ # @param input_file Input file to perform the operation on.
635
+ # @param [Hash] opts the optional parameters
636
+ # @return [String]
637
+ def edit_pdf_remove_all_annotations(input_file, opts = {})
638
+ data, _status_code, _headers = edit_pdf_remove_all_annotations_with_http_info(input_file, opts)
639
+ data
640
+ end
641
+
642
+ # Remove all PDF annotations, including comments in the document
643
+ # Removes all of the annotations, including comments and notes, in a PDF document.
644
+ # @param input_file Input file to perform the operation on.
645
+ # @param [Hash] opts the optional parameters
646
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
647
+ def edit_pdf_remove_all_annotations_with_http_info(input_file, opts = {})
648
+ if @api_client.config.debugging
649
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_remove_all_annotations ...'
650
+ end
651
+ # verify the required parameter 'input_file' is set
652
+ if @api_client.config.client_side_validation && input_file.nil?
653
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_remove_all_annotations"
654
+ end
655
+ # resource path
656
+ local_var_path = '/convert/edit/pdf/annotations/remove-all'
657
+
658
+ # query parameters
659
+ query_params = {}
660
+
661
+ # header parameters
662
+ header_params = {}
663
+ # HTTP header 'Accept' (if needed)
664
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
665
+ # HTTP header 'Content-Type'
666
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
667
+
668
+ # form parameters
669
+ form_params = {}
670
+ form_params['inputFile'] = input_file
671
+
672
+ # http body (model)
673
+ post_body = nil
674
+ auth_names = ['Apikey']
675
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
676
+ :header_params => header_params,
677
+ :query_params => query_params,
678
+ :form_params => form_params,
679
+ :body => post_body,
680
+ :auth_names => auth_names,
681
+ :return_type => 'String')
682
+ if @api_client.config.debugging
683
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_remove_all_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
684
+ end
685
+ return data, status_code, headers
686
+ end
687
+ # Remove a specific PDF annotation, comment in the document
688
+ # Removes a specific annotation in a PDF document, using the AnnotationIndex. To enumerate AnnotationIndex for all of the annotations in the PDF document, use the /edit/pdf/annotations/list API.
689
+ # @param input_file Input file to perform the operation on.
690
+ # @param annotation_index The 0-based index of the annotation in the document
691
+ # @param [Hash] opts the optional parameters
692
+ # @return [String]
693
+ def edit_pdf_remove_annotation_item(input_file, annotation_index, opts = {})
694
+ data, _status_code, _headers = edit_pdf_remove_annotation_item_with_http_info(input_file, annotation_index, opts)
695
+ data
696
+ end
697
+
698
+ # Remove a specific PDF annotation, comment in the document
699
+ # Removes a specific annotation in a PDF document, using the AnnotationIndex. To enumerate AnnotationIndex for all of the annotations in the PDF document, use the /edit/pdf/annotations/list API.
700
+ # @param input_file Input file to perform the operation on.
701
+ # @param annotation_index The 0-based index of the annotation in the document
702
+ # @param [Hash] opts the optional parameters
703
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
704
+ def edit_pdf_remove_annotation_item_with_http_info(input_file, annotation_index, opts = {})
705
+ if @api_client.config.debugging
706
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_remove_annotation_item ...'
707
+ end
708
+ # verify the required parameter 'input_file' is set
709
+ if @api_client.config.client_side_validation && input_file.nil?
710
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_remove_annotation_item"
711
+ end
712
+ # verify the required parameter 'annotation_index' is set
713
+ if @api_client.config.client_side_validation && annotation_index.nil?
714
+ fail ArgumentError, "Missing the required parameter 'annotation_index' when calling EditPdfApi.edit_pdf_remove_annotation_item"
715
+ end
716
+ # resource path
717
+ local_var_path = '/convert/edit/pdf/annotations/remove-item'
718
+
719
+ # query parameters
720
+ query_params = {}
721
+
722
+ # header parameters
723
+ header_params = {}
724
+ # HTTP header 'Accept' (if needed)
725
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
726
+ # HTTP header 'Content-Type'
727
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
728
+ header_params[:'annotationIndex'] = annotation_index
729
+
730
+ # form parameters
731
+ form_params = {}
732
+ form_params['inputFile'] = input_file
733
+
734
+ # http body (model)
735
+ post_body = nil
736
+ auth_names = ['Apikey']
737
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
738
+ :header_params => header_params,
739
+ :query_params => query_params,
740
+ :form_params => form_params,
741
+ :body => post_body,
742
+ :auth_names => auth_names,
743
+ :return_type => 'String')
744
+ if @api_client.config.debugging
745
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_remove_annotation_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
746
+ end
747
+ return data, status_code, headers
748
+ end
749
+ # Change PDF Document's Paper Size
750
+ # Resizes a PDF document's paper size.
751
+ # @param input_file Input file to perform the operation on.
752
+ # @param paper_size The desired paper size for the resized PDF document. Size ranges from A7 (smallest) to A0 (largest).
753
+ # @param [Hash] opts the optional parameters
754
+ # @return [String]
755
+ def edit_pdf_resize(input_file, paper_size, opts = {})
756
+ data, _status_code, _headers = edit_pdf_resize_with_http_info(input_file, paper_size, opts)
757
+ data
758
+ end
759
+
760
+ # Change PDF Document&#39;s Paper Size
761
+ # Resizes a PDF document&#39;s paper size.
762
+ # @param input_file Input file to perform the operation on.
763
+ # @param paper_size The desired paper size for the resized PDF document. Size ranges from A7 (smallest) to A0 (largest).
764
+ # @param [Hash] opts the optional parameters
765
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
766
+ def edit_pdf_resize_with_http_info(input_file, paper_size, opts = {})
767
+ if @api_client.config.debugging
768
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_resize ...'
769
+ end
770
+ # verify the required parameter 'input_file' is set
771
+ if @api_client.config.client_side_validation && input_file.nil?
772
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_resize"
773
+ end
774
+ # verify the required parameter 'paper_size' is set
775
+ if @api_client.config.client_side_validation && paper_size.nil?
776
+ fail ArgumentError, "Missing the required parameter 'paper_size' when calling EditPdfApi.edit_pdf_resize"
777
+ end
778
+ # resource path
779
+ local_var_path = '/convert/edit/pdf/resize'
780
+
781
+ # query parameters
782
+ query_params = {}
783
+
784
+ # header parameters
785
+ header_params = {}
786
+ # HTTP header 'Accept' (if needed)
787
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
788
+ # HTTP header 'Content-Type'
789
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
790
+ header_params[:'paperSize'] = paper_size
791
+
792
+ # form parameters
793
+ form_params = {}
794
+ form_params['inputFile'] = input_file
795
+
796
+ # http body (model)
797
+ post_body = nil
798
+ auth_names = ['Apikey']
799
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
800
+ :header_params => header_params,
801
+ :query_params => query_params,
802
+ :form_params => form_params,
803
+ :body => post_body,
804
+ :auth_names => auth_names,
805
+ :return_type => 'String')
806
+ if @api_client.config.debugging
807
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_resize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
808
+ end
809
+ return data, status_code, headers
810
+ end
811
+ # Rotate all pages in a PDF document
812
+ # Rotate all of the pages in a PDF document by a multiple of 90 degrees
813
+ # @param input_file Input file to perform the operation on.
814
+ # @param rotation_angle The angle to rotate the page in degrees, must be a multiple of 90 degrees, e.g. 90, 180, 270, or -90, -180, -270, etc.
815
+ # @param [Hash] opts the optional parameters
816
+ # @return [String]
817
+ def edit_pdf_rotate_all_pages(input_file, rotation_angle, opts = {})
818
+ data, _status_code, _headers = edit_pdf_rotate_all_pages_with_http_info(input_file, rotation_angle, opts)
819
+ data
820
+ end
821
+
822
+ # Rotate all pages in a PDF document
823
+ # Rotate all of the pages in a PDF document by a multiple of 90 degrees
824
+ # @param input_file Input file to perform the operation on.
825
+ # @param rotation_angle The angle to rotate the page in degrees, must be a multiple of 90 degrees, e.g. 90, 180, 270, or -90, -180, -270, etc.
826
+ # @param [Hash] opts the optional parameters
827
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
828
+ def edit_pdf_rotate_all_pages_with_http_info(input_file, rotation_angle, opts = {})
829
+ if @api_client.config.debugging
830
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_rotate_all_pages ...'
831
+ end
832
+ # verify the required parameter 'input_file' is set
833
+ if @api_client.config.client_side_validation && input_file.nil?
834
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_rotate_all_pages"
835
+ end
836
+ # verify the required parameter 'rotation_angle' is set
837
+ if @api_client.config.client_side_validation && rotation_angle.nil?
838
+ fail ArgumentError, "Missing the required parameter 'rotation_angle' when calling EditPdfApi.edit_pdf_rotate_all_pages"
839
+ end
840
+ # resource path
841
+ local_var_path = '/convert/edit/pdf/pages/rotate/all'
842
+
843
+ # query parameters
844
+ query_params = {}
845
+
846
+ # header parameters
847
+ header_params = {}
848
+ # HTTP header 'Accept' (if needed)
849
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
850
+ # HTTP header 'Content-Type'
851
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
852
+ header_params[:'rotationAngle'] = rotation_angle
853
+
854
+ # form parameters
855
+ form_params = {}
856
+ form_params['inputFile'] = input_file
857
+
858
+ # http body (model)
859
+ post_body = nil
860
+ auth_names = ['Apikey']
861
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
862
+ :header_params => header_params,
863
+ :query_params => query_params,
864
+ :form_params => form_params,
865
+ :body => post_body,
866
+ :auth_names => auth_names,
867
+ :return_type => 'String')
868
+ if @api_client.config.debugging
869
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_rotate_all_pages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
870
+ end
871
+ return data, status_code, headers
872
+ end
873
+ # Rotate a range, subset of pages in a PDF document
874
+ # Rotate a range of specific pages in a PDF document by a multiple of 90 degrees
875
+ # @param input_file Input file to perform the operation on.
876
+ # @param rotation_angle The angle to rotate the page in degrees, must be a multiple of 90 degrees, e.g. 90, 180, 270, or -90, -180, -270, etc.
877
+ # @param page_start Page number (1 based) to start rotating pages from (inclusive).
878
+ # @param page_end Page number (1 based) to stop rotating pages from (inclusive).
879
+ # @param [Hash] opts the optional parameters
880
+ # @return [String]
881
+ def edit_pdf_rotate_page_range(input_file, rotation_angle, page_start, page_end, opts = {})
882
+ data, _status_code, _headers = edit_pdf_rotate_page_range_with_http_info(input_file, rotation_angle, page_start, page_end, opts)
883
+ data
884
+ end
885
+
886
+ # Rotate a range, subset of pages in a PDF document
887
+ # Rotate a range of specific pages in a PDF document by a multiple of 90 degrees
888
+ # @param input_file Input file to perform the operation on.
889
+ # @param rotation_angle The angle to rotate the page in degrees, must be a multiple of 90 degrees, e.g. 90, 180, 270, or -90, -180, -270, etc.
890
+ # @param page_start Page number (1 based) to start rotating pages from (inclusive).
891
+ # @param page_end Page number (1 based) to stop rotating pages from (inclusive).
892
+ # @param [Hash] opts the optional parameters
893
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
894
+ def edit_pdf_rotate_page_range_with_http_info(input_file, rotation_angle, page_start, page_end, opts = {})
895
+ if @api_client.config.debugging
896
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_rotate_page_range ...'
897
+ end
898
+ # verify the required parameter 'input_file' is set
899
+ if @api_client.config.client_side_validation && input_file.nil?
900
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_rotate_page_range"
901
+ end
902
+ # verify the required parameter 'rotation_angle' is set
903
+ if @api_client.config.client_side_validation && rotation_angle.nil?
904
+ fail ArgumentError, "Missing the required parameter 'rotation_angle' when calling EditPdfApi.edit_pdf_rotate_page_range"
905
+ end
906
+ # verify the required parameter 'page_start' is set
907
+ if @api_client.config.client_side_validation && page_start.nil?
908
+ fail ArgumentError, "Missing the required parameter 'page_start' when calling EditPdfApi.edit_pdf_rotate_page_range"
909
+ end
910
+ # verify the required parameter 'page_end' is set
911
+ if @api_client.config.client_side_validation && page_end.nil?
912
+ fail ArgumentError, "Missing the required parameter 'page_end' when calling EditPdfApi.edit_pdf_rotate_page_range"
913
+ end
914
+ # resource path
915
+ local_var_path = '/convert/edit/pdf/pages/rotate/page-range'
916
+
917
+ # query parameters
918
+ query_params = {}
919
+
920
+ # header parameters
921
+ header_params = {}
922
+ # HTTP header 'Accept' (if needed)
923
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
924
+ # HTTP header 'Content-Type'
925
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
926
+ header_params[:'rotationAngle'] = rotation_angle
927
+ header_params[:'pageStart'] = page_start
928
+ header_params[:'pageEnd'] = page_end
929
+
930
+ # form parameters
931
+ form_params = {}
932
+ form_params['inputFile'] = input_file
933
+
934
+ # http body (model)
935
+ post_body = nil
936
+ auth_names = ['Apikey']
937
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
938
+ :header_params => header_params,
939
+ :query_params => query_params,
940
+ :form_params => form_params,
941
+ :body => post_body,
942
+ :auth_names => auth_names,
943
+ :return_type => 'String')
944
+ if @api_client.config.debugging
945
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_rotate_page_range\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
946
+ end
947
+ return data, status_code, headers
948
+ end
949
+ # Sets ands fills PDF Form field values
950
+ # Fill in the form fields in a PDF form with specific values. Use form/get-fields to enumerate the available fields and their data types in an input form.
951
+ # @param field_values
952
+ # @param [Hash] opts the optional parameters
953
+ # @return [String]
954
+ def edit_pdf_set_form_fields(field_values, opts = {})
955
+ data, _status_code, _headers = edit_pdf_set_form_fields_with_http_info(field_values, opts)
956
+ data
957
+ end
958
+
959
+ # Sets ands fills PDF Form field values
960
+ # Fill in the form fields in a PDF form with specific values. Use form/get-fields to enumerate the available fields and their data types in an input form.
961
+ # @param field_values
962
+ # @param [Hash] opts the optional parameters
963
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
964
+ def edit_pdf_set_form_fields_with_http_info(field_values, opts = {})
965
+ if @api_client.config.debugging
966
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_set_form_fields ...'
967
+ end
968
+ # verify the required parameter 'field_values' is set
969
+ if @api_client.config.client_side_validation && field_values.nil?
970
+ fail ArgumentError, "Missing the required parameter 'field_values' when calling EditPdfApi.edit_pdf_set_form_fields"
971
+ end
972
+ # resource path
973
+ local_var_path = '/convert/edit/pdf/form/set-fields'
974
+
975
+ # query parameters
976
+ query_params = {}
977
+
978
+ # header parameters
979
+ header_params = {}
980
+ # HTTP header 'Accept' (if needed)
981
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
982
+ # HTTP header 'Content-Type'
983
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
984
+
985
+ # form parameters
986
+ form_params = {}
987
+
988
+ # http body (model)
989
+ post_body = @api_client.object_to_http_body(field_values)
990
+ auth_names = ['Apikey']
991
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
992
+ :header_params => header_params,
993
+ :query_params => query_params,
994
+ :form_params => form_params,
995
+ :body => post_body,
996
+ :auth_names => auth_names,
997
+ :return_type => 'String')
998
+ if @api_client.config.debugging
999
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_set_form_fields\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1000
+ end
1001
+ return data, status_code, headers
1002
+ end
1003
+ # Sets PDF document metadata
1004
+ # Sets (writes) metadata into the input PDF document, including Title, Author, etc.
1005
+ # @param request
1006
+ # @param [Hash] opts the optional parameters
1007
+ # @return [String]
1008
+ def edit_pdf_set_metadata(request, opts = {})
1009
+ data, _status_code, _headers = edit_pdf_set_metadata_with_http_info(request, opts)
1010
+ data
1011
+ end
1012
+
1013
+ # Sets PDF document metadata
1014
+ # Sets (writes) metadata into the input PDF document, including Title, Author, etc.
1015
+ # @param request
1016
+ # @param [Hash] opts the optional parameters
1017
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
1018
+ def edit_pdf_set_metadata_with_http_info(request, opts = {})
1019
+ if @api_client.config.debugging
1020
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_set_metadata ...'
1021
+ end
1022
+ # verify the required parameter 'request' is set
1023
+ if @api_client.config.client_side_validation && request.nil?
1024
+ fail ArgumentError, "Missing the required parameter 'request' when calling EditPdfApi.edit_pdf_set_metadata"
1025
+ end
1026
+ # resource path
1027
+ local_var_path = '/convert/edit/pdf/set-metadata'
1028
+
1029
+ # query parameters
1030
+ query_params = {}
1031
+
1032
+ # header parameters
1033
+ header_params = {}
1034
+ # HTTP header 'Accept' (if needed)
1035
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
1036
+ # HTTP header 'Content-Type'
1037
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
1038
+
1039
+ # form parameters
1040
+ form_params = {}
1041
+
1042
+ # http body (model)
1043
+ post_body = @api_client.object_to_http_body(request)
1044
+ auth_names = ['Apikey']
1045
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1046
+ :header_params => header_params,
1047
+ :query_params => query_params,
1048
+ :form_params => form_params,
1049
+ :body => post_body,
1050
+ :auth_names => auth_names,
1051
+ :return_type => 'String')
1052
+ if @api_client.config.debugging
1053
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_set_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1054
+ end
1055
+ return data, status_code, headers
1056
+ end
1057
+ # Encrypt, password-protect and set restricted permissions on a PDF
1058
+ # Encrypt a PDF document with a password, and set permissions on the PDF. Set an owner password to control owner (editor/creator) permissions [required], and set a user (reader) password to control the viewer of the PDF [optional]. Set the reader password to null to omit the password. Restrict or allow printing, copying content, document assembly, editing (read-only), form filling, modification of annotations, and degraded printing through document Digital Rights Management (DRM).
1059
+ # @param owner_password Password of a owner (creator/editor) of the PDF file (required)
1060
+ # @param user_password Password of a user (reader) of the PDF file (optional)
1061
+ # @param input_file Input file to perform the operation on.
1062
+ # @param [Hash] opts the optional parameters
1063
+ # @option opts [String] :encryption_key_length Possible values are \&quot;128\&quot; (128-bit RC4 encryption) and \&quot;256\&quot; (256-bit AES encryption). Default is 256.
1064
+ # @option opts [BOOLEAN] :allow_printing Set to false to disable printing through DRM. Default is true.
1065
+ # @option opts [BOOLEAN] :allow_document_assembly Set to false to disable document assembly through DRM. Default is true.
1066
+ # @option opts [BOOLEAN] :allow_content_extraction Set to false to disable copying/extracting content out of the PDF through DRM. Default is true.
1067
+ # @option opts [BOOLEAN] :allow_form_filling Set to false to disable filling out form fields in the PDF through DRM. Default is true.
1068
+ # @option opts [BOOLEAN] :allow_editing Set to false to disable editing in the PDF through DRM (making the PDF read-only). Default is true.
1069
+ # @option opts [BOOLEAN] :allow_annotations Set to false to disable annotations and editing of annotations in the PDF through DRM. Default is true.
1070
+ # @option opts [BOOLEAN] :allow_degraded_printing Set to false to disable degraded printing of the PDF through DRM. Default is true.
1071
+ # @return [String]
1072
+ def edit_pdf_set_permissions(owner_password, user_password, input_file, opts = {})
1073
+ data, _status_code, _headers = edit_pdf_set_permissions_with_http_info(owner_password, user_password, input_file, opts)
1074
+ data
1075
+ end
1076
+
1077
+ # Encrypt, password-protect and set restricted permissions on a PDF
1078
+ # Encrypt a PDF document with a password, and set permissions on the PDF. Set an owner password to control owner (editor/creator) permissions [required], and set a user (reader) password to control the viewer of the PDF [optional]. Set the reader password to null to omit the password. Restrict or allow printing, copying content, document assembly, editing (read-only), form filling, modification of annotations, and degraded printing through document Digital Rights Management (DRM).
1079
+ # @param owner_password Password of a owner (creator/editor) of the PDF file (required)
1080
+ # @param user_password Password of a user (reader) of the PDF file (optional)
1081
+ # @param input_file Input file to perform the operation on.
1082
+ # @param [Hash] opts the optional parameters
1083
+ # @option opts [String] :encryption_key_length Possible values are \&quot;128\&quot; (128-bit RC4 encryption) and \&quot;256\&quot; (256-bit AES encryption). Default is 256.
1084
+ # @option opts [BOOLEAN] :allow_printing Set to false to disable printing through DRM. Default is true.
1085
+ # @option opts [BOOLEAN] :allow_document_assembly Set to false to disable document assembly through DRM. Default is true.
1086
+ # @option opts [BOOLEAN] :allow_content_extraction Set to false to disable copying/extracting content out of the PDF through DRM. Default is true.
1087
+ # @option opts [BOOLEAN] :allow_form_filling Set to false to disable filling out form fields in the PDF through DRM. Default is true.
1088
+ # @option opts [BOOLEAN] :allow_editing Set to false to disable editing in the PDF through DRM (making the PDF read-only). Default is true.
1089
+ # @option opts [BOOLEAN] :allow_annotations Set to false to disable annotations and editing of annotations in the PDF through DRM. Default is true.
1090
+ # @option opts [BOOLEAN] :allow_degraded_printing Set to false to disable degraded printing of the PDF through DRM. Default is true.
1091
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
1092
+ def edit_pdf_set_permissions_with_http_info(owner_password, user_password, input_file, opts = {})
1093
+ if @api_client.config.debugging
1094
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_set_permissions ...'
1095
+ end
1096
+ # verify the required parameter 'owner_password' is set
1097
+ if @api_client.config.client_side_validation && owner_password.nil?
1098
+ fail ArgumentError, "Missing the required parameter 'owner_password' when calling EditPdfApi.edit_pdf_set_permissions"
1099
+ end
1100
+ # verify the required parameter 'user_password' is set
1101
+ if @api_client.config.client_side_validation && user_password.nil?
1102
+ fail ArgumentError, "Missing the required parameter 'user_password' when calling EditPdfApi.edit_pdf_set_permissions"
1103
+ end
1104
+ # verify the required parameter 'input_file' is set
1105
+ if @api_client.config.client_side_validation && input_file.nil?
1106
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_set_permissions"
1107
+ end
1108
+ # resource path
1109
+ local_var_path = '/convert/edit/pdf/encrypt/set-permissions'
1110
+
1111
+ # query parameters
1112
+ query_params = {}
1113
+
1114
+ # header parameters
1115
+ header_params = {}
1116
+ # HTTP header 'Accept' (if needed)
1117
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
1118
+ # HTTP header 'Content-Type'
1119
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1120
+ header_params[:'ownerPassword'] = owner_password
1121
+ header_params[:'userPassword'] = user_password
1122
+ header_params[:'encryptionKeyLength'] = opts[:'encryption_key_length'] if !opts[:'encryption_key_length'].nil?
1123
+ header_params[:'allowPrinting'] = opts[:'allow_printing'] if !opts[:'allow_printing'].nil?
1124
+ header_params[:'allowDocumentAssembly'] = opts[:'allow_document_assembly'] if !opts[:'allow_document_assembly'].nil?
1125
+ header_params[:'allowContentExtraction'] = opts[:'allow_content_extraction'] if !opts[:'allow_content_extraction'].nil?
1126
+ header_params[:'allowFormFilling'] = opts[:'allow_form_filling'] if !opts[:'allow_form_filling'].nil?
1127
+ header_params[:'allowEditing'] = opts[:'allow_editing'] if !opts[:'allow_editing'].nil?
1128
+ header_params[:'allowAnnotations'] = opts[:'allow_annotations'] if !opts[:'allow_annotations'].nil?
1129
+ header_params[:'allowDegradedPrinting'] = opts[:'allow_degraded_printing'] if !opts[:'allow_degraded_printing'].nil?
1130
+
1131
+ # form parameters
1132
+ form_params = {}
1133
+ form_params['inputFile'] = input_file
1134
+
1135
+ # http body (model)
1136
+ post_body = nil
1137
+ auth_names = ['Apikey']
1138
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1139
+ :header_params => header_params,
1140
+ :query_params => query_params,
1141
+ :form_params => form_params,
1142
+ :body => post_body,
1143
+ :auth_names => auth_names,
1144
+ :return_type => 'String')
1145
+ if @api_client.config.debugging
1146
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_set_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1147
+ end
1148
+ return data, status_code, headers
1149
+ end
1150
+ # Add a text watermark to a PDF
1151
+ # Adds a text watermark to a PDF
1152
+ # @param watermark_text Watermark text to add to the PDF (required)
1153
+ # @param input_file Input file to perform the operation on.
1154
+ # @param [Hash] opts the optional parameters
1155
+ # @option opts [String] :font_name Font Family Name for the watermark text; default is Times New Roman
1156
+ # @option opts [Float] :font_size Font Size in points of the text; default is 150
1157
+ # @option opts [String] :font_color Font color in hexadecimal or HTML color name; default is Red
1158
+ # @option opts [Float] :font_transparency Font transparency between 0.0 (completely transparent) to 1.0 (fully opaque); default is 0.5
1159
+ # @return [String]
1160
+ def edit_pdf_watermark_text(watermark_text, input_file, opts = {})
1161
+ data, _status_code, _headers = edit_pdf_watermark_text_with_http_info(watermark_text, input_file, opts)
1162
+ data
1163
+ end
1164
+
1165
+ # Add a text watermark to a PDF
1166
+ # Adds a text watermark to a PDF
1167
+ # @param watermark_text Watermark text to add to the PDF (required)
1168
+ # @param input_file Input file to perform the operation on.
1169
+ # @param [Hash] opts the optional parameters
1170
+ # @option opts [String] :font_name Font Family Name for the watermark text; default is Times New Roman
1171
+ # @option opts [Float] :font_size Font Size in points of the text; default is 150
1172
+ # @option opts [String] :font_color Font color in hexadecimal or HTML color name; default is Red
1173
+ # @option opts [Float] :font_transparency Font transparency between 0.0 (completely transparent) to 1.0 (fully opaque); default is 0.5
1174
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
1175
+ def edit_pdf_watermark_text_with_http_info(watermark_text, input_file, opts = {})
1176
+ if @api_client.config.debugging
1177
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_watermark_text ...'
1178
+ end
1179
+ # verify the required parameter 'watermark_text' is set
1180
+ if @api_client.config.client_side_validation && watermark_text.nil?
1181
+ fail ArgumentError, "Missing the required parameter 'watermark_text' when calling EditPdfApi.edit_pdf_watermark_text"
1182
+ end
1183
+ # verify the required parameter 'input_file' is set
1184
+ if @api_client.config.client_side_validation && input_file.nil?
1185
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_watermark_text"
1186
+ end
1187
+ # resource path
1188
+ local_var_path = '/convert/edit/pdf/watermark/text'
1189
+
1190
+ # query parameters
1191
+ query_params = {}
1192
+
1193
+ # header parameters
1194
+ header_params = {}
1195
+ # HTTP header 'Accept' (if needed)
1196
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
1197
+ # HTTP header 'Content-Type'
1198
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1199
+ header_params[:'watermarkText'] = watermark_text
1200
+ header_params[:'fontName'] = opts[:'font_name'] if !opts[:'font_name'].nil?
1201
+ header_params[:'fontSize'] = opts[:'font_size'] if !opts[:'font_size'].nil?
1202
+ header_params[:'fontColor'] = opts[:'font_color'] if !opts[:'font_color'].nil?
1203
+ header_params[:'fontTransparency'] = opts[:'font_transparency'] if !opts[:'font_transparency'].nil?
1204
+
1205
+ # form parameters
1206
+ form_params = {}
1207
+ form_params['inputFile'] = input_file
1208
+
1209
+ # http body (model)
1210
+ post_body = nil
1211
+ auth_names = ['Apikey']
1212
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1213
+ :header_params => header_params,
1214
+ :query_params => query_params,
1215
+ :form_params => form_params,
1216
+ :body => post_body,
1217
+ :auth_names => auth_names,
1218
+ :return_type => 'String')
1219
+ if @api_client.config.debugging
1220
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_watermark_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1221
+ end
1222
+ return data, status_code, headers
1223
+ end
1224
+ end
1225
+ end