cloudmersive-convert-api-client 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/{client/Gemfile → Gemfile} +0 -0
- data/{client/README.md → README.md} +49 -4
- data/{client/Rakefile → Rakefile} +0 -0
- data/{client/cloudmersive-convert-api-client.gemspec → cloudmersive-convert-api-client.gemspec} +0 -0
- data/{client/docs → docs}/CompareDocumentApi.md +0 -0
- data/{client/docs → docs}/ConvertDataApi.md +0 -0
- data/{client/docs → docs}/ConvertDocumentApi.md +0 -0
- data/{client/docs → docs}/ConvertImageApi.md +113 -0
- data/{client/docs → docs}/ConvertTemplateApi.md +0 -0
- data/{client/docs → docs}/ConvertWebApi.md +0 -0
- data/{client/docs → docs}/ConvertedPngPage.md +0 -0
- data/{client/docs → docs}/DocumentValidationError.md +0 -0
- data/{client/docs → docs}/DocumentValidationResult.md +0 -0
- data/docs/DocxBody.md +10 -0
- data/docs/DocxCellStyle.md +11 -0
- data/{client/docs → docs}/DocxFooter.md +1 -0
- data/{client/docs → docs}/DocxHeader.md +1 -0
- data/docs/DocxImage.md +20 -0
- data/docs/DocxInsertImageRequest.md +14 -0
- data/{client/docs → docs}/DocxInsertImageResponse.md +0 -0
- data/{client/docs → docs}/DocxParagraph.md +1 -0
- data/docs/DocxRemoveObjectRequest.md +10 -0
- data/docs/DocxRemoveObjectResponse.md +9 -0
- data/{client/docs → docs}/DocxRun.md +1 -0
- data/{client/docs → docs}/DocxSection.md +1 -0
- data/{client/docs → docs}/DocxSetFooterRequest.md +0 -0
- data/{client/docs → docs}/DocxSetFooterResponse.md +0 -0
- data/{client/docs → docs}/DocxSetHeaderRequest.md +0 -0
- data/{client/docs → docs}/DocxSetHeaderResponse.md +0 -0
- data/{client/docs → docs}/DocxStyle.md +1 -0
- data/{client/docs → docs}/DocxTable.md +2 -1
- data/{client/docs → docs}/DocxTableCell.md +1 -0
- data/{client/docs → docs}/DocxTableRow.md +1 -0
- data/{client/docs → docs}/DocxText.md +1 -0
- data/{client/docs → docs}/EditDocumentApi.md +605 -0
- data/docs/ExifValue.md +10 -0
- data/{client/docs → docs}/FinishEditingRequest.md +0 -0
- data/docs/GetDocxBodyRequest.md +9 -0
- data/docs/GetDocxBodyResponse.md +9 -0
- data/{client/docs → docs}/GetDocxHeadersAndFootersRequest.md +0 -0
- data/{client/docs → docs}/GetDocxHeadersAndFootersResponse.md +0 -0
- data/docs/GetDocxImagesRequest.md +9 -0
- data/docs/GetDocxImagesResponse.md +9 -0
- data/docs/GetDocxSectionsRequest.md +9 -0
- data/docs/GetDocxSectionsResponse.md +9 -0
- data/{client/docs → docs}/GetDocxStylesRequest.md +0 -0
- data/{client/docs → docs}/GetDocxStylesResponse.md +0 -0
- data/{client/docs → docs}/GetDocxTablesRequest.md +0 -0
- data/{client/docs → docs}/GetDocxTablesResponse.md +0 -0
- data/docs/GetImageInfoResult.md +24 -0
- data/docs/GetXlsxColumnsRequest.md +10 -0
- data/docs/GetXlsxColumnsResponse.md +9 -0
- data/docs/GetXlsxImagesRequest.md +10 -0
- data/docs/GetXlsxImagesResponse.md +9 -0
- data/docs/GetXlsxRowsAndCellsRequest.md +10 -0
- data/docs/GetXlsxRowsAndCellsResponse.md +9 -0
- data/docs/GetXlsxStylesRequest.md +9 -0
- data/docs/GetXlsxStylesResponse.md +9 -0
- data/docs/GetXlsxWorksheetsRequest.md +9 -0
- data/docs/GetXlsxWorksheetsResponse.md +9 -0
- data/{client/docs → docs}/HtmlMdResult.md +0 -0
- data/{client/docs → docs}/HtmlTemplateApplicationRequest.md +0 -0
- data/{client/docs → docs}/HtmlTemplateApplicationResponse.md +0 -0
- data/{client/docs → docs}/HtmlTemplateOperation.md +0 -0
- data/{client/docs → docs}/HtmlToOfficeRequest.md +0 -0
- data/{client/docs → docs}/HtmlToPdfRequest.md +0 -0
- data/docs/InsertDocxInsertParagraphRequest.md +12 -0
- data/docs/InsertDocxInsertParagraphResponse.md +9 -0
- data/docs/InsertDocxTablesRequest.md +12 -0
- data/{client/docs → docs}/InsertDocxTablesResponse.md +0 -0
- data/docs/InsertXlsxWorksheetRequest.md +10 -0
- data/docs/InsertXlsxWorksheetResponse.md +9 -0
- data/{client/docs → docs}/MergeDocumentApi.md +0 -0
- data/{client/docs → docs}/PdfToPngResult.md +0 -0
- data/{client/docs → docs}/RemoveDocxHeadersAndFootersRequest.md +0 -0
- data/{client/docs → docs}/RemoveDocxHeadersAndFootersResponse.md +0 -0
- data/{client/docs → docs}/ReplaceStringRequest.md +0 -0
- data/{client/docs → docs}/ScreenshotRequest.md +0 -0
- data/{client/docs → docs}/ValidateDocumentApi.md +0 -0
- data/{client/docs → docs}/ViewerResponse.md +0 -0
- data/{client/docs → docs}/ViewerToolsApi.md +0 -0
- data/docs/XlsxImage.md +12 -0
- data/docs/XlsxSpreadsheetCell.md +12 -0
- data/docs/XlsxSpreadsheetColumn.md +9 -0
- data/docs/XlsxSpreadsheetRow.md +9 -0
- data/docs/XlsxWorksheet.md +9 -0
- data/{client/git_push.sh → git_push.sh} +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client.rb +32 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/compare_document_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_data_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_document_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_image_api.rb +118 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_template_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_web_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/edit_document_api.rb +605 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/merge_document_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/validate_document_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/viewer_tools_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api_client.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api_error.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/configuration.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/converted_png_page.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/document_validation_error.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/document_validation_result.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/docx_body.rb +213 -0
- data/lib/cloudmersive-convert-api-client/models/docx_cell_style.rb +219 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_footer.rb +11 -1
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_header.rb +11 -1
- data/lib/cloudmersive-convert-api-client/models/docx_image.rb +309 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_insert_image_request.rb +27 -17
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_insert_image_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_paragraph.rb +11 -1
- data/lib/cloudmersive-convert-api-client/models/docx_remove_object_request.rb +225 -0
- data/lib/cloudmersive-convert-api-client/models/docx_remove_object_response.rb +199 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_run.rb +11 -1
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_section.rb +14 -4
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_set_footer_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_set_footer_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_set_header_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_set_header_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_style.rb +11 -1
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_table.rb +12 -2
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_table_cell.rb +11 -1
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_table_row.rb +11 -1
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_text.rb +11 -1
- data/lib/cloudmersive-convert-api-client/models/exif_value.rb +206 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/finish_editing_request.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_body_request.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_body_response.rb +199 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_response.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_images_request.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_images_response.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_sections_request.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_sections_response.rb +201 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_styles_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_styles_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_tables_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_tables_response.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/get_image_info_result.rb +350 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_columns_request.rb +225 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_columns_response.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_images_request.rb +225 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_images_response.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_rows_and_cells_request.rb +225 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_rows_and_cells_response.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_styles_request.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_styles_response.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_worksheets_request.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_worksheets_response.rb +201 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_md_result.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_template_application_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_template_application_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_template_operation.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_to_office_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_to_pdf_request.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_request.rb +245 -0
- data/lib/cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_response.rb +199 -0
- data/lib/cloudmersive-convert-api-client/models/insert_docx_tables_request.rb +245 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/insert_docx_tables_response.rb +0 -0
- data/{client/lib/cloudmersive-convert-api-client/models/insert_docx_tables_request.rb → lib/cloudmersive-convert-api-client/models/insert_xlsx_worksheet_request.rb} +10 -10
- data/lib/cloudmersive-convert-api-client/models/insert_xlsx_worksheet_response.rb +199 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/pdf_to_png_result.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/replace_string_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/screenshot_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/viewer_response.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_image.rb +229 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_cell.rb +228 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_column.rb +199 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_row.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_worksheet.rb +199 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/version.rb +1 -1
- data/{client/spec → spec}/api/compare_document_api_spec.rb +0 -0
- data/{client/spec → spec}/api/convert_data_api_spec.rb +0 -0
- data/{client/spec → spec}/api/convert_document_api_spec.rb +0 -0
- data/{client/spec → spec}/api/convert_image_api_spec.rb +25 -0
- data/{client/spec → spec}/api/convert_template_api_spec.rb +0 -0
- data/{client/spec → spec}/api/convert_web_api_spec.rb +0 -0
- data/{client/spec → spec}/api/edit_document_api_spec.rb +132 -0
- data/{client/spec → spec}/api/merge_document_api_spec.rb +0 -0
- data/{client/spec → spec}/api/validate_document_api_spec.rb +0 -0
- data/{client/spec → spec}/api/viewer_tools_api_spec.rb +0 -0
- data/{client/spec → spec}/api_client_spec.rb +0 -0
- data/{client/spec → spec}/configuration_spec.rb +0 -0
- data/{client/spec → spec}/models/converted_png_page_spec.rb +0 -0
- data/{client/spec → spec}/models/document_validation_error_spec.rb +0 -0
- data/{client/spec → spec}/models/document_validation_result_spec.rb +0 -0
- data/spec/models/docx_body_spec.rb +54 -0
- data/spec/models/docx_cell_style_spec.rb +60 -0
- data/{client/spec → spec}/models/docx_footer_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_header_spec.rb +6 -0
- data/spec/models/docx_image_spec.rb +114 -0
- data/{client/spec → spec}/models/docx_insert_image_request_spec.rb +8 -2
- data/{client/spec → spec}/models/docx_insert_image_response_spec.rb +0 -0
- data/{client/spec → spec}/models/docx_paragraph_spec.rb +6 -0
- data/spec/models/docx_remove_object_request_spec.rb +54 -0
- data/spec/models/docx_remove_object_response_spec.rb +48 -0
- data/{client/spec → spec}/models/docx_run_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_section_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_set_footer_request_spec.rb +0 -0
- data/{client/spec → spec}/models/docx_set_footer_response_spec.rb +0 -0
- data/{client/spec → spec}/models/docx_set_header_request_spec.rb +0 -0
- data/{client/spec → spec}/models/docx_set_header_response_spec.rb +0 -0
- data/{client/spec → spec}/models/docx_style_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_table_cell_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_table_row_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_table_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_text_spec.rb +6 -0
- data/spec/models/exif_value_spec.rb +54 -0
- data/{client/spec → spec}/models/finish_editing_request_spec.rb +0 -0
- data/spec/models/get_docx_body_request_spec.rb +48 -0
- data/spec/models/get_docx_body_response_spec.rb +48 -0
- data/{client/spec → spec}/models/get_docx_headers_and_footers_request_spec.rb +0 -0
- data/{client/spec → spec}/models/get_docx_headers_and_footers_response_spec.rb +0 -0
- data/spec/models/get_docx_images_request_spec.rb +48 -0
- data/spec/models/get_docx_images_response_spec.rb +48 -0
- data/spec/models/get_docx_sections_request_spec.rb +48 -0
- data/spec/models/get_docx_sections_response_spec.rb +48 -0
- data/{client/spec → spec}/models/get_docx_styles_request_spec.rb +0 -0
- data/{client/spec → spec}/models/get_docx_styles_response_spec.rb +0 -0
- data/{client/spec → spec}/models/get_docx_tables_request_spec.rb +0 -0
- data/{client/spec → spec}/models/get_docx_tables_response_spec.rb +0 -0
- data/spec/models/get_image_info_result_spec.rb +138 -0
- data/spec/models/get_xlsx_columns_request_spec.rb +54 -0
- data/spec/models/get_xlsx_columns_response_spec.rb +48 -0
- data/spec/models/get_xlsx_images_request_spec.rb +54 -0
- data/spec/models/get_xlsx_images_response_spec.rb +48 -0
- data/spec/models/get_xlsx_rows_and_cells_request_spec.rb +54 -0
- data/spec/models/get_xlsx_rows_and_cells_response_spec.rb +48 -0
- data/spec/models/get_xlsx_styles_request_spec.rb +48 -0
- data/spec/models/get_xlsx_styles_response_spec.rb +48 -0
- data/spec/models/get_xlsx_worksheets_request_spec.rb +48 -0
- data/spec/models/get_xlsx_worksheets_response_spec.rb +48 -0
- data/{client/spec → spec}/models/html_md_result_spec.rb +0 -0
- data/{client/spec → spec}/models/html_template_application_request_spec.rb +0 -0
- data/{client/spec → spec}/models/html_template_application_response_spec.rb +0 -0
- data/{client/spec → spec}/models/html_template_operation_spec.rb +0 -0
- data/{client/spec → spec}/models/html_to_office_request_spec.rb +0 -0
- data/{client/spec → spec}/models/html_to_pdf_request_spec.rb +0 -0
- data/spec/models/insert_docx_insert_paragraph_request_spec.rb +66 -0
- data/spec/models/insert_docx_insert_paragraph_response_spec.rb +48 -0
- data/{client/spec → spec}/models/insert_docx_tables_request_spec.rb +12 -0
- data/{client/spec → spec}/models/insert_docx_tables_response_spec.rb +0 -0
- data/spec/models/insert_xlsx_worksheet_request_spec.rb +54 -0
- data/spec/models/insert_xlsx_worksheet_response_spec.rb +48 -0
- data/{client/spec → spec}/models/pdf_to_png_result_spec.rb +0 -0
- data/{client/spec → spec}/models/remove_docx_headers_and_footers_request_spec.rb +0 -0
- data/{client/spec → spec}/models/remove_docx_headers_and_footers_response_spec.rb +0 -0
- data/{client/spec → spec}/models/replace_string_request_spec.rb +0 -0
- data/{client/spec → spec}/models/screenshot_request_spec.rb +0 -0
- data/{client/spec → spec}/models/viewer_response_spec.rb +0 -0
- data/spec/models/xlsx_image_spec.rb +66 -0
- data/spec/models/xlsx_spreadsheet_cell_spec.rb +66 -0
- data/spec/models/xlsx_spreadsheet_column_spec.rb +48 -0
- data/spec/models/xlsx_spreadsheet_row_spec.rb +48 -0
- data/spec/models/xlsx_worksheet_spec.rb +48 -0
- data/{client/spec → spec}/spec_helper.rb +0 -0
- metadata +261 -171
- data/LICENSE +0 -201
- data/build.ps1 +0 -12
- data/client/docs/DocxInsertImageRequest.md +0 -13
- data/client/docs/InsertDocxTablesRequest.md +0 -10
- data/cloudmersiveConvertApiClient-1.2.6.gem +0 -0
- data/cloudmersiveConvertApiClient-1.2.7.gem +0 -0
- data/packageconfig.json +0 -11
- data/swagger-codegen-cli.jar +0 -0
File without changes
|
File without changes
|
File without changes
|
@@ -20,6 +20,62 @@ module CloudmersiveConvertApiClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
|
23
|
+
# Get information about an image
|
24
|
+
# Get details from an image such as size, format and MIME type, compression, EXIF data such as location, DPI, unique colors, transparency information, and more
|
25
|
+
# @param input_file Input file to perform the operation on.
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [GetImageInfoResult]
|
28
|
+
def convert_image_get_image_info(input_file, opts = {})
|
29
|
+
data, _status_code, _headers = convert_image_get_image_info_with_http_info(input_file, opts)
|
30
|
+
return data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Get information about an image
|
34
|
+
# Get details from an image such as size, format and MIME type, compression, EXIF data such as location, DPI, unique colors, transparency information, and more
|
35
|
+
# @param input_file Input file to perform the operation on.
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(GetImageInfoResult, Fixnum, Hash)>] GetImageInfoResult data, response status code and response headers
|
38
|
+
def convert_image_get_image_info_with_http_info(input_file, opts = {})
|
39
|
+
if @api_client.config.debugging
|
40
|
+
@api_client.config.logger.debug "Calling API: ConvertImageApi.convert_image_get_image_info ..."
|
41
|
+
end
|
42
|
+
# verify the required parameter 'input_file' is set
|
43
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertImageApi.convert_image_get_image_info"
|
45
|
+
end
|
46
|
+
# resource path
|
47
|
+
local_var_path = "/convert/image/get-info"
|
48
|
+
|
49
|
+
# query parameters
|
50
|
+
query_params = {}
|
51
|
+
|
52
|
+
# header parameters
|
53
|
+
header_params = {}
|
54
|
+
# HTTP header 'Accept' (if needed)
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
56
|
+
# HTTP header 'Content-Type'
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
58
|
+
|
59
|
+
# form parameters
|
60
|
+
form_params = {}
|
61
|
+
form_params["inputFile"] = input_file
|
62
|
+
|
63
|
+
# http body (model)
|
64
|
+
post_body = nil
|
65
|
+
auth_names = ['Apikey']
|
66
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
67
|
+
:header_params => header_params,
|
68
|
+
:query_params => query_params,
|
69
|
+
:form_params => form_params,
|
70
|
+
:body => post_body,
|
71
|
+
:auth_names => auth_names,
|
72
|
+
:return_type => 'GetImageInfoResult')
|
73
|
+
if @api_client.config.debugging
|
74
|
+
@api_client.config.logger.debug "API called: ConvertImageApi#convert_image_get_image_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
75
|
+
end
|
76
|
+
return data, status_code, headers
|
77
|
+
end
|
78
|
+
|
23
79
|
# Image format conversion
|
24
80
|
# Convert between over 100 file formats, including key formats such as Photoshop (PSD), PNG, JPG, GIF, NEF, and BMP.
|
25
81
|
# @param format1 Input file format as a 3+ letter file extension. Supported formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV
|
@@ -87,5 +143,67 @@ module CloudmersiveConvertApiClient
|
|
87
143
|
end
|
88
144
|
return data, status_code, headers
|
89
145
|
end
|
146
|
+
|
147
|
+
# Change image DPI
|
148
|
+
# Resize an image to have a different DPI
|
149
|
+
# @param dpi New DPI in pixels-per-inch, for example 300 DPI or 600 DPI
|
150
|
+
# @param input_file Input file to perform the operation on.
|
151
|
+
# @param [Hash] opts the optional parameters
|
152
|
+
# @return [String]
|
153
|
+
def convert_image_image_set_dpi(dpi, input_file, opts = {})
|
154
|
+
data, _status_code, _headers = convert_image_image_set_dpi_with_http_info(dpi, input_file, opts)
|
155
|
+
return data
|
156
|
+
end
|
157
|
+
|
158
|
+
# Change image DPI
|
159
|
+
# Resize an image to have a different DPI
|
160
|
+
# @param dpi New DPI in pixels-per-inch, for example 300 DPI or 600 DPI
|
161
|
+
# @param input_file Input file to perform the operation on.
|
162
|
+
# @param [Hash] opts the optional parameters
|
163
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
164
|
+
def convert_image_image_set_dpi_with_http_info(dpi, input_file, opts = {})
|
165
|
+
if @api_client.config.debugging
|
166
|
+
@api_client.config.logger.debug "Calling API: ConvertImageApi.convert_image_image_set_dpi ..."
|
167
|
+
end
|
168
|
+
# verify the required parameter 'dpi' is set
|
169
|
+
if @api_client.config.client_side_validation && dpi.nil?
|
170
|
+
fail ArgumentError, "Missing the required parameter 'dpi' when calling ConvertImageApi.convert_image_image_set_dpi"
|
171
|
+
end
|
172
|
+
# verify the required parameter 'input_file' is set
|
173
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
174
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertImageApi.convert_image_image_set_dpi"
|
175
|
+
end
|
176
|
+
# resource path
|
177
|
+
local_var_path = "/convert/image/set-dpi/{dpi}".sub('{' + 'dpi' + '}', dpi.to_s)
|
178
|
+
|
179
|
+
# query parameters
|
180
|
+
query_params = {}
|
181
|
+
|
182
|
+
# header parameters
|
183
|
+
header_params = {}
|
184
|
+
# HTTP header 'Accept' (if needed)
|
185
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
186
|
+
# HTTP header 'Content-Type'
|
187
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
188
|
+
|
189
|
+
# form parameters
|
190
|
+
form_params = {}
|
191
|
+
form_params["inputFile"] = input_file
|
192
|
+
|
193
|
+
# http body (model)
|
194
|
+
post_body = nil
|
195
|
+
auth_names = ['Apikey']
|
196
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
197
|
+
:header_params => header_params,
|
198
|
+
:query_params => query_params,
|
199
|
+
:form_params => form_params,
|
200
|
+
:body => post_body,
|
201
|
+
:auth_names => auth_names,
|
202
|
+
:return_type => 'String')
|
203
|
+
if @api_client.config.debugging
|
204
|
+
@api_client.config.logger.debug "API called: ConvertImageApi#convert_image_image_set_dpi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
205
|
+
end
|
206
|
+
return data, status_code, headers
|
207
|
+
end
|
90
208
|
end
|
91
209
|
end
|
File without changes
|
File without changes
|
@@ -76,6 +76,61 @@ module CloudmersiveConvertApiClient
|
|
76
76
|
return data, status_code, headers
|
77
77
|
end
|
78
78
|
|
79
|
+
# Get body from a DOCX
|
80
|
+
# Returns the body defined in the Word Document (DOCX) format file; this is the main content part of a DOCX document
|
81
|
+
# @param req_config
|
82
|
+
# @param [Hash] opts the optional parameters
|
83
|
+
# @return [GetDocxBodyResponse]
|
84
|
+
def edit_document_docx_body(req_config, opts = {})
|
85
|
+
data, _status_code, _headers = edit_document_docx_body_with_http_info(req_config, opts)
|
86
|
+
return data
|
87
|
+
end
|
88
|
+
|
89
|
+
# Get body from a DOCX
|
90
|
+
# Returns the body defined in the Word Document (DOCX) format file; this is the main content part of a DOCX document
|
91
|
+
# @param req_config
|
92
|
+
# @param [Hash] opts the optional parameters
|
93
|
+
# @return [Array<(GetDocxBodyResponse, Fixnum, Hash)>] GetDocxBodyResponse data, response status code and response headers
|
94
|
+
def edit_document_docx_body_with_http_info(req_config, opts = {})
|
95
|
+
if @api_client.config.debugging
|
96
|
+
@api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_docx_body ..."
|
97
|
+
end
|
98
|
+
# verify the required parameter 'req_config' is set
|
99
|
+
if @api_client.config.client_side_validation && req_config.nil?
|
100
|
+
fail ArgumentError, "Missing the required parameter 'req_config' when calling EditDocumentApi.edit_document_docx_body"
|
101
|
+
end
|
102
|
+
# resource path
|
103
|
+
local_var_path = "/convert/edit/docx/get-body"
|
104
|
+
|
105
|
+
# query parameters
|
106
|
+
query_params = {}
|
107
|
+
|
108
|
+
# header parameters
|
109
|
+
header_params = {}
|
110
|
+
# HTTP header 'Accept' (if needed)
|
111
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
112
|
+
# HTTP header 'Content-Type'
|
113
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
114
|
+
|
115
|
+
# form parameters
|
116
|
+
form_params = {}
|
117
|
+
|
118
|
+
# http body (model)
|
119
|
+
post_body = @api_client.object_to_http_body(req_config)
|
120
|
+
auth_names = ['Apikey']
|
121
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
122
|
+
:header_params => header_params,
|
123
|
+
:query_params => query_params,
|
124
|
+
:form_params => form_params,
|
125
|
+
:body => post_body,
|
126
|
+
:auth_names => auth_names,
|
127
|
+
:return_type => 'GetDocxBodyResponse')
|
128
|
+
if @api_client.config.debugging
|
129
|
+
@api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_body\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
130
|
+
end
|
131
|
+
return data, status_code, headers
|
132
|
+
end
|
133
|
+
|
79
134
|
# Get content of a footer from a DOCX
|
80
135
|
# Returns the footer content from a Word Document (DOCX) format file
|
81
136
|
# @param req_config
|
@@ -131,6 +186,116 @@ module CloudmersiveConvertApiClient
|
|
131
186
|
return data, status_code, headers
|
132
187
|
end
|
133
188
|
|
189
|
+
# Get images from a DOCX
|
190
|
+
# Returns the images defined in the Word Document (DOCX) format file
|
191
|
+
# @param req_config
|
192
|
+
# @param [Hash] opts the optional parameters
|
193
|
+
# @return [GetDocxImagesResponse]
|
194
|
+
def edit_document_docx_get_images(req_config, opts = {})
|
195
|
+
data, _status_code, _headers = edit_document_docx_get_images_with_http_info(req_config, opts)
|
196
|
+
return data
|
197
|
+
end
|
198
|
+
|
199
|
+
# Get images from a DOCX
|
200
|
+
# Returns the images defined in the Word Document (DOCX) format file
|
201
|
+
# @param req_config
|
202
|
+
# @param [Hash] opts the optional parameters
|
203
|
+
# @return [Array<(GetDocxImagesResponse, Fixnum, Hash)>] GetDocxImagesResponse data, response status code and response headers
|
204
|
+
def edit_document_docx_get_images_with_http_info(req_config, opts = {})
|
205
|
+
if @api_client.config.debugging
|
206
|
+
@api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_docx_get_images ..."
|
207
|
+
end
|
208
|
+
# verify the required parameter 'req_config' is set
|
209
|
+
if @api_client.config.client_side_validation && req_config.nil?
|
210
|
+
fail ArgumentError, "Missing the required parameter 'req_config' when calling EditDocumentApi.edit_document_docx_get_images"
|
211
|
+
end
|
212
|
+
# resource path
|
213
|
+
local_var_path = "/convert/edit/docx/get-images"
|
214
|
+
|
215
|
+
# query parameters
|
216
|
+
query_params = {}
|
217
|
+
|
218
|
+
# header parameters
|
219
|
+
header_params = {}
|
220
|
+
# HTTP header 'Accept' (if needed)
|
221
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
222
|
+
# HTTP header 'Content-Type'
|
223
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
224
|
+
|
225
|
+
# form parameters
|
226
|
+
form_params = {}
|
227
|
+
|
228
|
+
# http body (model)
|
229
|
+
post_body = @api_client.object_to_http_body(req_config)
|
230
|
+
auth_names = ['Apikey']
|
231
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
232
|
+
:header_params => header_params,
|
233
|
+
:query_params => query_params,
|
234
|
+
:form_params => form_params,
|
235
|
+
:body => post_body,
|
236
|
+
:auth_names => auth_names,
|
237
|
+
:return_type => 'GetDocxImagesResponse')
|
238
|
+
if @api_client.config.debugging
|
239
|
+
@api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_get_images\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
240
|
+
end
|
241
|
+
return data, status_code, headers
|
242
|
+
end
|
243
|
+
|
244
|
+
# Get sections from a DOCX
|
245
|
+
# Returns the sections defined in the Word Document (DOCX) format file
|
246
|
+
# @param req_config
|
247
|
+
# @param [Hash] opts the optional parameters
|
248
|
+
# @return [GetDocxSectionsResponse]
|
249
|
+
def edit_document_docx_get_sections(req_config, opts = {})
|
250
|
+
data, _status_code, _headers = edit_document_docx_get_sections_with_http_info(req_config, opts)
|
251
|
+
return data
|
252
|
+
end
|
253
|
+
|
254
|
+
# Get sections from a DOCX
|
255
|
+
# Returns the sections defined in the Word Document (DOCX) format file
|
256
|
+
# @param req_config
|
257
|
+
# @param [Hash] opts the optional parameters
|
258
|
+
# @return [Array<(GetDocxSectionsResponse, Fixnum, Hash)>] GetDocxSectionsResponse data, response status code and response headers
|
259
|
+
def edit_document_docx_get_sections_with_http_info(req_config, opts = {})
|
260
|
+
if @api_client.config.debugging
|
261
|
+
@api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_docx_get_sections ..."
|
262
|
+
end
|
263
|
+
# verify the required parameter 'req_config' is set
|
264
|
+
if @api_client.config.client_side_validation && req_config.nil?
|
265
|
+
fail ArgumentError, "Missing the required parameter 'req_config' when calling EditDocumentApi.edit_document_docx_get_sections"
|
266
|
+
end
|
267
|
+
# resource path
|
268
|
+
local_var_path = "/convert/edit/docx/get-sections"
|
269
|
+
|
270
|
+
# query parameters
|
271
|
+
query_params = {}
|
272
|
+
|
273
|
+
# header parameters
|
274
|
+
header_params = {}
|
275
|
+
# HTTP header 'Accept' (if needed)
|
276
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
277
|
+
# HTTP header 'Content-Type'
|
278
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
279
|
+
|
280
|
+
# form parameters
|
281
|
+
form_params = {}
|
282
|
+
|
283
|
+
# http body (model)
|
284
|
+
post_body = @api_client.object_to_http_body(req_config)
|
285
|
+
auth_names = ['Apikey']
|
286
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
287
|
+
:header_params => header_params,
|
288
|
+
:query_params => query_params,
|
289
|
+
:form_params => form_params,
|
290
|
+
:body => post_body,
|
291
|
+
:auth_names => auth_names,
|
292
|
+
:return_type => 'GetDocxSectionsResponse')
|
293
|
+
if @api_client.config.debugging
|
294
|
+
@api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_get_sections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
295
|
+
end
|
296
|
+
return data, status_code, headers
|
297
|
+
end
|
298
|
+
|
134
299
|
# Get styles from a DOCX
|
135
300
|
# Returns the styles defined in the Word Document (DOCX) format file
|
136
301
|
# @param req_config
|
@@ -296,6 +461,61 @@ module CloudmersiveConvertApiClient
|
|
296
461
|
return data, status_code, headers
|
297
462
|
end
|
298
463
|
|
464
|
+
# Insert a new paragraph into a DOCX
|
465
|
+
# Adds a new paragraph into a DOCX and returns the result. You can insert at the beginning/end of a document, or before/after an existing object using its Path (location within the document).
|
466
|
+
# @param req_config
|
467
|
+
# @param [Hash] opts the optional parameters
|
468
|
+
# @return [InsertDocxInsertParagraphResponse]
|
469
|
+
def edit_document_docx_insert_paragraph(req_config, opts = {})
|
470
|
+
data, _status_code, _headers = edit_document_docx_insert_paragraph_with_http_info(req_config, opts)
|
471
|
+
return data
|
472
|
+
end
|
473
|
+
|
474
|
+
# Insert a new paragraph into a DOCX
|
475
|
+
# Adds a new paragraph into a DOCX and returns the result. You can insert at the beginning/end of a document, or before/after an existing object using its Path (location within the document).
|
476
|
+
# @param req_config
|
477
|
+
# @param [Hash] opts the optional parameters
|
478
|
+
# @return [Array<(InsertDocxInsertParagraphResponse, Fixnum, Hash)>] InsertDocxInsertParagraphResponse data, response status code and response headers
|
479
|
+
def edit_document_docx_insert_paragraph_with_http_info(req_config, opts = {})
|
480
|
+
if @api_client.config.debugging
|
481
|
+
@api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_docx_insert_paragraph ..."
|
482
|
+
end
|
483
|
+
# verify the required parameter 'req_config' is set
|
484
|
+
if @api_client.config.client_side_validation && req_config.nil?
|
485
|
+
fail ArgumentError, "Missing the required parameter 'req_config' when calling EditDocumentApi.edit_document_docx_insert_paragraph"
|
486
|
+
end
|
487
|
+
# resource path
|
488
|
+
local_var_path = "/convert/edit/docx/insert-paragraph"
|
489
|
+
|
490
|
+
# query parameters
|
491
|
+
query_params = {}
|
492
|
+
|
493
|
+
# header parameters
|
494
|
+
header_params = {}
|
495
|
+
# HTTP header 'Accept' (if needed)
|
496
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
497
|
+
# HTTP header 'Content-Type'
|
498
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
499
|
+
|
500
|
+
# form parameters
|
501
|
+
form_params = {}
|
502
|
+
|
503
|
+
# http body (model)
|
504
|
+
post_body = @api_client.object_to_http_body(req_config)
|
505
|
+
auth_names = ['Apikey']
|
506
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
507
|
+
:header_params => header_params,
|
508
|
+
:query_params => query_params,
|
509
|
+
:form_params => form_params,
|
510
|
+
:body => post_body,
|
511
|
+
:auth_names => auth_names,
|
512
|
+
:return_type => 'InsertDocxInsertParagraphResponse')
|
513
|
+
if @api_client.config.debugging
|
514
|
+
@api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_insert_paragraph\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
515
|
+
end
|
516
|
+
return data, status_code, headers
|
517
|
+
end
|
518
|
+
|
299
519
|
# Insert a new table into a DOCX
|
300
520
|
# Adds a new table into a DOCX and returns the result
|
301
521
|
# @param req_config
|
@@ -406,6 +626,61 @@ module CloudmersiveConvertApiClient
|
|
406
626
|
return data, status_code, headers
|
407
627
|
end
|
408
628
|
|
629
|
+
# Delete any object in a DOCX
|
630
|
+
# Delete any object, such as a paragraph, table, image, etc. from a Word Document (DOCX). Pass in the Path of the object you would like to delete. You can call other functions such as Get-Tables, Get-Images, Get-Body, etc. to get the paths of the objects in the document.
|
631
|
+
# @param req_config
|
632
|
+
# @param [Hash] opts the optional parameters
|
633
|
+
# @return [DocxRemoveObjectResponse]
|
634
|
+
def edit_document_docx_remove_object(req_config, opts = {})
|
635
|
+
data, _status_code, _headers = edit_document_docx_remove_object_with_http_info(req_config, opts)
|
636
|
+
return data
|
637
|
+
end
|
638
|
+
|
639
|
+
# Delete any object in a DOCX
|
640
|
+
# Delete any object, such as a paragraph, table, image, etc. from a Word Document (DOCX). Pass in the Path of the object you would like to delete. You can call other functions such as Get-Tables, Get-Images, Get-Body, etc. to get the paths of the objects in the document.
|
641
|
+
# @param req_config
|
642
|
+
# @param [Hash] opts the optional parameters
|
643
|
+
# @return [Array<(DocxRemoveObjectResponse, Fixnum, Hash)>] DocxRemoveObjectResponse data, response status code and response headers
|
644
|
+
def edit_document_docx_remove_object_with_http_info(req_config, opts = {})
|
645
|
+
if @api_client.config.debugging
|
646
|
+
@api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_docx_remove_object ..."
|
647
|
+
end
|
648
|
+
# verify the required parameter 'req_config' is set
|
649
|
+
if @api_client.config.client_side_validation && req_config.nil?
|
650
|
+
fail ArgumentError, "Missing the required parameter 'req_config' when calling EditDocumentApi.edit_document_docx_remove_object"
|
651
|
+
end
|
652
|
+
# resource path
|
653
|
+
local_var_path = "/convert/edit/docx/remove-object"
|
654
|
+
|
655
|
+
# query parameters
|
656
|
+
query_params = {}
|
657
|
+
|
658
|
+
# header parameters
|
659
|
+
header_params = {}
|
660
|
+
# HTTP header 'Accept' (if needed)
|
661
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
662
|
+
# HTTP header 'Content-Type'
|
663
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
664
|
+
|
665
|
+
# form parameters
|
666
|
+
form_params = {}
|
667
|
+
|
668
|
+
# http body (model)
|
669
|
+
post_body = @api_client.object_to_http_body(req_config)
|
670
|
+
auth_names = ['Apikey']
|
671
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
672
|
+
:header_params => header_params,
|
673
|
+
:query_params => query_params,
|
674
|
+
:form_params => form_params,
|
675
|
+
:body => post_body,
|
676
|
+
:auth_names => auth_names,
|
677
|
+
:return_type => 'DocxRemoveObjectResponse')
|
678
|
+
if @api_client.config.debugging
|
679
|
+
@api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_remove_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
680
|
+
end
|
681
|
+
return data, status_code, headers
|
682
|
+
end
|
683
|
+
|
409
684
|
# Replace string in DOCX
|
410
685
|
# Replace all instances of a string in an Office Word Document (docx)
|
411
686
|
# @param req_config
|
@@ -680,5 +955,335 @@ module CloudmersiveConvertApiClient
|
|
680
955
|
end
|
681
956
|
return data, status_code, headers
|
682
957
|
end
|
958
|
+
|
959
|
+
# Get rows and cells from a XLSX worksheet
|
960
|
+
# Returns the rows and cells defined in the Excel Spreadsheet worksheet
|
961
|
+
# @param input
|
962
|
+
# @param [Hash] opts the optional parameters
|
963
|
+
# @return [GetXlsxColumnsResponse]
|
964
|
+
def edit_document_xlsx_get_columns(input, opts = {})
|
965
|
+
data, _status_code, _headers = edit_document_xlsx_get_columns_with_http_info(input, opts)
|
966
|
+
return data
|
967
|
+
end
|
968
|
+
|
969
|
+
# Get rows and cells from a XLSX worksheet
|
970
|
+
# Returns the rows and cells defined in the Excel Spreadsheet worksheet
|
971
|
+
# @param input
|
972
|
+
# @param [Hash] opts the optional parameters
|
973
|
+
# @return [Array<(GetXlsxColumnsResponse, Fixnum, Hash)>] GetXlsxColumnsResponse data, response status code and response headers
|
974
|
+
def edit_document_xlsx_get_columns_with_http_info(input, opts = {})
|
975
|
+
if @api_client.config.debugging
|
976
|
+
@api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_xlsx_get_columns ..."
|
977
|
+
end
|
978
|
+
# verify the required parameter 'input' is set
|
979
|
+
if @api_client.config.client_side_validation && input.nil?
|
980
|
+
fail ArgumentError, "Missing the required parameter 'input' when calling EditDocumentApi.edit_document_xlsx_get_columns"
|
981
|
+
end
|
982
|
+
# resource path
|
983
|
+
local_var_path = "/convert/edit/xlsx/get-columns"
|
984
|
+
|
985
|
+
# query parameters
|
986
|
+
query_params = {}
|
987
|
+
|
988
|
+
# header parameters
|
989
|
+
header_params = {}
|
990
|
+
# HTTP header 'Accept' (if needed)
|
991
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
992
|
+
# HTTP header 'Content-Type'
|
993
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
994
|
+
|
995
|
+
# form parameters
|
996
|
+
form_params = {}
|
997
|
+
|
998
|
+
# http body (model)
|
999
|
+
post_body = @api_client.object_to_http_body(input)
|
1000
|
+
auth_names = ['Apikey']
|
1001
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1002
|
+
:header_params => header_params,
|
1003
|
+
:query_params => query_params,
|
1004
|
+
:form_params => form_params,
|
1005
|
+
:body => post_body,
|
1006
|
+
:auth_names => auth_names,
|
1007
|
+
:return_type => 'GetXlsxColumnsResponse')
|
1008
|
+
if @api_client.config.debugging
|
1009
|
+
@api_client.config.logger.debug "API called: EditDocumentApi#edit_document_xlsx_get_columns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1010
|
+
end
|
1011
|
+
return data, status_code, headers
|
1012
|
+
end
|
1013
|
+
|
1014
|
+
# Get images from a XLSX worksheet
|
1015
|
+
# Returns the images defined in the Excel Spreadsheet worksheet
|
1016
|
+
# @param input
|
1017
|
+
# @param [Hash] opts the optional parameters
|
1018
|
+
# @return [GetXlsxImagesResponse]
|
1019
|
+
def edit_document_xlsx_get_images(input, opts = {})
|
1020
|
+
data, _status_code, _headers = edit_document_xlsx_get_images_with_http_info(input, opts)
|
1021
|
+
return data
|
1022
|
+
end
|
1023
|
+
|
1024
|
+
# Get images from a XLSX worksheet
|
1025
|
+
# Returns the images defined in the Excel Spreadsheet worksheet
|
1026
|
+
# @param input
|
1027
|
+
# @param [Hash] opts the optional parameters
|
1028
|
+
# @return [Array<(GetXlsxImagesResponse, Fixnum, Hash)>] GetXlsxImagesResponse data, response status code and response headers
|
1029
|
+
def edit_document_xlsx_get_images_with_http_info(input, opts = {})
|
1030
|
+
if @api_client.config.debugging
|
1031
|
+
@api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_xlsx_get_images ..."
|
1032
|
+
end
|
1033
|
+
# verify the required parameter 'input' is set
|
1034
|
+
if @api_client.config.client_side_validation && input.nil?
|
1035
|
+
fail ArgumentError, "Missing the required parameter 'input' when calling EditDocumentApi.edit_document_xlsx_get_images"
|
1036
|
+
end
|
1037
|
+
# resource path
|
1038
|
+
local_var_path = "/convert/edit/xlsx/get-images"
|
1039
|
+
|
1040
|
+
# query parameters
|
1041
|
+
query_params = {}
|
1042
|
+
|
1043
|
+
# header parameters
|
1044
|
+
header_params = {}
|
1045
|
+
# HTTP header 'Accept' (if needed)
|
1046
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
1047
|
+
# HTTP header 'Content-Type'
|
1048
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
1049
|
+
|
1050
|
+
# form parameters
|
1051
|
+
form_params = {}
|
1052
|
+
|
1053
|
+
# http body (model)
|
1054
|
+
post_body = @api_client.object_to_http_body(input)
|
1055
|
+
auth_names = ['Apikey']
|
1056
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1057
|
+
:header_params => header_params,
|
1058
|
+
:query_params => query_params,
|
1059
|
+
:form_params => form_params,
|
1060
|
+
:body => post_body,
|
1061
|
+
:auth_names => auth_names,
|
1062
|
+
:return_type => 'GetXlsxImagesResponse')
|
1063
|
+
if @api_client.config.debugging
|
1064
|
+
@api_client.config.logger.debug "API called: EditDocumentApi#edit_document_xlsx_get_images\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1065
|
+
end
|
1066
|
+
return data, status_code, headers
|
1067
|
+
end
|
1068
|
+
|
1069
|
+
# Get rows and cells from a XLSX worksheet
|
1070
|
+
# Returns the rows and cells defined in the Excel Spreadsheet worksheet
|
1071
|
+
# @param input
|
1072
|
+
# @param [Hash] opts the optional parameters
|
1073
|
+
# @return [GetXlsxRowsAndCellsResponse]
|
1074
|
+
def edit_document_xlsx_get_rows_and_cells(input, opts = {})
|
1075
|
+
data, _status_code, _headers = edit_document_xlsx_get_rows_and_cells_with_http_info(input, opts)
|
1076
|
+
return data
|
1077
|
+
end
|
1078
|
+
|
1079
|
+
# Get rows and cells from a XLSX worksheet
|
1080
|
+
# Returns the rows and cells defined in the Excel Spreadsheet worksheet
|
1081
|
+
# @param input
|
1082
|
+
# @param [Hash] opts the optional parameters
|
1083
|
+
# @return [Array<(GetXlsxRowsAndCellsResponse, Fixnum, Hash)>] GetXlsxRowsAndCellsResponse data, response status code and response headers
|
1084
|
+
def edit_document_xlsx_get_rows_and_cells_with_http_info(input, opts = {})
|
1085
|
+
if @api_client.config.debugging
|
1086
|
+
@api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_xlsx_get_rows_and_cells ..."
|
1087
|
+
end
|
1088
|
+
# verify the required parameter 'input' is set
|
1089
|
+
if @api_client.config.client_side_validation && input.nil?
|
1090
|
+
fail ArgumentError, "Missing the required parameter 'input' when calling EditDocumentApi.edit_document_xlsx_get_rows_and_cells"
|
1091
|
+
end
|
1092
|
+
# resource path
|
1093
|
+
local_var_path = "/convert/edit/xlsx/get-rows-and-cells"
|
1094
|
+
|
1095
|
+
# query parameters
|
1096
|
+
query_params = {}
|
1097
|
+
|
1098
|
+
# header parameters
|
1099
|
+
header_params = {}
|
1100
|
+
# HTTP header 'Accept' (if needed)
|
1101
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
1102
|
+
# HTTP header 'Content-Type'
|
1103
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
1104
|
+
|
1105
|
+
# form parameters
|
1106
|
+
form_params = {}
|
1107
|
+
|
1108
|
+
# http body (model)
|
1109
|
+
post_body = @api_client.object_to_http_body(input)
|
1110
|
+
auth_names = ['Apikey']
|
1111
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1112
|
+
:header_params => header_params,
|
1113
|
+
:query_params => query_params,
|
1114
|
+
:form_params => form_params,
|
1115
|
+
:body => post_body,
|
1116
|
+
:auth_names => auth_names,
|
1117
|
+
:return_type => 'GetXlsxRowsAndCellsResponse')
|
1118
|
+
if @api_client.config.debugging
|
1119
|
+
@api_client.config.logger.debug "API called: EditDocumentApi#edit_document_xlsx_get_rows_and_cells\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1120
|
+
end
|
1121
|
+
return data, status_code, headers
|
1122
|
+
end
|
1123
|
+
|
1124
|
+
# Get styles from a XLSX worksheet
|
1125
|
+
# Returns the style defined in the Excel Spreadsheet
|
1126
|
+
# @param input
|
1127
|
+
# @param [Hash] opts the optional parameters
|
1128
|
+
# @return [GetXlsxStylesResponse]
|
1129
|
+
def edit_document_xlsx_get_styles(input, opts = {})
|
1130
|
+
data, _status_code, _headers = edit_document_xlsx_get_styles_with_http_info(input, opts)
|
1131
|
+
return data
|
1132
|
+
end
|
1133
|
+
|
1134
|
+
# Get styles from a XLSX worksheet
|
1135
|
+
# Returns the style defined in the Excel Spreadsheet
|
1136
|
+
# @param input
|
1137
|
+
# @param [Hash] opts the optional parameters
|
1138
|
+
# @return [Array<(GetXlsxStylesResponse, Fixnum, Hash)>] GetXlsxStylesResponse data, response status code and response headers
|
1139
|
+
def edit_document_xlsx_get_styles_with_http_info(input, opts = {})
|
1140
|
+
if @api_client.config.debugging
|
1141
|
+
@api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_xlsx_get_styles ..."
|
1142
|
+
end
|
1143
|
+
# verify the required parameter 'input' is set
|
1144
|
+
if @api_client.config.client_side_validation && input.nil?
|
1145
|
+
fail ArgumentError, "Missing the required parameter 'input' when calling EditDocumentApi.edit_document_xlsx_get_styles"
|
1146
|
+
end
|
1147
|
+
# resource path
|
1148
|
+
local_var_path = "/convert/edit/xlsx/get-styles"
|
1149
|
+
|
1150
|
+
# query parameters
|
1151
|
+
query_params = {}
|
1152
|
+
|
1153
|
+
# header parameters
|
1154
|
+
header_params = {}
|
1155
|
+
# HTTP header 'Accept' (if needed)
|
1156
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
1157
|
+
# HTTP header 'Content-Type'
|
1158
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
1159
|
+
|
1160
|
+
# form parameters
|
1161
|
+
form_params = {}
|
1162
|
+
|
1163
|
+
# http body (model)
|
1164
|
+
post_body = @api_client.object_to_http_body(input)
|
1165
|
+
auth_names = ['Apikey']
|
1166
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1167
|
+
:header_params => header_params,
|
1168
|
+
:query_params => query_params,
|
1169
|
+
:form_params => form_params,
|
1170
|
+
:body => post_body,
|
1171
|
+
:auth_names => auth_names,
|
1172
|
+
:return_type => 'GetXlsxStylesResponse')
|
1173
|
+
if @api_client.config.debugging
|
1174
|
+
@api_client.config.logger.debug "API called: EditDocumentApi#edit_document_xlsx_get_styles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1175
|
+
end
|
1176
|
+
return data, status_code, headers
|
1177
|
+
end
|
1178
|
+
|
1179
|
+
# Get worksheets from a XLSX
|
1180
|
+
# Returns the worksheets (tabs) defined in the Excel Spreadsheet (XLSX) format file
|
1181
|
+
# @param input
|
1182
|
+
# @param [Hash] opts the optional parameters
|
1183
|
+
# @return [GetXlsxWorksheetsResponse]
|
1184
|
+
def edit_document_xlsx_get_worksheets(input, opts = {})
|
1185
|
+
data, _status_code, _headers = edit_document_xlsx_get_worksheets_with_http_info(input, opts)
|
1186
|
+
return data
|
1187
|
+
end
|
1188
|
+
|
1189
|
+
# Get worksheets from a XLSX
|
1190
|
+
# Returns the worksheets (tabs) defined in the Excel Spreadsheet (XLSX) format file
|
1191
|
+
# @param input
|
1192
|
+
# @param [Hash] opts the optional parameters
|
1193
|
+
# @return [Array<(GetXlsxWorksheetsResponse, Fixnum, Hash)>] GetXlsxWorksheetsResponse data, response status code and response headers
|
1194
|
+
def edit_document_xlsx_get_worksheets_with_http_info(input, opts = {})
|
1195
|
+
if @api_client.config.debugging
|
1196
|
+
@api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_xlsx_get_worksheets ..."
|
1197
|
+
end
|
1198
|
+
# verify the required parameter 'input' is set
|
1199
|
+
if @api_client.config.client_side_validation && input.nil?
|
1200
|
+
fail ArgumentError, "Missing the required parameter 'input' when calling EditDocumentApi.edit_document_xlsx_get_worksheets"
|
1201
|
+
end
|
1202
|
+
# resource path
|
1203
|
+
local_var_path = "/convert/edit/xlsx/get-worksheets"
|
1204
|
+
|
1205
|
+
# query parameters
|
1206
|
+
query_params = {}
|
1207
|
+
|
1208
|
+
# header parameters
|
1209
|
+
header_params = {}
|
1210
|
+
# HTTP header 'Accept' (if needed)
|
1211
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
1212
|
+
# HTTP header 'Content-Type'
|
1213
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
1214
|
+
|
1215
|
+
# form parameters
|
1216
|
+
form_params = {}
|
1217
|
+
|
1218
|
+
# http body (model)
|
1219
|
+
post_body = @api_client.object_to_http_body(input)
|
1220
|
+
auth_names = ['Apikey']
|
1221
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1222
|
+
:header_params => header_params,
|
1223
|
+
:query_params => query_params,
|
1224
|
+
:form_params => form_params,
|
1225
|
+
:body => post_body,
|
1226
|
+
:auth_names => auth_names,
|
1227
|
+
:return_type => 'GetXlsxWorksheetsResponse')
|
1228
|
+
if @api_client.config.debugging
|
1229
|
+
@api_client.config.logger.debug "API called: EditDocumentApi#edit_document_xlsx_get_worksheets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1230
|
+
end
|
1231
|
+
return data, status_code, headers
|
1232
|
+
end
|
1233
|
+
|
1234
|
+
# Insert a new worksheet into an XLSX spreadsheet
|
1235
|
+
# Inserts a new worksheet into an Excel Spreadsheet
|
1236
|
+
# @param input
|
1237
|
+
# @param [Hash] opts the optional parameters
|
1238
|
+
# @return [InsertXlsxWorksheetResponse]
|
1239
|
+
def edit_document_xlsx_insert_worksheet(input, opts = {})
|
1240
|
+
data, _status_code, _headers = edit_document_xlsx_insert_worksheet_with_http_info(input, opts)
|
1241
|
+
return data
|
1242
|
+
end
|
1243
|
+
|
1244
|
+
# Insert a new worksheet into an XLSX spreadsheet
|
1245
|
+
# Inserts a new worksheet into an Excel Spreadsheet
|
1246
|
+
# @param input
|
1247
|
+
# @param [Hash] opts the optional parameters
|
1248
|
+
# @return [Array<(InsertXlsxWorksheetResponse, Fixnum, Hash)>] InsertXlsxWorksheetResponse data, response status code and response headers
|
1249
|
+
def edit_document_xlsx_insert_worksheet_with_http_info(input, opts = {})
|
1250
|
+
if @api_client.config.debugging
|
1251
|
+
@api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_xlsx_insert_worksheet ..."
|
1252
|
+
end
|
1253
|
+
# verify the required parameter 'input' is set
|
1254
|
+
if @api_client.config.client_side_validation && input.nil?
|
1255
|
+
fail ArgumentError, "Missing the required parameter 'input' when calling EditDocumentApi.edit_document_xlsx_insert_worksheet"
|
1256
|
+
end
|
1257
|
+
# resource path
|
1258
|
+
local_var_path = "/convert/edit/xlsx/insert-worksheet"
|
1259
|
+
|
1260
|
+
# query parameters
|
1261
|
+
query_params = {}
|
1262
|
+
|
1263
|
+
# header parameters
|
1264
|
+
header_params = {}
|
1265
|
+
# HTTP header 'Accept' (if needed)
|
1266
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
1267
|
+
# HTTP header 'Content-Type'
|
1268
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
1269
|
+
|
1270
|
+
# form parameters
|
1271
|
+
form_params = {}
|
1272
|
+
|
1273
|
+
# http body (model)
|
1274
|
+
post_body = @api_client.object_to_http_body(input)
|
1275
|
+
auth_names = ['Apikey']
|
1276
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1277
|
+
:header_params => header_params,
|
1278
|
+
:query_params => query_params,
|
1279
|
+
:form_params => form_params,
|
1280
|
+
:body => post_body,
|
1281
|
+
:auth_names => auth_names,
|
1282
|
+
:return_type => 'InsertXlsxWorksheetResponse')
|
1283
|
+
if @api_client.config.debugging
|
1284
|
+
@api_client.config.logger.debug "API called: EditDocumentApi#edit_document_xlsx_insert_worksheet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1285
|
+
end
|
1286
|
+
return data, status_code, headers
|
1287
|
+
end
|
683
1288
|
end
|
684
1289
|
end
|