Skip to content

Commit 7c1fee6

Browse files
SDK regenerated by CI server [ci skip]
1 parent 966adc5 commit 7c1fee6

File tree

8 files changed

+59
-27
lines changed

8 files changed

+59
-27
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ Python Cloud SDK wraps Aspose.Words Cloud API so you could seamlessly integrate
1616
- [Convert a document to desired file format](https://docs.aspose.cloud/display/wordscloud/Convert+Document+to+Destination+Format+with+Detailed+Settings+and+Save+Result+to+Storage) along with detailed settings.
1717
- Convert an encrypted PDF document into Word document format.
1818

19+
## Enhancements in Version 22.11
20+
21+
- Added 'EmbedAttachments' property for PdfSaveOptionsData class.
22+
23+
1924
## Enhancements in Version 22.10
2025

2126
- Added 'CacheHeaderFooterShapes' property for PdfSaveOptionsData class.

asposewordscloud/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
8383

8484
self.pool = None
8585
self.rest_client = rest.RESTClientObject(configuration)
86-
self.default_headers = {'x-aspose-client': 'python sdk', 'x-aspose-version': '22.10'}
86+
self.default_headers = {'x-aspose-client': 'python sdk', 'x-aspose-version': '22.11'}
8787
if header_name is not None:
8888
self.default_headers[header_name] = header_value
8989
self.cookie = cookie
9090
# Set default User-Agent.
91-
self.user_agent = 'python sdk 22.10'
91+
self.user_agent = 'python sdk 22.11'
9292

9393
def __del__(self):
9494
if not self.pool is None:

asposewordscloud/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,6 @@ def to_debug_report(self):
262262
return "Python SDK Debug Report:\n"\
263263
"OS: {env}\n"\
264264
"Python Version: {pyversion}\n"\
265-
"Version of the API: 22.10\n"\
266-
"SDK Package Version: 22.10".\
265+
"Version of the API: 22.11\n"\
266+
"SDK Package Version: 22.11".\
267267
format(env=sys.platform, pyversion=sys.version)

asposewordscloud/models/csv_data_load_options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import json
3232

3333
class CsvDataLoadOptions(object):
34-
"""Represents options for parsing CSV data.
34+
"""Represents options for parsing CSV data. To learn more, visit the LINQ Reporting Engine documentation article.
3535
"""
3636

3737
"""

asposewordscloud/models/pdf_save_options_data.py

Lines changed: 44 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,14 @@ class PdfSaveOptionsData(object):
6262
'optimize_output': 'bool',
6363
'page_count': 'int',
6464
'page_index': 'int',
65-
'cache_header_footer_shapes': 'bool',
65+
'cache_background_graphics': 'bool',
6666
'compliance': 'str',
6767
'create_note_hyperlinks': 'bool',
6868
'custom_properties_export': 'str',
6969
'digital_signature_details': 'PdfDigitalSignatureDetailsData',
7070
'display_doc_title': 'bool',
7171
'downsample_options': 'DownsampleOptionsData',
72+
'embed_attachments': 'bool',
7273
'embed_full_fonts': 'bool',
7374
'encryption_details': 'PdfEncryptionDetailsData',
7475
'export_document_structure': 'bool',
@@ -112,13 +113,14 @@ class PdfSaveOptionsData(object):
112113
'optimize_output': 'OptimizeOutput',
113114
'page_count': 'PageCount',
114115
'page_index': 'PageIndex',
115-
'cache_header_footer_shapes': 'CacheHeaderFooterShapes',
116+
'cache_background_graphics': 'CacheBackgroundGraphics',
116117
'compliance': 'Compliance',
117118
'create_note_hyperlinks': 'CreateNoteHyperlinks',
118119
'custom_properties_export': 'CustomPropertiesExport',
119120
'digital_signature_details': 'DigitalSignatureDetails',
120121
'display_doc_title': 'DisplayDocTitle',
121122
'downsample_options': 'DownsampleOptions',
123+
'embed_attachments': 'EmbedAttachments',
122124
'embed_full_fonts': 'EmbedFullFonts',
123125
'encryption_details': 'EncryptionDetails',
124126
'export_document_structure': 'ExportDocumentStructure',
@@ -141,7 +143,7 @@ class PdfSaveOptionsData(object):
141143
'zoom_factor': 'ZoomFactor'
142144
}
143145

