Skip to content

Commit 899e127

Browse files
update to 22.12
1 parent 2275dd3 commit 899e127

File tree

6 files changed

+36
-7
lines changed

6 files changed

+36
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ XLS, XLSX, PPTX, DOC, DOCX, MobiXML, JPEG, EMF, PNG, BMP, GIF, TIFF, Text
3030
## Read PDF Formats
3131
MHT, PCL, PS, XSLFO, MD
3232

33-
## Enhancements in Version 22.11
33+
## Enhancements in Version 22.12
3434
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
3535

3636
## Requirements.

asposepdfcloud/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(self, app_key, app_sid, host=None):
8383
self.rest_client = RESTClientObject()
8484
self.default_headers = {}
8585
self.default_headers['x-aspose-client'] = 'python sdk'
86-
self.default_headers['x-aspose-client-version'] = '22.11.0'
86+
self.default_headers['x-aspose-client-version'] = '22.12.0'
8787

8888
self.app_key = app_key
8989
self.app_sid = app_sid

asposepdfcloud/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,5 +199,5 @@ def to_debug_report(self):
199199
"OS: {env}\n"\
200200
"Python Version: {pyversion}\n"\
201201
"Version of the API: 3.0\n"\
202-
"SDK Package Version: 22.11.0".\
202+
"SDK Package Version: 22.12.0".\
203203
format(env=sys.platform, pyversion=sys.version)

asposepdfcloud/models/text_replace.py

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,20 @@ class TextReplace(object):
5252
'new_value': 'str',
5353
'regex': 'bool',
5454
'text_state': 'TextState',
55-
'rect': 'Rectangle'
55+
'rect': 'Rectangle',
56+
'center_text_horizontally': 'bool'
5657
}
5758

5859
attribute_map = {
5960
'old_value': 'OldValue',
6061
'new_value': 'NewValue',
6162
'regex': 'Regex',
6263
'text_state': 'TextState',
63-
'rect': 'Rect'
64+
'rect': 'Rect',
65+
'center_text_horizontally': 'CenterTextHorizontally'
6466
}
6567

66-
def __init__(self, old_value=None, new_value=None, regex=None, text_state=None, rect=None):
68+
def __init__(self, old_value=None, new_value=None, regex=None, text_state=None, rect=None, center_text_horizontally=None):
6769
"""
6870
TextReplace - a model defined in Swagger
6971
"""
@@ -73,6 +75,7 @@ def __init__(self, old_value=None, new_value=None, regex=None, text_state=None,
7375
self._regex = None
7476
self._text_state = None
7577
self._rect = None
78+
self._center_text_horizontally = None
7679

7780
self.old_value = old_value
7881
if new_value is not None:
@@ -82,6 +85,8 @@ def __init__(self, old_value=None, new_value=None, regex=None, text_state=None,
8285
self.text_state = text_state
8386
if rect is not None:
8487
self.rect = rect
88+
if center_text_horizontally is not None:
89+
self.center_text_horizontally = center_text_horizontally
8590

8691
@property
8792
def old_value(self):
@@ -204,6 +209,29 @@ def rect(self, rect):
204209

205210
self._rect = rect
206211

212+
@property
213+
def center_text_horizontally(self):
214+
"""
215+
Gets the center_text_horizontally of this TextReplace.
216+
The text after replacement is centered horizontally relative to the text being replaced.
217+
218+
:return: The center_text_horizontally of this TextReplace.
219+
:rtype: bool
220+
"""
221+
return self._center_text_horizontally
222+
223+
@center_text_horizontally.setter
224+
def center_text_horizontally(self, center_text_horizontally):
225+
"""
226+
Sets the center_text_horizontally of this TextReplace.
227+
The text after replacement is centered horizontally relative to the text being replaced.
228+
229+
:param center_text_horizontally: The center_text_horizontally of this TextReplace.
230+
:type: bool
231+
"""
232+
233+
self._center_text_horizontally = center_text_horizontally
234+
207235
def to_dict(self):
208236
"""
209237
Returns the model properties as a dict

docs/TextReplace.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**regex** | **bool** | Gets or sets a value indicating whether search text is regular expression. |
1010
**text_state** | [**TextState**](TextState.md) | Text properties of a new text. | [optional]
1111
**rect** | [**Rectangle**](Rectangle.md) | Rectangle area where searched original text. | [optional]
12+
**center_text_horizontally** | **bool** | The text after replacement is centered horizontally relative to the text being replaced. | [optional]
1213

1314
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1415

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from setuptools import setup, find_packages
3333

3434
NAME = "asposepdfcloud"
35-
VERSION = "22.11.0"
35+
VERSION = "22.12.0"
3636
# To install the library, run the following
3737
#
3838
# python setup.py install

0 commit comments

Comments
 (0)