diff --git a/README.md b/README.md index a212316..c9a501e 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ XLS, XLSX, PPTX, DOC, DOCX, MobiXML, JPEG, EMF, PNG, BMP, GIF, TIFF, Text ## Read PDF Formats MHT, PCL, PS, XSLFO, MD -## Enhancements in Version 22.11 +## Enhancements in Version 22.12 - A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET. ## Requirements. diff --git a/asposepdfcloud/api_client.py b/asposepdfcloud/api_client.py index 174a7dc..8103a8f 100644 --- a/asposepdfcloud/api_client.py +++ b/asposepdfcloud/api_client.py @@ -83,7 +83,7 @@ def __init__(self, app_key, app_sid, host=None): self.rest_client = RESTClientObject() self.default_headers = {} self.default_headers['x-aspose-client'] = 'python sdk' - self.default_headers['x-aspose-client-version'] = '22.11.0' + self.default_headers['x-aspose-client-version'] = '22.12.0' self.app_key = app_key self.app_sid = app_sid diff --git a/asposepdfcloud/configuration.py b/asposepdfcloud/configuration.py index 2d25866..0e79d2e 100644 --- a/asposepdfcloud/configuration.py +++ b/asposepdfcloud/configuration.py @@ -199,5 +199,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 3.0\n"\ - "SDK Package Version: 22.11.0".\ + "SDK Package Version: 22.12.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/asposepdfcloud/models/text_replace.py b/asposepdfcloud/models/text_replace.py index d377b4d..3d32491 100644 --- a/asposepdfcloud/models/text_replace.py +++ b/asposepdfcloud/models/text_replace.py @@ -52,7 +52,8 @@ class TextReplace(object): 'new_value': 'str', 'regex': 'bool', 'text_state': 'TextState', - 'rect': 'Rectangle' + 'rect': 'Rectangle', + 'center_text_horizontally': 'bool' } attribute_map = { @@ -60,10 +61,11 @@ class TextReplace(object): 'new_value': 'NewValue', 'regex': 'Regex', 'text_state': 'TextState', - 'rect': 'Rect' + 'rect': 'Rect', + 'center_text_horizontally': 'CenterTextHorizontally' } - def __init__(self, old_value=None, new_value=None, regex=None, text_state=None, rect=None): + def __init__(self, old_value=None, new_value=None, regex=None, text_state=None, rect=None, center_text_horizontally=None): """ TextReplace - a model defined in Swagger """ @@ -73,6 +75,7 @@ def __init__(self, old_value=None, new_value=None, regex=None, text_state=None, self._regex = None self._text_state = None self._rect = None + self._center_text_horizontally = None self.old_value = old_value if new_value is not None: @@ -82,6 +85,8 @@ def __init__(self, old_value=None, new_value=None, regex=None, text_state=None, self.text_state = text_state if rect is not None: self.rect = rect + if center_text_horizontally is not None: + self.center_text_horizontally = center_text_horizontally @property def old_value(self): @@ -204,6 +209,29 @@ def rect(self, rect): self._rect = rect + @property + def center_text_horizontally(self): + """ + Gets the center_text_horizontally of this TextReplace. + The text after replacement is centered horizontally relative to the text being replaced. + + :return: The center_text_horizontally of this TextReplace. + :rtype: bool + """ + return self._center_text_horizontally + + @center_text_horizontally.setter + def center_text_horizontally(self, center_text_horizontally): + """ + Sets the center_text_horizontally of this TextReplace. + The text after replacement is centered horizontally relative to the text being replaced. + + :param center_text_horizontally: The center_text_horizontally of this TextReplace. + :type: bool + """ + + self._center_text_horizontally = center_text_horizontally + def to_dict(self): """ Returns the model properties as a dict diff --git a/docs/TextReplace.md b/docs/TextReplace.md index b72a46a..fd535ad 100644 --- a/docs/TextReplace.md +++ b/docs/TextReplace.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **regex** | **bool** | Gets or sets a value indicating whether search text is regular expression. | **text_state** | [**TextState**](TextState.md) | Text properties of a new text. | [optional] **rect** | [**Rectangle**](Rectangle.md) | Rectangle area where searched original text. | [optional] +**center_text_horizontally** | **bool** | The text after replacement is centered horizontally relative to the text being replaced. | [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/setup.py b/setup.py index 806aa92..d07c696 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ from setuptools import setup, find_packages NAME = "asposepdfcloud" -VERSION = "22.11.0" +VERSION = "22.12.0" # To install the library, run the following # # python setup.py install