Skip to content

Commit

Permalink
2.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudmersive committed Dec 16, 2019
1 parent 6d3b57e commit d551db2
Show file tree
Hide file tree
Showing 27 changed files with 1,045 additions and 31 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions cloudmersive_convert_api_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
107 changes: 103 additions & 4 deletions cloudmersive_convert_api_client/api/convert_data_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
99 changes: 99 additions & 0 deletions cloudmersive_convert_api_client/api/convert_document_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit d551db2

Please sign in to comment.