From d551db237b6e42626de0fd87f990c9f052d1bf05 Mon Sep 17 00:00:00 2001 From: Cloudmersive <35204726+Cloudmersive@users.noreply.github.com> Date: Sun, 15 Dec 2019 21:39:10 -0800 Subject: [PATCH] 2.2.4 --- README.md | 9 +- cloudmersive_convert_api_client/__init__.py | 2 + .../api/convert_data_api.py | 107 +++++++- .../api/convert_document_api.py | 99 ++++++++ .../api/edit_document_api.py | 103 +++++++- cloudmersive_convert_api_client/api_client.py | 2 +- .../configuration.py | 2 +- .../models/__init__.py | 2 + .../models/docx_insert_image_request.py | 62 ++++- .../models/get_xlsx_cell_request.py | 233 ++++++++++++++++++ .../models/get_xlsx_cell_response.py | 147 +++++++++++ .../models/get_xlsx_columns_response.py | 4 +- .../models/get_xlsx_images_response.py | 4 +- .../get_xlsx_rows_and_cells_response.py | 4 +- docs/ConvertDataApi.md | 63 ++++- docs/ConvertDocumentApi.md | 55 +++++ docs/DocxInsertImageRequest.md | 2 + docs/EditDocumentApi.md | 61 ++++- docs/GetXlsxCellRequest.md | 14 ++ docs/GetXlsxCellResponse.md | 11 + docs/GetXlsxColumnsResponse.md | 2 +- docs/GetXlsxImagesResponse.md | 2 +- docs/GetXlsxRowsAndCellsResponse.md | 2 +- packageconfig.json | 2 +- setup.py | 2 +- test/test_get_xlsx_cell_request.py | 40 +++ test/test_get_xlsx_cell_response.py | 40 +++ 27 files changed, 1045 insertions(+), 31 deletions(-) create mode 100644 cloudmersive_convert_api_client/models/get_xlsx_cell_request.py create mode 100644 cloudmersive_convert_api_client/models/get_xlsx_cell_response.py create mode 100644 docs/GetXlsxCellRequest.md create mode 100644 docs/GetXlsxCellResponse.md create mode 100644 test/test_get_xlsx_cell_request.py create mode 100644 test/test_get_xlsx_cell_response.py diff --git a/README.md b/README.md index 118ba23..21169ef 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Convert API lets you effortlessly convert file formats and types. This Python package provides a native API client for [Cloudmersive Document Conversion](https://www.cloudmersive.com/convert-api) - API version: v1 -- Package version: 2.2.3 +- Package version: 2.2.4 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. @@ -79,6 +79,7 @@ Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *CompareDocumentApi* | [**compare_document_docx**](docs/CompareDocumentApi.md#compare_document_docx) | **POST** /convert/compare/docx | Compare Two Word DOCX *ConvertDataApi* | [**convert_data_csv_to_json**](docs/ConvertDataApi.md#convert_data_csv_to_json) | **POST** /convert/csv/to/json | Convert CSV to JSON conversion +*ConvertDataApi* | [**convert_data_json_to_xml**](docs/ConvertDataApi.md#convert_data_json_to_xml) | **POST** /convert/json/to/xml | Convert JSON to XML conversion *ConvertDataApi* | [**convert_data_xls_to_json**](docs/ConvertDataApi.md#convert_data_xls_to_json) | **POST** /convert/xls/to/json | Convert Excel (97-2003) XLS to JSON conversion *ConvertDataApi* | [**convert_data_xlsx_to_json**](docs/ConvertDataApi.md#convert_data_xlsx_to_json) | **POST** /convert/xlsx/to/json | Convert Excel XLSX to JSON conversion *ConvertDataApi* | [**convert_data_xml_to_json**](docs/ConvertDataApi.md#convert_data_xml_to_json) | **POST** /convert/xml/to/json | Convert XML to JSON conversion @@ -94,6 +95,7 @@ Class | Method | HTTP request | Description *ConvertDocumentApi* | [**convert_document_html_to_pdf**](docs/ConvertDocumentApi.md#convert_document_html_to_pdf) | **POST** /convert/html/to/pdf | Convert HTML to PDF Document *ConvertDocumentApi* | [**convert_document_html_to_png**](docs/ConvertDocumentApi.md#convert_document_html_to_png) | **POST** /convert/html/to/png | Convert HTML to PNG image array *ConvertDocumentApi* | [**convert_document_pdf_to_docx**](docs/ConvertDocumentApi.md#convert_document_pdf_to_docx) | **POST** /convert/pdf/to/docx | Convert PDF to Word DOCX Document +*ConvertDocumentApi* | [**convert_document_pdf_to_docx_rasterize**](docs/ConvertDocumentApi.md#convert_document_pdf_to_docx_rasterize) | **POST** /convert/pdf/to/docx/rasterize | Convert PDF to Word DOCX Document based on rasterized version of the PDF *ConvertDocumentApi* | [**convert_document_pdf_to_png_array**](docs/ConvertDocumentApi.md#convert_document_pdf_to_png_array) | **POST** /convert/pdf/to/png | Convert PDF to PNG Image Array *ConvertDocumentApi* | [**convert_document_pdf_to_png_single**](docs/ConvertDocumentApi.md#convert_document_pdf_to_png_single) | **POST** /convert/pdf/to/png/merge-single | Convert PDF to Single PNG image *ConvertDocumentApi* | [**convert_document_pdf_to_pptx**](docs/ConvertDocumentApi.md#convert_document_pdf_to_pptx) | **POST** /convert/pdf/to/pptx | Convert PDF to PowerPoint PPTX Presentation @@ -149,9 +151,10 @@ Class | Method | HTTP request | Description *EditDocumentApi* | [**edit_document_finish_editing**](docs/EditDocumentApi.md#edit_document_finish_editing) | **POST** /convert/edit/finish-editing | Download result from document editing *EditDocumentApi* | [**edit_document_pptx_replace**](docs/EditDocumentApi.md#edit_document_pptx_replace) | **POST** /convert/edit/pptx/replace-all | Replace string in PowerPoint PPTX presentation *EditDocumentApi* | [**edit_document_xlsx_create_blank_spreadsheet**](docs/EditDocumentApi.md#edit_document_xlsx_create_blank_spreadsheet) | **POST** /convert/edit/xlsx/create/blank | Create a blank Excel XLSX spreadsheet +*EditDocumentApi* | [**edit_document_xlsx_get_cell_by_index**](docs/EditDocumentApi.md#edit_document_xlsx_get_cell_by_index) | **POST** /convert/edit/xlsx/get-cell/by-index | Get cell from an Excel XLSX spreadsheet, worksheet by index *EditDocumentApi* | [**edit_document_xlsx_get_columns**](docs/EditDocumentApi.md#edit_document_xlsx_get_columns) | **POST** /convert/edit/xlsx/get-columns | Get rows and cells from a Excel XLSX spreadsheet, worksheet *EditDocumentApi* | [**edit_document_xlsx_get_images**](docs/EditDocumentApi.md#edit_document_xlsx_get_images) | **POST** /convert/edit/xlsx/get-images | Get images from a Excel XLSX spreadsheet, worksheet -*EditDocumentApi* | [**edit_document_xlsx_get_rows_and_cells**](docs/EditDocumentApi.md#edit_document_xlsx_get_rows_and_cells) | **POST** /convert/edit/xlsx/get-rows-and-cells | Get rows and cells from a Word XLSX spreadsheet, worksheet +*EditDocumentApi* | [**edit_document_xlsx_get_rows_and_cells**](docs/EditDocumentApi.md#edit_document_xlsx_get_rows_and_cells) | **POST** /convert/edit/xlsx/get-rows-and-cells | Get rows and cells from a Excel XLSX spreadsheet, worksheet *EditDocumentApi* | [**edit_document_xlsx_get_styles**](docs/EditDocumentApi.md#edit_document_xlsx_get_styles) | **POST** /convert/edit/xlsx/get-styles | Get styles from a Excel XLSX spreadsheet, worksheet *EditDocumentApi* | [**edit_document_xlsx_get_worksheets**](docs/EditDocumentApi.md#edit_document_xlsx_get_worksheets) | **POST** /convert/edit/xlsx/get-worksheets | Get worksheets from a Excel XLSX spreadsheet *EditDocumentApi* | [**edit_document_xlsx_insert_worksheet**](docs/EditDocumentApi.md#edit_document_xlsx_insert_worksheet) | **POST** /convert/edit/xlsx/insert-worksheet | Insert a new worksheet into an Excel XLSX spreadsheet @@ -250,6 +253,8 @@ Class | Method | HTTP request | Description - [GetDocxTablesRequest](docs/GetDocxTablesRequest.md) - [GetDocxTablesResponse](docs/GetDocxTablesResponse.md) - [GetImageInfoResult](docs/GetImageInfoResult.md) + - [GetXlsxCellRequest](docs/GetXlsxCellRequest.md) + - [GetXlsxCellResponse](docs/GetXlsxCellResponse.md) - [GetXlsxColumnsRequest](docs/GetXlsxColumnsRequest.md) - [GetXlsxColumnsResponse](docs/GetXlsxColumnsResponse.md) - [GetXlsxImagesRequest](docs/GetXlsxImagesRequest.md) diff --git a/cloudmersive_convert_api_client/__init__.py b/cloudmersive_convert_api_client/__init__.py index a0e3441..0361564 100644 --- a/cloudmersive_convert_api_client/__init__.py +++ b/cloudmersive_convert_api_client/__init__.py @@ -92,6 +92,8 @@ from cloudmersive_convert_api_client.models.get_docx_tables_request import GetDocxTablesRequest from cloudmersive_convert_api_client.models.get_docx_tables_response import GetDocxTablesResponse from cloudmersive_convert_api_client.models.get_image_info_result import GetImageInfoResult +from cloudmersive_convert_api_client.models.get_xlsx_cell_request import GetXlsxCellRequest +from cloudmersive_convert_api_client.models.get_xlsx_cell_response import GetXlsxCellResponse from cloudmersive_convert_api_client.models.get_xlsx_columns_request import GetXlsxColumnsRequest from cloudmersive_convert_api_client.models.get_xlsx_columns_response import GetXlsxColumnsResponse from cloudmersive_convert_api_client.models.get_xlsx_images_request import GetXlsxImagesRequest diff --git a/cloudmersive_convert_api_client/api/convert_data_api.py b/cloudmersive_convert_api_client/api/convert_data_api.py index 98f2a3c..8626efa 100644 --- a/cloudmersive_convert_api_client/api/convert_data_api.py +++ b/cloudmersive_convert_api_client/api/convert_data_api.py @@ -107,7 +107,7 @@ def convert_data_csv_to_json_with_http_info(self, input_file, **kwargs): # noqa body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'text/json', 'application/xml', 'text/xml']) # noqa: E501 + ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 @@ -132,6 +132,105 @@ def convert_data_csv_to_json_with_http_info(self, input_file, **kwargs): # noqa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def convert_data_json_to_xml(self, json_object, **kwargs): # noqa: E501 + """Convert JSON to XML conversion # noqa: E501 + + Convert a JSON object into XML # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.convert_data_json_to_xml(json_object, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param object json_object: (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.convert_data_json_to_xml_with_http_info(json_object, **kwargs) # noqa: E501 + else: + (data) = self.convert_data_json_to_xml_with_http_info(json_object, **kwargs) # noqa: E501 + return data + + def convert_data_json_to_xml_with_http_info(self, json_object, **kwargs): # noqa: E501 + """Convert JSON to XML conversion # noqa: E501 + + Convert a JSON object into XML # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.convert_data_json_to_xml_with_http_info(json_object, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param object json_object: (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['json_object'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method convert_data_json_to_xml" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'json_object' is set + if ('json_object' not in params or + params['json_object'] is None): + raise ValueError("Missing the required parameter `json_object` when calling `convert_data_json_to_xml`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'json_object' in params: + body_params = params['json_object'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/xml']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']) # noqa: E501 + + # Authentication setting + auth_settings = ['Apikey'] # noqa: E501 + + return self.api_client.call_api( + '/convert/json/to/xml', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def convert_data_xls_to_json(self, input_file, **kwargs): # noqa: E501 """Convert Excel (97-2003) XLS to JSON conversion # noqa: E501 @@ -206,7 +305,7 @@ def convert_data_xls_to_json_with_http_info(self, input_file, **kwargs): # noqa body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'text/json', 'application/xml', 'text/xml']) # noqa: E501 + ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 @@ -305,7 +404,7 @@ def convert_data_xlsx_to_json_with_http_info(self, input_file, **kwargs): # noq body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'text/json', 'application/xml', 'text/xml']) # noqa: E501 + ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 @@ -404,7 +503,7 @@ def convert_data_xml_to_json_with_http_info(self, input_file, **kwargs): # noqa body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'text/json', 'application/xml', 'text/xml']) # noqa: E501 + ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 diff --git a/cloudmersive_convert_api_client/api/convert_document_api.py b/cloudmersive_convert_api_client/api/convert_document_api.py index 07b2742..e3ac9c5 100644 --- a/cloudmersive_convert_api_client/api/convert_document_api.py +++ b/cloudmersive_convert_api_client/api/convert_document_api.py @@ -1221,6 +1221,105 @@ def convert_document_pdf_to_docx_with_http_info(self, input_file, **kwargs): # _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def convert_document_pdf_to_docx_rasterize(self, input_file, **kwargs): # noqa: E501 + """Convert PDF to Word DOCX Document based on rasterized version of the PDF # noqa: E501 + + Convert standard PDF to Office Word Documents (docx), but first rasterize the PDF. Converts a PDF at high fidelity into Word format. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.convert_document_pdf_to_docx_rasterize(input_file, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file input_file: Input file to perform the operation on. (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.convert_document_pdf_to_docx_rasterize_with_http_info(input_file, **kwargs) # noqa: E501 + else: + (data) = self.convert_document_pdf_to_docx_rasterize_with_http_info(input_file, **kwargs) # noqa: E501 + return data + + def convert_document_pdf_to_docx_rasterize_with_http_info(self, input_file, **kwargs): # noqa: E501 + """Convert PDF to Word DOCX Document based on rasterized version of the PDF # noqa: E501 + + Convert standard PDF to Office Word Documents (docx), but first rasterize the PDF. Converts a PDF at high fidelity into Word format. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.convert_document_pdf_to_docx_rasterize_with_http_info(input_file, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file input_file: Input file to perform the operation on. (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['input_file'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method convert_document_pdf_to_docx_rasterize" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'input_file' is set + if ('input_file' not in params or + params['input_file'] is None): + raise ValueError("Missing the required parameter `input_file` when calling `convert_document_pdf_to_docx_rasterize`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + if 'input_file' in params: + local_var_files['inputFile'] = params['input_file'] # noqa: E501 + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/octet-stream']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['multipart/form-data']) # noqa: E501 + + # Authentication setting + auth_settings = ['Apikey'] # noqa: E501 + + return self.api_client.call_api( + '/convert/pdf/to/docx/rasterize', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def convert_document_pdf_to_png_array(self, input_file, **kwargs): # noqa: E501 """Convert PDF to PNG Image Array # noqa: E501 diff --git a/cloudmersive_convert_api_client/api/edit_document_api.py b/cloudmersive_convert_api_client/api/edit_document_api.py index 90e7dc4..a32edcf 100644 --- a/cloudmersive_convert_api_client/api/edit_document_api.py +++ b/cloudmersive_convert_api_client/api/edit_document_api.py @@ -2805,6 +2805,105 @@ def edit_document_xlsx_create_blank_spreadsheet_with_http_info(self, input, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def edit_document_xlsx_get_cell_by_index(self, input, **kwargs): # noqa: E501 + """Get cell from an Excel XLSX spreadsheet, worksheet by index # noqa: E501 + + Returns the rows and cells defined in the Excel Spreadsheet worksheet # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.edit_document_xlsx_get_cell_by_index(input, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param GetXlsxCellRequest input: Document input request (required) + :return: GetXlsxCellResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.edit_document_xlsx_get_cell_by_index_with_http_info(input, **kwargs) # noqa: E501 + else: + (data) = self.edit_document_xlsx_get_cell_by_index_with_http_info(input, **kwargs) # noqa: E501 + return data + + def edit_document_xlsx_get_cell_by_index_with_http_info(self, input, **kwargs): # noqa: E501 + """Get cell from an Excel XLSX spreadsheet, worksheet by index # noqa: E501 + + Returns the rows and cells defined in the Excel Spreadsheet worksheet # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.edit_document_xlsx_get_cell_by_index_with_http_info(input, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param GetXlsxCellRequest input: Document input request (required) + :return: GetXlsxCellResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['input'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method edit_document_xlsx_get_cell_by_index" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'input' is set + if ('input' not in params or + params['input'] is None): + raise ValueError("Missing the required parameter `input` when calling `edit_document_xlsx_get_cell_by_index`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'input' in params: + body_params = params['input'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'text/json', 'application/xml', 'text/xml']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']) # noqa: E501 + + # Authentication setting + auth_settings = ['Apikey'] # noqa: E501 + + return self.api_client.call_api( + '/convert/edit/xlsx/get-cell/by-index', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GetXlsxCellResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def edit_document_xlsx_get_columns(self, input, **kwargs): # noqa: E501 """Get rows and cells from a Excel XLSX spreadsheet, worksheet # noqa: E501 @@ -3004,7 +3103,7 @@ def edit_document_xlsx_get_images_with_http_info(self, input, **kwargs): # noqa collection_formats=collection_formats) def edit_document_xlsx_get_rows_and_cells(self, input, **kwargs): # noqa: E501 - """Get rows and cells from a Word XLSX spreadsheet, worksheet # noqa: E501 + """Get rows and cells from a Excel XLSX spreadsheet, worksheet # noqa: E501 Returns the rows and cells defined in the Excel Spreadsheet worksheet # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -3026,7 +3125,7 @@ def edit_document_xlsx_get_rows_and_cells(self, input, **kwargs): # noqa: E501 return data def edit_document_xlsx_get_rows_and_cells_with_http_info(self, input, **kwargs): # noqa: E501 - """Get rows and cells from a Word XLSX spreadsheet, worksheet # noqa: E501 + """Get rows and cells from a Excel XLSX spreadsheet, worksheet # noqa: E501 Returns the rows and cells defined in the Excel Spreadsheet worksheet # noqa: E501 This method makes a synchronous HTTP request by default. To make an diff --git a/cloudmersive_convert_api_client/api_client.py b/cloudmersive_convert_api_client/api_client.py index 6c0e504..5dde266 100644 --- a/cloudmersive_convert_api_client/api_client.py +++ b/cloudmersive_convert_api_client/api_client.py @@ -74,7 +74,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/2.2.3/python' + self.user_agent = 'Swagger-Codegen/2.2.4/python' def __del__(self): if self._pool is not None: diff --git a/cloudmersive_convert_api_client/configuration.py b/cloudmersive_convert_api_client/configuration.py index 0967f48..9f5a76a 100644 --- a/cloudmersive_convert_api_client/configuration.py +++ b/cloudmersive_convert_api_client/configuration.py @@ -240,5 +240,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1\n"\ - "SDK Package Version: 2.2.3".\ + "SDK Package Version: 2.2.4".\ format(env=sys.platform, pyversion=sys.version) diff --git a/cloudmersive_convert_api_client/models/__init__.py b/cloudmersive_convert_api_client/models/__init__.py index b37d570..dd65547 100644 --- a/cloudmersive_convert_api_client/models/__init__.py +++ b/cloudmersive_convert_api_client/models/__init__.py @@ -74,6 +74,8 @@ from cloudmersive_convert_api_client.models.get_docx_tables_request import GetDocxTablesRequest from cloudmersive_convert_api_client.models.get_docx_tables_response import GetDocxTablesResponse from cloudmersive_convert_api_client.models.get_image_info_result import GetImageInfoResult +from cloudmersive_convert_api_client.models.get_xlsx_cell_request import GetXlsxCellRequest +from cloudmersive_convert_api_client.models.get_xlsx_cell_response import GetXlsxCellResponse from cloudmersive_convert_api_client.models.get_xlsx_columns_request import GetXlsxColumnsRequest from cloudmersive_convert_api_client.models.get_xlsx_columns_response import GetXlsxColumnsResponse from cloudmersive_convert_api_client.models.get_xlsx_images_request import GetXlsxImagesRequest diff --git a/cloudmersive_convert_api_client/models/docx_insert_image_request.py b/cloudmersive_convert_api_client/models/docx_insert_image_request.py index 0ff64c2..efc834c 100644 --- a/cloudmersive_convert_api_client/models/docx_insert_image_request.py +++ b/cloudmersive_convert_api_client/models/docx_insert_image_request.py @@ -39,7 +39,9 @@ class DocxInsertImageRequest(object): 'input_image_file_url': 'str', 'image_to_add': 'DocxImage', 'insert_placement': 'str', - 'insert_path': 'str' + 'insert_path': 'str', + 'width_in_em_us': 'int', + 'height_in_em_us': 'int' } attribute_map = { @@ -49,10 +51,12 @@ class DocxInsertImageRequest(object): 'input_image_file_url': 'InputImageFileUrl', 'image_to_add': 'ImageToAdd', 'insert_placement': 'InsertPlacement', - 'insert_path': 'InsertPath' + 'insert_path': 'InsertPath', + 'width_in_em_us': 'WidthInEMUs', + 'height_in_em_us': 'HeightInEMUs' } - def __init__(self, input_document_file_bytes=None, input_document_file_url=None, input_image_file_bytes=None, input_image_file_url=None, image_to_add=None, insert_placement=None, insert_path=None): # noqa: E501 + def __init__(self, input_document_file_bytes=None, input_document_file_url=None, input_image_file_bytes=None, input_image_file_url=None, image_to_add=None, insert_placement=None, insert_path=None, width_in_em_us=None, height_in_em_us=None): # noqa: E501 """DocxInsertImageRequest - a model defined in Swagger""" # noqa: E501 self._input_document_file_bytes = None @@ -62,6 +66,8 @@ def __init__(self, input_document_file_bytes=None, input_document_file_url=None, self._image_to_add = None self._insert_placement = None self._insert_path = None + self._width_in_em_us = None + self._height_in_em_us = None self.discriminator = None if input_document_file_bytes is not None: @@ -78,6 +84,10 @@ def __init__(self, input_document_file_bytes=None, input_document_file_url=None, self.insert_placement = insert_placement if insert_path is not None: self.insert_path = insert_path + if width_in_em_us is not None: + self.width_in_em_us = width_in_em_us + if height_in_em_us is not None: + self.height_in_em_us = height_in_em_us @property def input_document_file_bytes(self): @@ -244,6 +254,52 @@ def insert_path(self, insert_path): self._insert_path = insert_path + @property + def width_in_em_us(self): + """Gets the width_in_em_us of this DocxInsertImageRequest. # noqa: E501 + + Optional: The width of the image in EMUs # noqa: E501 + + :return: The width_in_em_us of this DocxInsertImageRequest. # noqa: E501 + :rtype: int + """ + return self._width_in_em_us + + @width_in_em_us.setter + def width_in_em_us(self, width_in_em_us): + """Sets the width_in_em_us of this DocxInsertImageRequest. + + Optional: The width of the image in EMUs # noqa: E501 + + :param width_in_em_us: The width_in_em_us of this DocxInsertImageRequest. # noqa: E501 + :type: int + """ + + self._width_in_em_us = width_in_em_us + + @property + def height_in_em_us(self): + """Gets the height_in_em_us of this DocxInsertImageRequest. # noqa: E501 + + Optional: The height of the image in EMUs # noqa: E501 + + :return: The height_in_em_us of this DocxInsertImageRequest. # noqa: E501 + :rtype: int + """ + return self._height_in_em_us + + @height_in_em_us.setter + def height_in_em_us(self, height_in_em_us): + """Sets the height_in_em_us of this DocxInsertImageRequest. + + Optional: The height of the image in EMUs # noqa: E501 + + :param height_in_em_us: The height_in_em_us of this DocxInsertImageRequest. # noqa: E501 + :type: int + """ + + self._height_in_em_us = height_in_em_us + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/cloudmersive_convert_api_client/models/get_xlsx_cell_request.py b/cloudmersive_convert_api_client/models/get_xlsx_cell_request.py new file mode 100644 index 0000000..975ba10 --- /dev/null +++ b/cloudmersive_convert_api_client/models/get_xlsx_cell_request.py @@ -0,0 +1,233 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudmersive_convert_api_client.models.xlsx_worksheet import XlsxWorksheet # noqa: F401,E501 + + +class GetXlsxCellRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'input_file_bytes': 'str', + 'input_file_url': 'str', + 'worksheet_to_query': 'XlsxWorksheet', + 'row_index': 'int', + 'cell_index': 'int' + } + + attribute_map = { + 'input_file_bytes': 'InputFileBytes', + 'input_file_url': 'InputFileUrl', + 'worksheet_to_query': 'WorksheetToQuery', + 'row_index': 'RowIndex', + 'cell_index': 'CellIndex' + } + + def __init__(self, input_file_bytes=None, input_file_url=None, worksheet_to_query=None, row_index=None, cell_index=None): # noqa: E501 + """GetXlsxCellRequest - a model defined in Swagger""" # noqa: E501 + + self._input_file_bytes = None + self._input_file_url = None + self._worksheet_to_query = None + self._row_index = None + self._cell_index = None + self.discriminator = None + + if input_file_bytes is not None: + self.input_file_bytes = input_file_bytes + if input_file_url is not None: + self.input_file_url = input_file_url + if worksheet_to_query is not None: + self.worksheet_to_query = worksheet_to_query + if row_index is not None: + self.row_index = row_index + if cell_index is not None: + self.cell_index = cell_index + + @property + def input_file_bytes(self): + """Gets the input_file_bytes of this GetXlsxCellRequest. # noqa: E501 + + Optional: Bytes of the input file to operate on # noqa: E501 + + :return: The input_file_bytes of this GetXlsxCellRequest. # noqa: E501 + :rtype: str + """ + return self._input_file_bytes + + @input_file_bytes.setter + def input_file_bytes(self, input_file_bytes): + """Sets the input_file_bytes of this GetXlsxCellRequest. + + Optional: Bytes of the input file to operate on # noqa: E501 + + :param input_file_bytes: The input_file_bytes of this GetXlsxCellRequest. # noqa: E501 + :type: str + """ + if input_file_bytes is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', input_file_bytes): # noqa: E501 + raise ValueError(r"Invalid value for `input_file_bytes`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 + + self._input_file_bytes = input_file_bytes + + @property + def input_file_url(self): + """Gets the input_file_url of this GetXlsxCellRequest. # noqa: E501 + + Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). # noqa: E501 + + :return: The input_file_url of this GetXlsxCellRequest. # noqa: E501 + :rtype: str + """ + return self._input_file_url + + @input_file_url.setter + def input_file_url(self, input_file_url): + """Sets the input_file_url of this GetXlsxCellRequest. + + Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). # noqa: E501 + + :param input_file_url: The input_file_url of this GetXlsxCellRequest. # noqa: E501 + :type: str + """ + + self._input_file_url = input_file_url + + @property + def worksheet_to_query(self): + """Gets the worksheet_to_query of this GetXlsxCellRequest. # noqa: E501 + + Optional; Worksheet (tab) within the spreadsheet to get the rows and cells of; leave blank to default to the first worksheet # noqa: E501 + + :return: The worksheet_to_query of this GetXlsxCellRequest. # noqa: E501 + :rtype: XlsxWorksheet + """ + return self._worksheet_to_query + + @worksheet_to_query.setter + def worksheet_to_query(self, worksheet_to_query): + """Sets the worksheet_to_query of this GetXlsxCellRequest. + + Optional; Worksheet (tab) within the spreadsheet to get the rows and cells of; leave blank to default to the first worksheet # noqa: E501 + + :param worksheet_to_query: The worksheet_to_query of this GetXlsxCellRequest. # noqa: E501 + :type: XlsxWorksheet + """ + + self._worksheet_to_query = worksheet_to_query + + @property + def row_index(self): + """Gets the row_index of this GetXlsxCellRequest. # noqa: E501 + + 0-based index of the row, 0, 1, 2, ... to retrieve # noqa: E501 + + :return: The row_index of this GetXlsxCellRequest. # noqa: E501 + :rtype: int + """ + return self._row_index + + @row_index.setter + def row_index(self, row_index): + """Sets the row_index of this GetXlsxCellRequest. + + 0-based index of the row, 0, 1, 2, ... to retrieve # noqa: E501 + + :param row_index: The row_index of this GetXlsxCellRequest. # noqa: E501 + :type: int + """ + + self._row_index = row_index + + @property + def cell_index(self): + """Gets the cell_index of this GetXlsxCellRequest. # noqa: E501 + + 0-based index of the cell, 0, 1, 2, ... in the row to retrieve # noqa: E501 + + :return: The cell_index of this GetXlsxCellRequest. # noqa: E501 + :rtype: int + """ + return self._cell_index + + @cell_index.setter + def cell_index(self, cell_index): + """Sets the cell_index of this GetXlsxCellRequest. + + 0-based index of the cell, 0, 1, 2, ... in the row to retrieve # noqa: E501 + + :param cell_index: The cell_index of this GetXlsxCellRequest. # noqa: E501 + :type: int + """ + + self._cell_index = cell_index + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetXlsxCellRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetXlsxCellRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/cloudmersive_convert_api_client/models/get_xlsx_cell_response.py b/cloudmersive_convert_api_client/models/get_xlsx_cell_response.py new file mode 100644 index 0000000..c6227d0 --- /dev/null +++ b/cloudmersive_convert_api_client/models/get_xlsx_cell_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudmersive_convert_api_client.models.xlsx_spreadsheet_cell import XlsxSpreadsheetCell # noqa: F401,E501 + + +class GetXlsxCellResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'successful': 'bool', + 'cell': 'XlsxSpreadsheetCell' + } + + attribute_map = { + 'successful': 'Successful', + 'cell': 'Cell' + } + + def __init__(self, successful=None, cell=None): # noqa: E501 + """GetXlsxCellResponse - a model defined in Swagger""" # noqa: E501 + + self._successful = None + self._cell = None + self.discriminator = None + + if successful is not None: + self.successful = successful + if cell is not None: + self.cell = cell + + @property + def successful(self): + """Gets the successful of this GetXlsxCellResponse. # noqa: E501 + + True if successful, false otherwise # noqa: E501 + + :return: The successful of this GetXlsxCellResponse. # noqa: E501 + :rtype: bool + """ + return self._successful + + @successful.setter + def successful(self, successful): + """Sets the successful of this GetXlsxCellResponse. + + True if successful, false otherwise # noqa: E501 + + :param successful: The successful of this GetXlsxCellResponse. # noqa: E501 + :type: bool + """ + + self._successful = successful + + @property + def cell(self): + """Gets the cell of this GetXlsxCellResponse. # noqa: E501 + + Requested Cell in the Excel XLSX document # noqa: E501 + + :return: The cell of this GetXlsxCellResponse. # noqa: E501 + :rtype: XlsxSpreadsheetCell + """ + return self._cell + + @cell.setter + def cell(self, cell): + """Sets the cell of this GetXlsxCellResponse. + + Requested Cell in the Excel XLSX document # noqa: E501 + + :param cell: The cell of this GetXlsxCellResponse. # noqa: E501 + :type: XlsxSpreadsheetCell + """ + + self._cell = cell + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetXlsxCellResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetXlsxCellResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/cloudmersive_convert_api_client/models/get_xlsx_columns_response.py b/cloudmersive_convert_api_client/models/get_xlsx_columns_response.py index 154dcb3..6069ae4 100644 --- a/cloudmersive_convert_api_client/models/get_xlsx_columns_response.py +++ b/cloudmersive_convert_api_client/models/get_xlsx_columns_response.py @@ -81,7 +81,7 @@ def successful(self, successful): def columns(self): """Gets the columns of this GetXlsxColumnsResponse. # noqa: E501 - Spreadsheet Columns in the DOCX document # noqa: E501 + Spreadsheet Columns in the XLSX document # noqa: E501 :return: The columns of this GetXlsxColumnsResponse. # noqa: E501 :rtype: list[XlsxSpreadsheetColumn] @@ -92,7 +92,7 @@ def columns(self): def columns(self, columns): """Sets the columns of this GetXlsxColumnsResponse. - Spreadsheet Columns in the DOCX document # noqa: E501 + Spreadsheet Columns in the XLSX document # noqa: E501 :param columns: The columns of this GetXlsxColumnsResponse. # noqa: E501 :type: list[XlsxSpreadsheetColumn] diff --git a/cloudmersive_convert_api_client/models/get_xlsx_images_response.py b/cloudmersive_convert_api_client/models/get_xlsx_images_response.py index 9d1c8a5..b09c9e7 100644 --- a/cloudmersive_convert_api_client/models/get_xlsx_images_response.py +++ b/cloudmersive_convert_api_client/models/get_xlsx_images_response.py @@ -81,7 +81,7 @@ def successful(self, successful): def images(self): """Gets the images of this GetXlsxImagesResponse. # noqa: E501 - Spreadsheet Columns in the DOCX document # noqa: E501 + Spreadsheet Images in the XLSX document # noqa: E501 :return: The images of this GetXlsxImagesResponse. # noqa: E501 :rtype: list[XlsxImage] @@ -92,7 +92,7 @@ def images(self): def images(self, images): """Sets the images of this GetXlsxImagesResponse. - Spreadsheet Columns in the DOCX document # noqa: E501 + Spreadsheet Images in the XLSX document # noqa: E501 :param images: The images of this GetXlsxImagesResponse. # noqa: E501 :type: list[XlsxImage] diff --git a/cloudmersive_convert_api_client/models/get_xlsx_rows_and_cells_response.py b/cloudmersive_convert_api_client/models/get_xlsx_rows_and_cells_response.py index 9d6aea8..9425e59 100644 --- a/cloudmersive_convert_api_client/models/get_xlsx_rows_and_cells_response.py +++ b/cloudmersive_convert_api_client/models/get_xlsx_rows_and_cells_response.py @@ -81,7 +81,7 @@ def successful(self, successful): def rows(self): """Gets the rows of this GetXlsxRowsAndCellsResponse. # noqa: E501 - Spreadsheet Rows in the DOCX document # noqa: E501 + Spreadsheet Rows in the Excel XLSX document # noqa: E501 :return: The rows of this GetXlsxRowsAndCellsResponse. # noqa: E501 :rtype: list[XlsxSpreadsheetRow] @@ -92,7 +92,7 @@ def rows(self): def rows(self, rows): """Sets the rows of this GetXlsxRowsAndCellsResponse. - Spreadsheet Rows in the DOCX document # noqa: E501 + Spreadsheet Rows in the Excel XLSX document # noqa: E501 :param rows: The rows of this GetXlsxRowsAndCellsResponse. # noqa: E501 :type: list[XlsxSpreadsheetRow] diff --git a/docs/ConvertDataApi.md b/docs/ConvertDataApi.md index 87300ad..7f52f99 100644 --- a/docs/ConvertDataApi.md +++ b/docs/ConvertDataApi.md @@ -5,6 +5,7 @@ All URIs are relative to *https://api.cloudmersive.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**convert_data_csv_to_json**](ConvertDataApi.md#convert_data_csv_to_json) | **POST** /convert/csv/to/json | Convert CSV to JSON conversion +[**convert_data_json_to_xml**](ConvertDataApi.md#convert_data_json_to_xml) | **POST** /convert/json/to/xml | Convert JSON to XML conversion [**convert_data_xls_to_json**](ConvertDataApi.md#convert_data_xls_to_json) | **POST** /convert/xls/to/json | Convert Excel (97-2003) XLS to JSON conversion [**convert_data_xlsx_to_json**](ConvertDataApi.md#convert_data_xlsx_to_json) | **POST** /convert/xlsx/to/json | Convert Excel XLSX to JSON conversion [**convert_data_xml_to_json**](ConvertDataApi.md#convert_data_xml_to_json) | **POST** /convert/xml/to/json | Convert XML to JSON conversion @@ -60,7 +61,61 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: multipart/form-data - - **Accept**: application/json, text/json, application/xml, text/xml + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **convert_data_json_to_xml** +> object convert_data_json_to_xml(json_object) + +Convert JSON to XML conversion + +Convert a JSON object into XML + +### Example +```python +from __future__ import print_function +import time +import cloudmersive_convert_api_client +from cloudmersive_convert_api_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Apikey +configuration = cloudmersive_convert_api_client.Configuration() +configuration.api_key['Apikey'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Apikey'] = 'Bearer' + +# create an instance of the API class +api_instance = cloudmersive_convert_api_client.ConvertDataApi(cloudmersive_convert_api_client.ApiClient(configuration)) +json_object = NULL # object | + +try: + # Convert JSON to XML conversion + api_response = api_instance.convert_data_json_to_xml(json_object) + pprint(api_response) +except ApiException as e: + print("Exception when calling ConvertDataApi->convert_data_json_to_xml: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **json_object** | **object**| | + +### Return type + +**object** + +### Authorization + +[Apikey](../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/xml [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -114,7 +169,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: multipart/form-data - - **Accept**: application/json, text/json, application/xml, text/xml + - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -168,7 +223,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: multipart/form-data - - **Accept**: application/json, text/json, application/xml, text/xml + - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -222,7 +277,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: multipart/form-data - - **Accept**: application/json, text/json, application/xml, text/xml + - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/ConvertDocumentApi.md b/docs/ConvertDocumentApi.md index dfdac0e..c406831 100644 --- a/docs/ConvertDocumentApi.md +++ b/docs/ConvertDocumentApi.md @@ -16,6 +16,7 @@ Method | HTTP request | Description [**convert_document_html_to_pdf**](ConvertDocumentApi.md#convert_document_html_to_pdf) | **POST** /convert/html/to/pdf | Convert HTML to PDF Document [**convert_document_html_to_png**](ConvertDocumentApi.md#convert_document_html_to_png) | **POST** /convert/html/to/png | Convert HTML to PNG image array [**convert_document_pdf_to_docx**](ConvertDocumentApi.md#convert_document_pdf_to_docx) | **POST** /convert/pdf/to/docx | Convert PDF to Word DOCX Document +[**convert_document_pdf_to_docx_rasterize**](ConvertDocumentApi.md#convert_document_pdf_to_docx_rasterize) | **POST** /convert/pdf/to/docx/rasterize | Convert PDF to Word DOCX Document based on rasterized version of the PDF [**convert_document_pdf_to_png_array**](ConvertDocumentApi.md#convert_document_pdf_to_png_array) | **POST** /convert/pdf/to/png | Convert PDF to PNG Image Array [**convert_document_pdf_to_png_single**](ConvertDocumentApi.md#convert_document_pdf_to_png_single) | **POST** /convert/pdf/to/png/merge-single | Convert PDF to Single PNG image [**convert_document_pdf_to_pptx**](ConvertDocumentApi.md#convert_document_pdf_to_pptx) | **POST** /convert/pdf/to/pptx | Convert PDF to PowerPoint PPTX Presentation @@ -681,6 +682,60 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **convert_document_pdf_to_docx_rasterize** +> str convert_document_pdf_to_docx_rasterize(input_file) + +Convert PDF to Word DOCX Document based on rasterized version of the PDF + +Convert standard PDF to Office Word Documents (docx), but first rasterize the PDF. Converts a PDF at high fidelity into Word format. + +### Example +```python +from __future__ import print_function +import time +import cloudmersive_convert_api_client +from cloudmersive_convert_api_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Apikey +configuration = cloudmersive_convert_api_client.Configuration() +configuration.api_key['Apikey'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Apikey'] = 'Bearer' + +# create an instance of the API class +api_instance = cloudmersive_convert_api_client.ConvertDocumentApi(cloudmersive_convert_api_client.ApiClient(configuration)) +input_file = '/path/to/file.txt' # file | Input file to perform the operation on. + +try: + # Convert PDF to Word DOCX Document based on rasterized version of the PDF + api_response = api_instance.convert_document_pdf_to_docx_rasterize(input_file) + pprint(api_response) +except ApiException as e: + print("Exception when calling ConvertDocumentApi->convert_document_pdf_to_docx_rasterize: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input_file** | **file**| Input file to perform the operation on. | + +### Return type + +**str** + +### Authorization + +[Apikey](../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/octet-stream + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **convert_document_pdf_to_png_array** > PdfToPngResult convert_document_pdf_to_png_array(input_file) diff --git a/docs/DocxInsertImageRequest.md b/docs/DocxInsertImageRequest.md index fa4d151..4c9c6da 100644 --- a/docs/DocxInsertImageRequest.md +++ b/docs/DocxInsertImageRequest.md @@ -10,6 +10,8 @@ Name | Type | Description | Notes **image_to_add** | [**DocxImage**](DocxImage.md) | Optional: Image to add; if you supply in this object, do not supply InputImageFileBytes or InputImageFileUrl. | [optional] **insert_placement** | **str** | Optional; default is DocumentEnd. Placement Type of the insert; possible values are: DocumentStart (very beginning of the document), DocumentEnd (very end of the document), BeforeExistingObject (right before an existing object - fill in the InsertPath field using the Path value from an existing object), AfterExistingObject (right after an existing object - fill in the InsertPath field using the Path value from an existing object) | [optional] **insert_path** | **str** | Optional; location within the document to insert the object; fill in the InsertPath field using the Path value from an existing object. Used with InsertPlacement of BeforeExistingObject or AfterExistingObject | [optional] +**width_in_em_us** | **int** | Optional: The width of the image in EMUs | [optional] +**height_in_em_us** | **int** | Optional: The height of the image in EMUs | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EditDocumentApi.md b/docs/EditDocumentApi.md index 9f919e6..1467f21 100644 --- a/docs/EditDocumentApi.md +++ b/docs/EditDocumentApi.md @@ -32,9 +32,10 @@ Method | HTTP request | Description [**edit_document_finish_editing**](EditDocumentApi.md#edit_document_finish_editing) | **POST** /convert/edit/finish-editing | Download result from document editing [**edit_document_pptx_replace**](EditDocumentApi.md#edit_document_pptx_replace) | **POST** /convert/edit/pptx/replace-all | Replace string in PowerPoint PPTX presentation [**edit_document_xlsx_create_blank_spreadsheet**](EditDocumentApi.md#edit_document_xlsx_create_blank_spreadsheet) | **POST** /convert/edit/xlsx/create/blank | Create a blank Excel XLSX spreadsheet +[**edit_document_xlsx_get_cell_by_index**](EditDocumentApi.md#edit_document_xlsx_get_cell_by_index) | **POST** /convert/edit/xlsx/get-cell/by-index | Get cell from an Excel XLSX spreadsheet, worksheet by index [**edit_document_xlsx_get_columns**](EditDocumentApi.md#edit_document_xlsx_get_columns) | **POST** /convert/edit/xlsx/get-columns | Get rows and cells from a Excel XLSX spreadsheet, worksheet [**edit_document_xlsx_get_images**](EditDocumentApi.md#edit_document_xlsx_get_images) | **POST** /convert/edit/xlsx/get-images | Get images from a Excel XLSX spreadsheet, worksheet -[**edit_document_xlsx_get_rows_and_cells**](EditDocumentApi.md#edit_document_xlsx_get_rows_and_cells) | **POST** /convert/edit/xlsx/get-rows-and-cells | Get rows and cells from a Word XLSX spreadsheet, worksheet +[**edit_document_xlsx_get_rows_and_cells**](EditDocumentApi.md#edit_document_xlsx_get_rows_and_cells) | **POST** /convert/edit/xlsx/get-rows-and-cells | Get rows and cells from a Excel XLSX spreadsheet, worksheet [**edit_document_xlsx_get_styles**](EditDocumentApi.md#edit_document_xlsx_get_styles) | **POST** /convert/edit/xlsx/get-styles | Get styles from a Excel XLSX spreadsheet, worksheet [**edit_document_xlsx_get_worksheets**](EditDocumentApi.md#edit_document_xlsx_get_worksheets) | **POST** /convert/edit/xlsx/get-worksheets | Get worksheets from a Excel XLSX spreadsheet [**edit_document_xlsx_insert_worksheet**](EditDocumentApi.md#edit_document_xlsx_insert_worksheet) | **POST** /convert/edit/xlsx/insert-worksheet | Insert a new worksheet into an Excel XLSX spreadsheet @@ -1552,6 +1553,60 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **edit_document_xlsx_get_cell_by_index** +> GetXlsxCellResponse edit_document_xlsx_get_cell_by_index(input) + +Get cell from an Excel XLSX spreadsheet, worksheet by index + +Returns the rows and cells defined in the Excel Spreadsheet worksheet + +### Example +```python +from __future__ import print_function +import time +import cloudmersive_convert_api_client +from cloudmersive_convert_api_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Apikey +configuration = cloudmersive_convert_api_client.Configuration() +configuration.api_key['Apikey'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Apikey'] = 'Bearer' + +# create an instance of the API class +api_instance = cloudmersive_convert_api_client.EditDocumentApi(cloudmersive_convert_api_client.ApiClient(configuration)) +input = cloudmersive_convert_api_client.GetXlsxCellRequest() # GetXlsxCellRequest | Document input request + +try: + # Get cell from an Excel XLSX spreadsheet, worksheet by index + api_response = api_instance.edit_document_xlsx_get_cell_by_index(input) + pprint(api_response) +except ApiException as e: + print("Exception when calling EditDocumentApi->edit_document_xlsx_get_cell_by_index: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input** | [**GetXlsxCellRequest**](GetXlsxCellRequest.md)| Document input request | + +### Return type + +[**GetXlsxCellResponse**](GetXlsxCellResponse.md) + +### Authorization + +[Apikey](../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **edit_document_xlsx_get_columns** > GetXlsxColumnsResponse edit_document_xlsx_get_columns(input) @@ -1663,7 +1718,7 @@ Name | Type | Description | Notes # **edit_document_xlsx_get_rows_and_cells** > GetXlsxRowsAndCellsResponse edit_document_xlsx_get_rows_and_cells(input) -Get rows and cells from a Word XLSX spreadsheet, worksheet +Get rows and cells from a Excel XLSX spreadsheet, worksheet Returns the rows and cells defined in the Excel Spreadsheet worksheet @@ -1686,7 +1741,7 @@ api_instance = cloudmersive_convert_api_client.EditDocumentApi(cloudmersive_conv input = cloudmersive_convert_api_client.GetXlsxRowsAndCellsRequest() # GetXlsxRowsAndCellsRequest | Document input request try: - # Get rows and cells from a Word XLSX spreadsheet, worksheet + # Get rows and cells from a Excel XLSX spreadsheet, worksheet api_response = api_instance.edit_document_xlsx_get_rows_and_cells(input) pprint(api_response) except ApiException as e: diff --git a/docs/GetXlsxCellRequest.md b/docs/GetXlsxCellRequest.md new file mode 100644 index 0000000..011e079 --- /dev/null +++ b/docs/GetXlsxCellRequest.md @@ -0,0 +1,14 @@ +# GetXlsxCellRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**input_file_bytes** | **str** | Optional: Bytes of the input file to operate on | [optional] +**input_file_url** | **str** | Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). | [optional] +**worksheet_to_query** | [**XlsxWorksheet**](XlsxWorksheet.md) | Optional; Worksheet (tab) within the spreadsheet to get the rows and cells of; leave blank to default to the first worksheet | [optional] +**row_index** | **int** | 0-based index of the row, 0, 1, 2, ... to retrieve | [optional] +**cell_index** | **int** | 0-based index of the cell, 0, 1, 2, ... in the row to retrieve | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetXlsxCellResponse.md b/docs/GetXlsxCellResponse.md new file mode 100644 index 0000000..88c19d9 --- /dev/null +++ b/docs/GetXlsxCellResponse.md @@ -0,0 +1,11 @@ +# GetXlsxCellResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | True if successful, false otherwise | [optional] +**cell** | [**XlsxSpreadsheetCell**](XlsxSpreadsheetCell.md) | Requested Cell in the Excel XLSX document | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetXlsxColumnsResponse.md b/docs/GetXlsxColumnsResponse.md index b82a7fc..d7fe03b 100644 --- a/docs/GetXlsxColumnsResponse.md +++ b/docs/GetXlsxColumnsResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **successful** | **bool** | True if successful, false otherwise | [optional] -**columns** | [**list[XlsxSpreadsheetColumn]**](XlsxSpreadsheetColumn.md) | Spreadsheet Columns in the DOCX document | [optional] +**columns** | [**list[XlsxSpreadsheetColumn]**](XlsxSpreadsheetColumn.md) | Spreadsheet Columns in the XLSX document | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetXlsxImagesResponse.md b/docs/GetXlsxImagesResponse.md index fe47e5e..5973993 100644 --- a/docs/GetXlsxImagesResponse.md +++ b/docs/GetXlsxImagesResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **successful** | **bool** | True if successful, false otherwise | [optional] -**images** | [**list[XlsxImage]**](XlsxImage.md) | Spreadsheet Columns in the DOCX document | [optional] +**images** | [**list[XlsxImage]**](XlsxImage.md) | Spreadsheet Images in the XLSX document | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetXlsxRowsAndCellsResponse.md b/docs/GetXlsxRowsAndCellsResponse.md index 59b61be..15ed420 100644 --- a/docs/GetXlsxRowsAndCellsResponse.md +++ b/docs/GetXlsxRowsAndCellsResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **successful** | **bool** | True if successful, false otherwise | [optional] -**rows** | [**list[XlsxSpreadsheetRow]**](XlsxSpreadsheetRow.md) | Spreadsheet Rows in the DOCX document | [optional] +**rows** | [**list[XlsxSpreadsheetRow]**](XlsxSpreadsheetRow.md) | Spreadsheet Rows in the Excel XLSX document | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/packageconfig.json b/packageconfig.json index 42415d0..77dcb3b 100644 --- a/packageconfig.json +++ b/packageconfig.json @@ -1,6 +1,6 @@ { "projectName" : "cloudmersive_convert_api_client", "packageName" : "cloudmersive_convert_api_client", - "packageVersion": "2.2.3", + "packageVersion": "2.2.4", "packageUrl": "https://www.cloudmersive.com/convert-api" } \ No newline at end of file diff --git a/setup.py b/setup.py index f534052..c95d7ae 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "cloudmersive_convert_api_client" -VERSION = "2.2.3" +VERSION = "2.2.4" # To install the library, run the following # # python setup.py install diff --git a/test/test_get_xlsx_cell_request.py b/test/test_get_xlsx_cell_request.py new file mode 100644 index 0000000..a6806f0 --- /dev/null +++ b/test/test_get_xlsx_cell_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudmersive_convert_api_client +from cloudmersive_convert_api_client.models.get_xlsx_cell_request import GetXlsxCellRequest # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestGetXlsxCellRequest(unittest.TestCase): + """GetXlsxCellRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetXlsxCellRequest(self): + """Test GetXlsxCellRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.get_xlsx_cell_request.GetXlsxCellRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_xlsx_cell_response.py b/test/test_get_xlsx_cell_response.py new file mode 100644 index 0000000..3c289c4 --- /dev/null +++ b/test/test_get_xlsx_cell_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + convertapi + + Convert API lets you effortlessly convert file formats and types. # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudmersive_convert_api_client +from cloudmersive_convert_api_client.models.get_xlsx_cell_response import GetXlsxCellResponse # noqa: E501 +from cloudmersive_convert_api_client.rest import ApiException + + +class TestGetXlsxCellResponse(unittest.TestCase): + """GetXlsxCellResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetXlsxCellResponse(self): + """Test GetXlsxCellResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudmersive_convert_api_client.models.get_xlsx_cell_response.GetXlsxCellResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main()