Skip to content

Commit 03e8a0b

Browse files
update to 22.3
1 parent 825282d commit 03e8a0b

File tree

6 files changed

+128
-17
lines changed

6 files changed

+128
-17
lines changed

README.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,14 @@ 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.2
33+
## Enhancements in Version 22.3
34+
- PDFCLOUD-2729: Add StrikeOut, Superscript, Subscript properties to TextState.
35+
- PDFCLOUD-2623: Underline property is missing in TextState.
3436
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
3537

36-
## Bugs fixed in Version 22.2
37-
- PDF to XLSX: Google sheet does not recognize output excel sheet.
38-
- Text Replace API method throws Internal Error.
39-
40-
## Enhancements in Version 20.9
41-
* Implemented custom fonts for Text API.
42-
* Added custom fonts for Table API.
43-
* Added support for custom fonts for Stamps API.
44-
* Support for custom fonts for Header/Footer API.
45-
* Included custom fonts for Replace Text API.
38+
## Bugs fixed in Version 22.3
39+
- PDFCLOUD-2714: GetFields API method not extracting PDF form fields.
40+
- PDFCLOUD-2641: PostSplitDocument returns wrong path.
4641

4742
## Requirements.
4843
Python 2.7 and 3.4+

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.2.0'
86+
self.default_headers['x-aspose-client-version'] = '22.3.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.2.0".\
202+
"SDK Package Version: 22.3.0".\
203203
format(env=sys.platform, pyversion=sys.version)

asposepdfcloud/models/text_state.py

Lines changed: 115 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ class TextState(object):
5353
'foreground_color': 'Color',
5454
'background_color': 'Color',
5555
'font_style': 'FontStyles',
56-
'font_file': 'str'
56+
'font_file': 'str',
57+
'underline': 'bool',
58+
'strike_out': 'bool',
59+
'superscript': 'bool',
60+
'subscript': 'bool'
5761
}
5862

5963
attribute_map = {
@@ -62,10 +66,14 @@ class TextState(object):
6266
'foreground_color': 'ForegroundColor',
6367
'background_color': 'BackgroundColor',
6468
'font_style': 'FontStyle',
65-
'font_file': 'FontFile'
69+
'font_file': 'FontFile',
70+
'underline': 'Underline',
71+
'strike_out': 'StrikeOut',
72+
'superscript': 'Superscript',
73+
'subscript': 'Subscript'
6674
}
6775

68-
def __init__(self, font_size=None, font=None, foreground_color=None, background_color=None, font_style=None, font_file=None):
76+
def __init__(self, font_size=None, font=None, foreground_color=None, background_color=None, font_style=None, font_file=None, underline=None, strike_out=None, superscript=None, subscript=None):
6977
"""
7078
TextState - a model defined in Swagger
7179
"""
@@ -76,6 +84,10 @@ def __init__(self, font_size=None, font=None, foreground_color=None, background_
7684
self._background_color = None
7785
self._font_style = None
7886
self._font_file = None
87+
self._underline = None
88+
self._strike_out = None
89+
self._superscript = None
90+
self._subscript = None
7991

8092
self.font_size = font_size
8193
if font is not None:
@@ -87,6 +99,14 @@ def __init__(self, font_size=None, font=None, foreground_color=None, background_
8799
self.font_style = font_style
88100
if font_file is not None:
89101
self.font_file = font_file
102+
if underline is not None:
103+
self.underline = underline
104+
if strike_out is not None:
105+
self.strike_out = strike_out
106+
if superscript is not None:
107+
self.superscript = superscript
108+
if subscript is not None:
109+
self.subscript = subscript
90110

91111
@property
92112
def font_size(self):
@@ -230,6 +250,98 @@ def font_file(self, font_file):
230250

231251
self._font_file = font_file
232252

253+
@property
254+
def underline(self):
255+
"""
256+
Gets the underline of this TextState.
257+
Gets or sets underline of the text.
258+
259+
:return: The underline of this TextState.
260+
:rtype: bool
261+
"""
262+
return self._underline
263+
264+
@underline.setter
265+
def underline(self, underline):
266+
"""
267+
Sets the underline of this TextState.
268+
Gets or sets underline of the text.
269+
270+
:param underline: The underline of this TextState.
271+
:type: bool
272+
"""
273+
274+
self._underline = underline
275+
276+
@property
277+
def strike_out(self):
278+
"""
279+
Gets the strike_out of this TextState.
280+
Gets or sets strikeout of the text.
281+
282+
:return: The strike_out of this TextState.
283+
:rtype: bool
284+
"""
285+
return self._strike_out
286+
287+
@strike_out.setter
288+
def strike_out(self, strike_out):
289+
"""
290+
Sets the strike_out of this TextState.
291+
Gets or sets strikeout of the text.
292+
293+
:param strike_out: The strike_out of this TextState.
294+
:type: bool
295+
"""
296+
297+
self._strike_out = strike_out
298+
299+
@property
300+
def superscript(self):
301+
"""
302+
Gets the superscript of this TextState.
303+
Gets or sets superscript mode of the text.
304+
305+
:return: The superscript of this TextState.
306+
:rtype: bool
307+
"""
308+
return self._superscript
309+
310+
@superscript.setter
311+
def superscript(self, superscript):
312+
"""
313+
Sets the superscript of this TextState.
314+
Gets or sets superscript mode of the text.
315+
316+
:param superscript: The superscript of this TextState.
317+
:type: bool
318+
"""
319+
320+
self._superscript = superscript
321+
322+
@property
323+
def subscript(self):
324+
"""
325+
Gets the subscript of this TextState.
326+
Gets or sets subscript mode of the text.
327+
328+
:return: The subscript of this TextState.
329+
:rtype: bool
330+
"""
331+
return self._subscript
332+
333+
@subscript.setter
334+
def subscript(self, subscript):
335+
"""
336+
Sets the subscript of this TextState.
337+
Gets or sets subscript mode of the text.
338+
339+
:param subscript: The subscript of this TextState.
340+
:type: bool
341+
"""
342+
343+
self._subscript = subscript
344+
233345
def to_dict(self):
234346
"""
235347
Returns the model properties as a dict

docs/TextState.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ Name | Type | Description | Notes
1010
**background_color** | [**Color**](Color.md) | Sets background color of the text. | [optional]
1111
**font_style** | [**FontStyles**](FontStyles.md) | Sets font style of the text. |
1212
**font_file** | **str** | Sets path of font file in storage. | [optional]
13+
**underline** | **bool** | Gets or sets underline of the text. | [optional]
14+
**strike_out** | **bool** | Gets or sets strikeout of the text. | [optional]
15+
**superscript** | **bool** | Gets or sets superscript mode of the text. | [optional]
16+
**subscript** | **bool** | Gets or sets subscript mode of the text. | [optional]
1317

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

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.2.0"
35+
VERSION = "22.3.0"
3636
# To install the library, run the following
3737
#
3838
# python setup.py install

0 commit comments

Comments
 (0)