144-
def __init__(self, allow_embedding_post_script_fonts=None, custom_time_zone_info_data=None, dml3_d_effects_rendering_mode=None, dml_effects_rendering_mode=None, dml_rendering_mode=None, file_name=None, iml_rendering_mode=None, update_created_time_property=None, update_fields=None, update_last_printed_property=None, update_last_saved_time_property=None, update_sdt_content=None, zip_output=None, color_mode=None, jpeg_quality=None, metafile_rendering_options=None, numeral_format=None, optimize_output=None, page_count=None, page_index=None, cache_header_footer_shapes=None, compliance=None, create_note_hyperlinks=None, custom_properties_export=None, digital_signature_details=None, display_doc_title=None, downsample_options=None, embed_full_fonts=None, encryption_details=None, export_document_structure=None, export_language_to_span_tag=None, font_embedding_mode=None, header_footer_bookmarks_export_mode=None, image_color_space_export_mode=None, image_compression=None, interpolate_images=None, open_hyperlinks_in_new_window=None, outline_options=None, page_mode=None, preblend_images=None, preserve_form_fields=None, text_compression=None, use_book_fold_printing_settings=None, use_core_fonts=None, zoom_behavior=None, zoom_factor=None): # noqa: E501
146+
def __init__(self, allow_embedding_post_script_fonts=None, custom_time_zone_info_data=None, dml3_d_effects_rendering_mode=None, dml_effects_rendering_mode=None, dml_rendering_mode=None, file_name=None, iml_rendering_mode=None, update_created_time_property=None, update_fields=None, update_last_printed_property=None, update_last_saved_time_property=None, update_sdt_content=None, zip_output=None, color_mode=None, jpeg_quality=None, metafile_rendering_options=None, numeral_format=None, optimize_output=None, page_count=None, page_index=None, cache_background_graphics=None, compliance=None, create_note_hyperlinks=None, custom_properties_export=None, digital_signature_details=None, display_doc_title=None, downsample_options=None, embed_attachments=None, embed_full_fonts=None, encryption_details=None, export_document_structure=None, export_language_to_span_tag=None, font_embedding_mode=None, header_footer_bookmarks_export_mode=None, image_color_space_export_mode=None, image_compression=None, interpolate_images=None, open_hyperlinks_in_new_window=None, outline_options=None, page_mode=None, preblend_images=None, preserve_form_fields=None, text_compression=None, use_book_fold_printing_settings=None, use_core_fonts=None, zoom_behavior=None, zoom_factor=None): # noqa: E501
145147
"""PdfSaveOptionsData - a model defined in Swagger""" # noqa: E501
146148

