Skip to content

Commit 922c9c1

Browse files
committed
Update to v20.4
1 parent edcac1c commit 922c9c1

File tree

12 files changed

+436
-32
lines changed

12 files changed

+436
-32
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Aspose.PDF Cloud
22
- API version: 3.0
3-
- Package version: 20.2.0
3+
- Package version: 20.4.0
44

55
[Aspose.PDF Cloud](https://products.aspose.cloud/pdf) is a true REST API that enables you to perform a wide range of document processing operations including creation, manipulation, conversion and rendering of Pdf documents in the cloud.
66

@@ -504,6 +504,7 @@ Class | Method | HTTP request | Description
504504
- [HorizontalAlignment](docs/HorizontalAlignment.md)
505505
- [HtmlDocumentType](docs/HtmlDocumentType.md)
506506
- [HtmlMarkupGenerationModes](docs/HtmlMarkupGenerationModes.md)
507+
- [ImageFragment](docs/ImageFragment.md)
507508
- [ImageSrcType](docs/ImageSrcType.md)
508509
- [ImageTemplate](docs/ImageTemplate.md)
509510
- [ImageTemplatesRequest](docs/ImageTemplatesRequest.md)

asposepdfcloud/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
from .models.horizontal_alignment import HorizontalAlignment
7878
from .models.html_document_type import HtmlDocumentType
7979
from .models.html_markup_generation_modes import HtmlMarkupGenerationModes
80+
from .models.image_fragment import ImageFragment
8081
from .models.image_src_type import ImageSrcType
8182
from .models.image_template import ImageTemplate
8283
from .models.image_templates_request import ImageTemplatesRequest

asposepdfcloud/apis/pdf_api.py

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17162,7 +17162,6 @@ def get_pdf_in_storage_to_la_te_x(self, name, **kwargs):
1716217162
:param callback function: The callback function
1716317163
for asynchronous request. (optional)
1716417164
:param str name: The document name. (required)
17165-
:param int pages_count: Pages count.
1716617165
:param str folder: The document folder.
1716717166
:param str storage: The document storage.
1716817167
:return: file
@@ -17190,15 +17189,14 @@ def get_pdf_in_storage_to_la_te_x_with_http_info(self, name, **kwargs):
1719017189
:param callback function: The callback function
1719117190
for asynchronous request. (optional)
1719217191
:param str name: The document name. (required)
17193-
:param int pages_count: Pages count.
1719417192
:param str folder: The document folder.
1719517193
:param str storage: The document storage.
1719617194
:return: file
1719717195
If the method is called asynchronously,
1719817196
returns the request thread.
1719917197
"""
1720017198

17201-
all_params = ['name', 'pages_count', 'folder', 'storage']
17199+
all_params = ['name', 'folder', 'storage']
1720217200
all_params.append('callback')
1720317201
all_params.append('_return_http_data_only')
1720417202
all_params.append('_preload_content')
@@ -17225,8 +17223,6 @@ def get_pdf_in_storage_to_la_te_x_with_http_info(self, name, **kwargs):
1722517223
path_params['name'] = params['name']
1722617224

1722717225
query_params = []
17228-
if 'pages_count' in params:
17229-
query_params.append(('pagesCount', params['pages_count']))
1723017226
if 'folder' in params:
1723117227
query_params.append(('folder', params['folder']))
1723217228
if 'storage' in params:
@@ -36379,7 +36375,6 @@ def put_pdf_in_request_to_la_te_x(self, out_path, **kwargs):
3637936375
:param callback function: The callback function
3638036376
for asynchronous request. (optional)
3638136377
:param str out_path: Full resulting filename (ex. /folder1/folder2/result.tex) (required)
36382-
:param int pages_count: Pages count.
3638336378
:param str storage: The document storage.
3638436379
:param file file: A file to be converted.
3638536380
:return: AsposeResponse
@@ -36407,15 +36402,14 @@ def put_pdf_in_request_to_la_te_x_with_http_info(self, out_path, **kwargs):
3640736402
:param callback function: The callback function
3640836403
for asynchronous request. (optional)
3640936404
:param str out_path: Full resulting filename (ex. /folder1/folder2/result.tex) (required)
36410-
:param int pages_count: Pages count.
3641136405
:param str storage: The document storage.
3641236406
:param file file: A file to be converted.
3641336407
:return: AsposeResponse
3641436408
If the method is called asynchronously,
3641536409
returns the request thread.
3641636410
"""
3641736411

36418-
all_params = ['out_path', 'pages_count', 'storage', 'file']
36412+
all_params = ['out_path', 'storage', 'file']
3641936413
all_params.append('callback')
3642036414
all_params.append('_return_http_data_only')
3642136415
all_params.append('_preload_content')
@@ -36442,8 +36436,6 @@ def put_pdf_in_request_to_la_te_x_with_http_info(self, out_path, **kwargs):
3644236436
query_params = []
3644336437
if 'out_path' in params:
3644436438
query_params.append(('outPath', params['out_path']))
36445-
if 'pages_count' in params:
36446-
query_params.append(('pagesCount', params['pages_count']))
3644736439
if 'storage' in params:
3644836440
query_params.append(('storage', params['storage']))
3644936441

@@ -38121,7 +38113,6 @@ def put_pdf_in_storage_to_la_te_x(self, name, out_path, **kwargs):
3812138113
for asynchronous request. (optional)
3812238114
:param str name: The document name. (required)
3812338115
:param str out_path: Full resulting filename (ex. /folder1/folder2/result.tex) (required)
38124-
:param int pages_count: Pages count.
3812538116
:param str folder: The document folder.
3812638117
:param str storage: The document storage.
3812738118
:return: AsposeResponse
@@ -38150,15 +38141,14 @@ def put_pdf_in_storage_to_la_te_x_with_http_info(self, name, out_path, **kwargs)
3815038141
for asynchronous request. (optional)
3815138142
:param str name: The document name. (required)
3815238143
:param str out_path: Full resulting filename (ex. /folder1/folder2/result.tex) (required)
38153-
:param int pages_count: Pages count.
3815438144
:param str folder: The document folder.
3815538145
:param str storage: The document storage.
3815638146
:return: AsposeResponse
3815738147
If the method is called asynchronously,
3815838148
returns the request thread.
3815938149
"""
3816038150

38161-
all_params = ['name', 'out_path', 'pages_count', 'folder', 'storage']
38151+
all_params = ['name', 'out_path', 'folder', 'storage']
3816238152
all_params.append('callback')
3816338153
all_params.append('_return_http_data_only')
3816438154
all_params.append('_preload_content')
@@ -38190,8 +38180,6 @@ def put_pdf_in_storage_to_la_te_x_with_http_info(self, name, out_path, **kwargs)
3819038180
query_params = []
3819138181
if 'out_path' in params:
3819238182
query_params.append(('outPath', params['out_path']))
38193-
if 'pages_count' in params:
38194-
query_params.append(('pagesCount', params['pages_count']))
3819538183
if 'folder' in params:
3819638184
query_params.append(('folder', params['folder']))
3819738185
if 'storage' in params:

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: 20.2.0".\
202+
"SDK Package Version: 20.4.0".\
203203
format(env=sys.platform, pyversion=sys.version)

asposepdfcloud/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
from .horizontal_alignment import HorizontalAlignment
7878
from .html_document_type import HtmlDocumentType
7979
from .html_markup_generation_modes import HtmlMarkupGenerationModes
80+
from .image_fragment import ImageFragment
8081
from .image_src_type import ImageSrcType
8182
from .image_template import ImageTemplate
8283
from .image_templates_request import ImageTemplatesRequest

asposepdfcloud/models/cell.py

Lines changed: 87 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,17 @@ class Cell(object):
5353
'border': 'BorderInfo',
5454
'background_color': 'Color',
5555
'background_image_file': 'str',
56+
'background_image_storage_file': 'str',
5657
'alignment': 'HorizontalAlignment',
5758
'default_cell_text_state': 'TextState',
5859
'paragraphs': 'list[TextRect]',
5960
'is_word_wrapped': 'bool',
6061
'vertical_alignment': 'VerticalAlignment',
6162
'col_span': 'int',
6263
'row_span': 'int',
63-
'width': 'float'
64+
'width': 'float',
65+
'html_fragment': 'str',
66+
'images': 'list[ImageFragment]'
6467
}
6568

6669
attribute_map = {
@@ -69,17 +72,20 @@ class Cell(object):
6972
'border': 'Border',
7073
'background_color': 'BackgroundColor',
7174
'background_image_file': 'BackgroundImageFile',
75+
'background_image_storage_file': 'BackgroundImageStorageFile',
7276
'alignment': 'Alignment',
7377
'default_cell_text_state': 'DefaultCellTextState',
7478
'paragraphs': 'Paragraphs',
7579
'is_word_wrapped': 'IsWordWrapped',
7680
'vertical_alignment': 'VerticalAlignment',
7781
'col_span': 'ColSpan',
7882
'row_span': 'RowSpan',
79-
'width': 'Width'
83+
'width': 'Width',
84+
'html_fragment': 'HtmlFragment',
85+
'images': 'Images'
8086
}
8187

82-
def __init__(self, is_no_border=None, margin=None, border=None, background_color=None, background_image_file=None, alignment=None, default_cell_text_state=None, paragraphs=None, is_word_wrapped=None, vertical_alignment=None, col_span=None, row_span=None, width=None):
88+
def __init__(self, is_no_border=None, margin=None, border=None, background_color=None, background_image_file=None, background_image_storage_file=None, alignment=None, default_cell_text_state=None, paragraphs=None, is_word_wrapped=None, vertical_alignment=None, col_span=None, row_span=None, width=None, html_fragment=None, images=None):
8389
"""
8490
Cell - a model defined in Swagger
8591
"""
@@ -89,6 +95,7 @@ def __init__(self, is_no_border=None, margin=None, border=None, background_color
8995
self._border = None
9096
self._background_color = None
9197
self._background_image_file = None
98+
self._background_image_storage_file = None
9299
self._alignment = None
93100
self._default_cell_text_state = None
94101
self._paragraphs = None
@@ -97,6 +104,8 @@ def __init__(self, is_no_border=None, margin=None, border=None, background_color
97104
self._col_span = None
98105
self._row_span = None
99106
self._width = None
107+
self._html_fragment = None
108+
self._images = None
100109

101110
if is_no_border is not None:
102111
self.is_no_border = is_no_border
@@ -108,6 +117,8 @@ def __init__(self, is_no_border=None, margin=None, border=None, background_color
108117
self.background_color = background_color
109118
if background_image_file is not None:
110119
self.background_image_file = background_image_file
120+
if background_image_storage_file is not None:
121+
self.background_image_storage_file = background_image_storage_file
111122
if alignment is not None:
112123
self.alignment = alignment
113124
if default_cell_text_state is not None:
@@ -124,6 +135,10 @@ def __init__(self, is_no_border=None, margin=None, border=None, background_color
124135
self.row_span = row_span
125136
if width is not None:
126137
self.width = width
138+
if html_fragment is not None:
139+
self.html_fragment = html_fragment
140+
if images is not None:
141+
self.images = images
127142

128143
@property
129144
def is_no_border(self):
@@ -240,6 +255,29 @@ def background_image_file(self, background_image_file):
240255

241256
self._background_image_file = background_image_file
242257

258+
@property
259+
def background_image_storage_file(self):
260+
"""
261+
Gets the background_image_storage_file of this Cell.
262+
Gets or sets path of the background image file from storage.
263+
264+
:return: The background_image_storage_file of this Cell.
265+
:rtype: str
266+
"""
267+
return self._background_image_storage_file
268+
269+
@background_image_storage_file.setter
270+
def background_image_storage_file(self, background_image_storage_file):
271+
"""
272+
Sets the background_image_storage_file of this Cell.
273+
Gets or sets path of the background image file from storage.
274+
275+
:param background_image_storage_file: The background_image_storage_file of this Cell.
276+
:type: str
277+
"""
278+
279+
self._background_image_storage_file = background_image_storage_file
280+
243281
@property
244282
def alignment(self):
245283
"""
@@ -424,6 +462,52 @@ def width(self, width):
424462

425463
self._width = width
426464

465+
@property
466+
def html_fragment(self):
467+
"""
468+
Gets the html_fragment of this Cell.
469+
Gets or sets Html fragment.
470+
471+
:return: The html_fragment of this Cell.
472+
:rtype: str
473+
"""
474+
return self._html_fragment
475+
476+
@html_fragment.setter
477+
def html_fragment(self, html_fragment):
478+
"""
479+
Sets the html_fragment of this Cell.
480+
Gets or sets Html fragment.
481+
482+
:param html_fragment: The html_fragment of this Cell.
483+
:type: str
484+
"""
485+
486+
self._html_fragment = html_fragment
487+
488+
@property
489+
def images(self):
490+
"""
491+
Gets the images of this Cell.
492+
Gets or sets ImageFragment list.
493+
494+
:return: The images of this Cell.
495+
:rtype: list[ImageFragment]
496+
"""
497+
return self._images
498+
499+
@images.setter
500+
def images(self, images):
501+
"""
502+
Sets the images of this Cell.
503+
Gets or sets ImageFragment list.
504+
505+
:param images: The images of this Cell.
506+
:type: list[ImageFragment]
507+
"""
508+
509+
self._images = images
510+
427511
def to_dict(self):
428512
"""
429513
Returns the model properties as a dict

0 commit comments

Comments
 (0)