Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion asposepdfcloud/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion asposepdfcloud/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
34 changes: 31 additions & 3 deletions asposepdfcloud/models/text_replace.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,20 @@ class TextReplace(object):
'new_value': 'str',
'regex': 'bool',
'text_state': 'TextState',
'rect': 'Rectangle'
'rect': 'Rectangle',
'center_text_horizontally': 'bool'
}

attribute_map = {
'old_value': 'OldValue',
'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
"""
Expand All @@ -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:
Expand All @@ -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):
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/TextReplace.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down