147149
self._allow_embedding_post_script_fonts = None
@@ -164,13 +166,14 @@ def __init__(self, allow_embedding_post_script_fonts=None, custom_time_zone_info
164166
self._optimize_output = None
165167
self._page_count = None
166168
self._page_index = None
167-
self._cache_header_footer_shapes = None
169+
self._cache_background_graphics = None
168170
self._compliance = None
169171
self._create_note_hyperlinks = None
170172
self._custom_properties_export = None
171173
self._digital_signature_details = None
172174
self._display_doc_title = None
173175
self._downsample_options = None
176+
self._embed_attachments = None
174177
self._embed_full_fonts = None
175178
self._encryption_details = None
176179
self._export_document_structure = None
@@ -233,8 +236,8 @@ def __init__(self, allow_embedding_post_script_fonts=None, custom_time_zone_info
233236
self.page_count = page_count
234237
if page_index is not None:
235238
self.page_index = page_index
236-
if cache_header_footer_shapes is not None:
237-
self.cache_header_footer_shapes = cache_header_footer_shapes
239+
if cache_background_graphics is not None:
240+
self.cache_background_graphics = cache_background_graphics
238241
if compliance is not None:
239242
self.compliance = compliance
240243
if create_note_hyperlinks is not None:
@@ -247,6 +250,8 @@ def __init__(self, allow_embedding_post_script_fonts=None, custom_time_zone_info
247250
self.display_doc_title = display_doc_title
248251
if downsample_options is not None:
249252
self.downsample_options = downsample_options
253+
if embed_attachments is not None:
254+
self.embed_attachments = embed_attachments
250255
if embed_full_fonts is not None:
251256
self.embed_full_fonts = embed_full_fonts
252257
if encryption_details is not None:
@@ -775,26 +780,26 @@ def page_index(self, page_index):
775780
self._page_index = page_index
776781

777782
@property
778-
def cache_header_footer_shapes(self):
779-
"""Gets the cache_header_footer_shapes of this PdfSaveOptionsData. # noqa: E501
783+
def cache_background_graphics(self):
784+
"""Gets the cache_background_graphics of this PdfSaveOptionsData. # noqa: E501
780785
781-
Gets or sets a value indicating whether or not to cache shapes placed in header and footer of document. # noqa: E501
786+
Gets or sets a value determining whether or not to cache graphics placed in document's background. # noqa: E501
782787
783-
:return: The cache_header_footer_shapes of this PdfSaveOptionsData. # noqa: E501
788+
:return: The cache_background_graphics of this PdfSaveOptionsData. # noqa: E501
784789
:rtype: bool
785790
"""
786-
return self._cache_header_footer_shapes
791+
return self._cache_background_graphics
787792

788-
@cache_header_footer_shapes.setter
789-
def cache_header_footer_shapes(self, cache_header_footer_shapes):
790-
"""Sets the cache_header_footer_shapes of this PdfSaveOptionsData.
793+
@cache_background_graphics.setter
794+
def cache_background_graphics(self, cache_background_graphics):
795+
"""Sets the cache_background_graphics of this PdfSaveOptionsData.
791796
792-
Gets or sets a value indicating whether or not to cache shapes placed in header and footer of document. # noqa: E501
797+
Gets or sets a value determining whether or not to cache graphics placed in document's background. # noqa: E501
793798
794-
:param cache_header_footer_shapes: The cache_header_footer_shapes of this PdfSaveOptionsData. # noqa: E501
799+
:param cache_background_graphics: The cache_background_graphics of this PdfSaveOptionsData. # noqa: E501
795800
:type: bool
796801
"""
797-
self._cache_header_footer_shapes = cache_header_footer_shapes
802+
self._cache_background_graphics = cache_background_graphics
798803

799804
@property
800805
def compliance(self):
@@ -944,6 +949,28 @@ def downsample_options(self, downsample_options):
944949
"""
945950
self._downsample_options = downsample_options
946951

952+
@property
953+
def embed_attachments(self):
954+
"""Gets the embed_attachments of this PdfSaveOptionsData. # noqa: E501
955+
956+
Gets or sets a value determining whether or not to embed attachments to the PDF document. # noqa: E501
957+
958+
:return: The embed_attachments of this PdfSaveOptionsData. # noqa: E501
959+
:rtype: bool
960+
"""
961+
return self._embed_attachments
962+
963+
@embed_attachments.setter
964+
def embed_attachments(self, embed_attachments):
965+
"""Sets the embed_attachments of this PdfSaveOptionsData.
966+
967+
Gets or sets a value determining whether or not to embed attachments to the PDF document. # noqa: E501
968+
969+
:param embed_attachments: The embed_attachments of this PdfSaveOptionsData. # noqa: E501
970+
:type: bool
971+
"""
972+
self._embed_attachments = embed_attachments
973+
947974
@property
948975
def embed_full_fonts(self):
949976
"""Gets the embed_full_fonts of this PdfSaveOptionsData. # noqa: E501

asposewordscloud/models/xml_data_load_options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import json
3232

3333
class XmlDataLoadOptions(object):
34-
"""Represents options for XML data loading.
34+
"""Represents options for XML data loading. To learn more, visit the LINQ Reporting Engine documentation article.
3535
"""
3636

3737
"""

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
77
8-
OpenAPI spec version: 22.10
8+
OpenAPI spec version: 22.11
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""
@@ -14,7 +14,7 @@
1414
from setuptools import setup, find_packages # noqa: H301
1515

1616
NAME = "aspose-words-cloud"
17-
VERSION = "22.10.0"
17+
VERSION = "22.11.0"
1818
# To install the library, run the following
1919
#
2020
# python setup.py install

test/api/page_setup/test_page_setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def test_get_render_page(self):
106106

107107
self.upload_file(remote_data_folder + '/' + remote_file_name, open(os.path.join(self.local_test_folder, local_text_file), 'rb'))
108108

109-
request = asposewordscloud.models.requests.RenderPageRequest(name=remote_file_name, page_index=1, format='bmp', folder=remote_data_folder)
109+
request = asposewordscloud.models.requests.RenderPageRequest(name=remote_file_name, page_index=1, format='jpg', folder=remote_data_folder)
110110

111111
result = self.words_api.render_page(request)
112112
self.assertIsNotNone(result, 'Error has occurred.')
@@ -119,7 +119,7 @@ def test_get_render_page_online(self):
119119
local_text_file = 'DocumentElements/Text/SampleWordDocument.docx'
120120

121121
request_document = open(os.path.join(self.local_test_folder, local_text_file), 'rb')
122-
request = asposewordscloud.models.requests.RenderPageOnlineRequest(document=request_document, page_index=1, format='bmp')
122+
request = asposewordscloud.models.requests.RenderPageOnlineRequest(document=request_document, page_index=1, format='jpg')
123123

124124
result = self.words_api.render_page_online(request)
125125
self.assertIsNotNone(result, 'Error has occurred.')

0 commit comments

Comments
 (0)