Skip to content

Commit c14f171

Browse files
SDK regenerated by CI server [ci skip]
1 parent aacb38e commit c14f171

File tree

7 files changed

+28
-8
lines changed

7 files changed

+28
-8
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ Python Cloud SDK wraps Aspose.Words Cloud API so you could seamlessly integrate
1616
- [Convert a document to desired file format](https://docs.aspose.cloud/display/wordscloud/Convert+Document+to+Destination+Format+with+Detailed+Settings+and+Save+Result+to+Storage) along with detailed settings.
1717
- Convert an encrypted PDF document into Word document format.
1818

19+
## Enhancements in Version 22.8
20+
21+
- Added optional loadEncoding and password parameters for ConvertDocument API method.
22+
23+
1924
## Enhancements in Version 22.7
2025

2126
- Expand 'AppendDocument' API method to support 'ImageEntryList' for directly appending images to documents and another images.

asposewordscloud/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
8383

8484
self.pool = None
8585
self.rest_client = rest.RESTClientObject(configuration)
86-
self.default_headers = {'x-aspose-client': 'python sdk', 'x-aspose-version': '22.8'}
86+
self.default_headers = {'x-aspose-client': 'python sdk', 'x-aspose-version': '22.9'}
8787
if header_name is not None:
8888
self.default_headers[header_name] = header_value
8989
self.cookie = cookie
9090
# Set default User-Agent.
91-
self.user_agent = 'python sdk 22.8'
91+
self.user_agent = 'python sdk 22.9'
9292

9393
def __del__(self):
9494
if not self.pool is None:

asposewordscloud/apis/words_api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,9 @@ def convert_document(self, request, **kwargs): # noqa: E501
12801280
:param out_path str : The path to the output document on a local storage.
12811281
:param file_name_field_value str : The filename of the output document, that will be used when the resulting document has a dynamic field {filename}. If it is not set, the "sourceFilename" will be used instead.
12821282
:param storage str : Original document storage.
1283+
:param load_encoding str : Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
1284+
:param password str : Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
1285+
:param encrypted_password str : Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
12831286
:param fonts_location str : Folder in filestorage with custom fonts.
12841287
:return: file
12851288
If the method is called asynchronously,

asposewordscloud/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,6 @@ def to_debug_report(self):
262262
return "Python SDK Debug Report:\n"\
263263
"OS: {env}\n"\
264264
"Python Version: {pyversion}\n"\
265-
"Version of the API: 22.8\n"\
266-
"SDK Package Version: 22.8".\
265+
"Version of the API: 22.9\n"\
266+
"SDK Package Version: 22.9".\
267267
format(env=sys.platform, pyversion=sys.version)

asposewordscloud/models/requests/convert_document_request.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,21 @@ class ConvertDocumentRequest(BaseRequestObject):
4040
:param out_path The path to the output document on a local storage.
4141
:param file_name_field_value The filename of the output document, that will be used when the resulting document has a dynamic field {filename}. If it is not set, the "sourceFilename" will be used instead.
4242
:param storage Original document storage.
43+
:param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
44+
:param password Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
45+
:param encrypted_password Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
4346
:param fonts_location Folder in filestorage with custom fonts.
4447
"""
4548

46-
def __init__(self, document, format, out_path=None, file_name_field_value=None, storage=None, fonts_location=None):
49+
def __init__(self, document, format, out_path=None, file_name_field_value=None, storage=None, load_encoding=None, password=None, encrypted_password=None, fonts_location=None):
4750
self.document = document
4851
self.format = format
4952
self.out_path = out_path
5053
self.file_name_field_value = file_name_field_value
5154
self.storage = storage
55+
self.load_encoding = load_encoding
56+
self.password = password
57+
self.encrypted_password = encrypted_password
5258
self.fonts_location = fonts_location
5359

5460
def create_http_request(self, api_client):
@@ -86,6 +92,12 @@ def create_http_request(self, api_client):
8692
query_params.append(('fileNameFieldValue', self.file_name_field_value)) # noqa: E501
8793
if self.storage is not None:
8894
query_params.append(('storage', self.storage)) # noqa: E501
95+
if self.load_encoding is not None:
96+
query_params.append(('loadEncoding', self.load_encoding)) # noqa: E501
97+
if self.password is not None:
98+
query_params.append(('password', self.password)) # noqa: E501
99+
if self.encrypted_password is not None:
100+
query_params.append(('encryptedPassword', self.encrypted_password)) # noqa: E501
89101
if self.fonts_location is not None:
90102
query_params.append(('fontsLocation', self.fonts_location)) # noqa: E501
91103

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
certifi >= 14.05.14
2-
six >= 1.12
2+
six >= 1.10
33
python_dateutil >= 2.5.3
44
setuptools >= 21.0.0
55
urllib3 >= 1.15.1

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
77
8-
OpenAPI spec version: 22.8
8+
OpenAPI spec version: 22.9
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""
@@ -14,7 +14,7 @@
1414
from setuptools import setup, find_packages # noqa: H301
1515

1616
NAME = "aspose-words-cloud"
17-
VERSION = "22.8.0"
17+
VERSION = "22.9.0"
1818
# To install the library, run the following
1919
#
2020
# python setup.py install

0 commit comments

Comments
 (0)