From 63c080855273cb2dae36fdfc0638cafe9c500291 Mon Sep 17 00:00:00 2001 From: Cloudmersive <35204726+Cloudmersive@users.noreply.github.com> Date: Sat, 3 Aug 2019 19:20:28 -0700 Subject: [PATCH] Added 2.0.3 --- README.md | 5 +- .../api/convert_document_api.py | 198 ++++++++++++++++++ .../api/merge_document_api.py | 107 ++++++++++ cloudmersive_convert_api_client/api_client.py | 2 +- .../configuration.py | 2 +- docs/ConvertDocumentApi.md | 110 ++++++++++ docs/MergeDocumentApi.md | 57 +++++ packageconfig.json | 2 +- setup.py | 2 +- 9 files changed, 480 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 672ed4e..b058d04 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Convert API lets you effortlessly convert file formats and types. This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: v1 -- Package version: 2.0.2 +- Package version: 2.0.3 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. @@ -88,7 +88,9 @@ Class | Method | HTTP request | Description *ConvertDocumentApi* | [**convert_document_doc_to_docx**](docs/ConvertDocumentApi.md#convert_document_doc_to_docx) | **POST** /convert/doc/to/docx | Word DOC (97-03) to DOCX *ConvertDocumentApi* | [**convert_document_doc_to_pdf**](docs/ConvertDocumentApi.md#convert_document_doc_to_pdf) | **POST** /convert/doc/to/pdf | Word DOC (97-03) to PDF *ConvertDocumentApi* | [**convert_document_docx_to_pdf**](docs/ConvertDocumentApi.md#convert_document_docx_to_pdf) | **POST** /convert/docx/to/pdf | Word DOCX to PDF +*ConvertDocumentApi* | [**convert_document_pdf_to_docx**](docs/ConvertDocumentApi.md#convert_document_pdf_to_docx) | **POST** /convert/pdf/to/docx | PDF to Word DOCX *ConvertDocumentApi* | [**convert_document_pdf_to_png_array**](docs/ConvertDocumentApi.md#convert_document_pdf_to_png_array) | **POST** /convert/pdf/to/png | PDF to PNG Array +*ConvertDocumentApi* | [**convert_document_pdf_to_pptx**](docs/ConvertDocumentApi.md#convert_document_pdf_to_pptx) | **POST** /convert/pdf/to/pptx | PDF to PowerPoint PPTX *ConvertDocumentApi* | [**convert_document_ppt_to_pdf**](docs/ConvertDocumentApi.md#convert_document_ppt_to_pdf) | **POST** /convert/ppt/to/pdf | PowerPoint PPT (97-03) to PDF *ConvertDocumentApi* | [**convert_document_ppt_to_pptx**](docs/ConvertDocumentApi.md#convert_document_ppt_to_pptx) | **POST** /convert/ppt/to/pptx | PowerPoint PPT (97-03) to PPTX *ConvertDocumentApi* | [**convert_document_pptx_to_pdf**](docs/ConvertDocumentApi.md#convert_document_pptx_to_pdf) | **POST** /convert/pptx/to/pdf | PowerPoint PPTX to PDF @@ -130,6 +132,7 @@ Class | Method | HTTP request | Description *EditDocumentApi* | [**edit_document_xlsx_get_worksheets**](docs/EditDocumentApi.md#edit_document_xlsx_get_worksheets) | **POST** /convert/edit/xlsx/get-worksheets | Get worksheets from a XLSX *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 XLSX spreadsheet *MergeDocumentApi* | [**merge_document_docx**](docs/MergeDocumentApi.md#merge_document_docx) | **POST** /convert/merge/docx | Merge Multple Word DOCX Together +*MergeDocumentApi* | [**merge_document_pdf**](docs/MergeDocumentApi.md#merge_document_pdf) | **POST** /convert/merge/pdf | Merge Multple PDF Files Together *MergeDocumentApi* | [**merge_document_pptx**](docs/MergeDocumentApi.md#merge_document_pptx) | **POST** /convert/merge/pptx | Merge Multple PowerPoint PPTX Together *MergeDocumentApi* | [**merge_document_xlsx**](docs/MergeDocumentApi.md#merge_document_xlsx) | **POST** /convert/merge/xlsx | Merge Multple Excel XLSX Together *ValidateDocumentApi* | [**validate_document_docx_validation**](docs/ValidateDocumentApi.md#validate_document_docx_validation) | **POST** /convert/validate/docx | Validate a Word document (DOCX) diff --git a/cloudmersive_convert_api_client/api/convert_document_api.py b/cloudmersive_convert_api_client/api/convert_document_api.py index 81e3290..f8256d4 100644 --- a/cloudmersive_convert_api_client/api/convert_document_api.py +++ b/cloudmersive_convert_api_client/api/convert_document_api.py @@ -627,6 +627,105 @@ def convert_document_docx_to_pdf_with_http_info(self, input_file, **kwargs): # _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def convert_document_pdf_to_docx(self, input_file, **kwargs): # noqa: E501 + """PDF to Word DOCX # noqa: E501 + + Convert standard PDF to Office Word Documents (docx). Converts a PDF at high fidelity into Word format, where it can be easily edited and processed. # 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(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_with_http_info(input_file, **kwargs) # noqa: E501 + else: + (data) = self.convert_document_pdf_to_docx_with_http_info(input_file, **kwargs) # noqa: E501 + return data + + def convert_document_pdf_to_docx_with_http_info(self, input_file, **kwargs): # noqa: E501 + """PDF to Word DOCX # noqa: E501 + + Convert standard PDF to Office Word Documents (docx). Converts a PDF at high fidelity into Word format, where it can be easily edited and processed. # 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_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" % 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`") # 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', '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 """PDF to PNG Array # noqa: E501 @@ -726,6 +825,105 @@ def convert_document_pdf_to_png_array_with_http_info(self, input_file, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def convert_document_pdf_to_pptx(self, input_file, **kwargs): # noqa: E501 + """PDF to PowerPoint PPTX # noqa: E501 + + Convert standard PDF to Office PowerPoint Presentation (pptx). Converts a PDF file at high fidelity into PowerPoint format, where it can be easily edited and processed. # 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_pptx(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_pptx_with_http_info(input_file, **kwargs) # noqa: E501 + else: + (data) = self.convert_document_pdf_to_pptx_with_http_info(input_file, **kwargs) # noqa: E501 + return data + + def convert_document_pdf_to_pptx_with_http_info(self, input_file, **kwargs): # noqa: E501 + """PDF to PowerPoint PPTX # noqa: E501 + + Convert standard PDF to Office PowerPoint Presentation (pptx). Converts a PDF file at high fidelity into PowerPoint format, where it can be easily edited and processed. # 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_pptx_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_pptx" % 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_pptx`") # 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/pptx', '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_ppt_to_pdf(self, input_file, **kwargs): # noqa: E501 """PowerPoint PPT (97-03) to PDF # noqa: E501 diff --git a/cloudmersive_convert_api_client/api/merge_document_api.py b/cloudmersive_convert_api_client/api/merge_document_api.py index e0ecfb7..0c9a818 100644 --- a/cloudmersive_convert_api_client/api/merge_document_api.py +++ b/cloudmersive_convert_api_client/api/merge_document_api.py @@ -140,6 +140,113 @@ def merge_document_docx_with_http_info(self, input_file1, input_file2, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def merge_document_pdf(self, input_file1, input_file2, **kwargs): # noqa: E501 + """Merge Multple PDF Files Together # noqa: E501 + + Combine multiple PDF files (pdf) into a single PDF document, preserving the order of the input documents in the combined document # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.merge_document_pdf(input_file1, input_file2, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file input_file1: First input file to perform the operation on. (required) + :param file input_file2: Second input file to perform the operation on (more than 2 can be supplied). (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.merge_document_pdf_with_http_info(input_file1, input_file2, **kwargs) # noqa: E501 + else: + (data) = self.merge_document_pdf_with_http_info(input_file1, input_file2, **kwargs) # noqa: E501 + return data + + def merge_document_pdf_with_http_info(self, input_file1, input_file2, **kwargs): # noqa: E501 + """Merge Multple PDF Files Together # noqa: E501 + + Combine multiple PDF files (pdf) into a single PDF document, preserving the order of the input documents in the combined document # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.merge_document_pdf_with_http_info(input_file1, input_file2, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file input_file1: First input file to perform the operation on. (required) + :param file input_file2: Second input file to perform the operation on (more than 2 can be supplied). (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['input_file1', 'input_file2'] # 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 merge_document_pdf" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'input_file1' is set + if ('input_file1' not in params or + params['input_file1'] is None): + raise ValueError("Missing the required parameter `input_file1` when calling `merge_document_pdf`") # noqa: E501 + # verify the required parameter 'input_file2' is set + if ('input_file2' not in params or + params['input_file2'] is None): + raise ValueError("Missing the required parameter `input_file2` when calling `merge_document_pdf`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + if 'input_file1' in params: + local_var_files['inputFile1'] = params['input_file1'] # noqa: E501 + if 'input_file2' in params: + local_var_files['inputFile2'] = params['input_file2'] # 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/merge/pdf', '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 merge_document_pptx(self, input_file1, input_file2, **kwargs): # noqa: E501 """Merge Multple PowerPoint PPTX Together # noqa: E501 diff --git a/cloudmersive_convert_api_client/api_client.py b/cloudmersive_convert_api_client/api_client.py index 1ea84ac..16f4372 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.0.2/python' + self.user_agent = 'Swagger-Codegen/2.0.3/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 a4605dd..d515320 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.0.2".\ + "SDK Package Version: 2.0.3".\ format(env=sys.platform, pyversion=sys.version) diff --git a/docs/ConvertDocumentApi.md b/docs/ConvertDocumentApi.md index c8aa691..829e38a 100644 --- a/docs/ConvertDocumentApi.md +++ b/docs/ConvertDocumentApi.md @@ -10,7 +10,9 @@ Method | HTTP request | Description [**convert_document_doc_to_docx**](ConvertDocumentApi.md#convert_document_doc_to_docx) | **POST** /convert/doc/to/docx | Word DOC (97-03) to DOCX [**convert_document_doc_to_pdf**](ConvertDocumentApi.md#convert_document_doc_to_pdf) | **POST** /convert/doc/to/pdf | Word DOC (97-03) to PDF [**convert_document_docx_to_pdf**](ConvertDocumentApi.md#convert_document_docx_to_pdf) | **POST** /convert/docx/to/pdf | Word DOCX to PDF +[**convert_document_pdf_to_docx**](ConvertDocumentApi.md#convert_document_pdf_to_docx) | **POST** /convert/pdf/to/docx | PDF to Word DOCX [**convert_document_pdf_to_png_array**](ConvertDocumentApi.md#convert_document_pdf_to_png_array) | **POST** /convert/pdf/to/png | PDF to PNG Array +[**convert_document_pdf_to_pptx**](ConvertDocumentApi.md#convert_document_pdf_to_pptx) | **POST** /convert/pdf/to/pptx | PDF to PowerPoint PPTX [**convert_document_ppt_to_pdf**](ConvertDocumentApi.md#convert_document_ppt_to_pdf) | **POST** /convert/ppt/to/pdf | PowerPoint PPT (97-03) to PDF [**convert_document_ppt_to_pptx**](ConvertDocumentApi.md#convert_document_ppt_to_pptx) | **POST** /convert/ppt/to/pptx | PowerPoint PPT (97-03) to PPTX [**convert_document_pptx_to_pdf**](ConvertDocumentApi.md#convert_document_pptx_to_pdf) | **POST** /convert/pptx/to/pdf | PowerPoint PPTX to PDF @@ -344,6 +346,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** +> str convert_document_pdf_to_docx(input_file) + +PDF to Word DOCX + +Convert standard PDF to Office Word Documents (docx). Converts a PDF at high fidelity into Word format, where it can be easily edited and processed. + +### 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: + # PDF to Word DOCX + api_response = api_instance.convert_document_pdf_to_docx(input_file) + pprint(api_response) +except ApiException as e: + print("Exception when calling ConvertDocumentApi->convert_document_pdf_to_docx: %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) @@ -398,6 +454,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_pptx** +> str convert_document_pdf_to_pptx(input_file) + +PDF to PowerPoint PPTX + +Convert standard PDF to Office PowerPoint Presentation (pptx). Converts a PDF file at high fidelity into PowerPoint format, where it can be easily edited and processed. + +### 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: + # PDF to PowerPoint PPTX + api_response = api_instance.convert_document_pdf_to_pptx(input_file) + pprint(api_response) +except ApiException as e: + print("Exception when calling ConvertDocumentApi->convert_document_pdf_to_pptx: %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_ppt_to_pdf** > str convert_document_ppt_to_pdf(input_file) diff --git a/docs/MergeDocumentApi.md b/docs/MergeDocumentApi.md index 032d582..d7a2da5 100644 --- a/docs/MergeDocumentApi.md +++ b/docs/MergeDocumentApi.md @@ -5,6 +5,7 @@ All URIs are relative to *https://api.cloudmersive.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**merge_document_docx**](MergeDocumentApi.md#merge_document_docx) | **POST** /convert/merge/docx | Merge Multple Word DOCX Together +[**merge_document_pdf**](MergeDocumentApi.md#merge_document_pdf) | **POST** /convert/merge/pdf | Merge Multple PDF Files Together [**merge_document_pptx**](MergeDocumentApi.md#merge_document_pptx) | **POST** /convert/merge/pptx | Merge Multple PowerPoint PPTX Together [**merge_document_xlsx**](MergeDocumentApi.md#merge_document_xlsx) | **POST** /convert/merge/xlsx | Merge Multple Excel XLSX Together @@ -65,6 +66,62 @@ 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) +# **merge_document_pdf** +> str merge_document_pdf(input_file1, input_file2) + +Merge Multple PDF Files Together + +Combine multiple PDF files (pdf) into a single PDF document, preserving the order of the input documents in the combined document + +### 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.MergeDocumentApi(cloudmersive_convert_api_client.ApiClient(configuration)) +input_file1 = '/path/to/file.txt' # file | First input file to perform the operation on. +input_file2 = '/path/to/file.txt' # file | Second input file to perform the operation on (more than 2 can be supplied). + +try: + # Merge Multple PDF Files Together + api_response = api_instance.merge_document_pdf(input_file1, input_file2) + pprint(api_response) +except ApiException as e: + print("Exception when calling MergeDocumentApi->merge_document_pdf: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input_file1** | **file**| First input file to perform the operation on. | + **input_file2** | **file**| Second input file to perform the operation on (more than 2 can be supplied). | + +### 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) + # **merge_document_pptx** > str merge_document_pptx(input_file1, input_file2) diff --git a/packageconfig.json b/packageconfig.json index 7b13c85..11080a6 100644 --- a/packageconfig.json +++ b/packageconfig.json @@ -1,5 +1,5 @@ { "projectName" : "cloudmersive_convert_api_client", "packageName" : "cloudmersive_convert_api_client", - "packageVersion": "2.0.2" + "packageVersion": "2.0.3" } \ No newline at end of file diff --git a/setup.py b/setup.py index 1d1c1b3..e045ddd 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.0.2" +VERSION = "2.0.3" # To install the library, run the following # # python setup.py install