Skip to content

Commit b9a0d5d

Browse files
author
Kirill Novinskiy
committed
update to 25.6.0
1 parent 1b16ac4 commit b9a0d5d

File tree

6 files changed

+163
-5
lines changed

6 files changed

+163
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ 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 25.5
34-
- Add a method for comparing pdf files.
33+
## Enhancements in Version 25.6
34+
- Develop Rotate Document Pages method.
3535
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
3636

3737
## Requirements.

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, self_host=False):
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'] = '25.5.0'
86+
self.default_headers['x-aspose-client-version'] = '25.6.0'
8787

8888
self.self_host = self_host
8989
self.app_key = app_key

asposepdfcloud/apis/pdf_api.py

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24907,6 +24907,136 @@ def post_document_page_number_stamps_with_http_info(self, name, stamp, **kwargs)
2490724907
_request_timeout=params.get('_request_timeout'),
2490824908
collection_formats=collection_formats)
2490924909

24910+
def post_document_pages_rotate(self, name, rotation_angle, pages, **kwargs):
24911+
"""
24912+
Rotate PDF document.
24913+
This method makes a synchronous HTTP request by default. To make an
24914+
asynchronous HTTP request, please define a `callback` function
24915+
to be invoked when receiving the response.
24916+
>>> def callback_function(response):
24917+
>>> pprint(response)
24918+
>>>
24919+
>>> thread = api.post_document_pages_rotate(name, rotation_angle, pages, callback=callback_function)
24920+
24921+
:param callback function: The callback function
24922+
for asynchronous request. (optional)
24923+
:param str name: The document name. (required)
24924+
:param str rotation_angle: Rotation Angle (CKW). Can be 90, 180, 270. (required)
24925+
:param str pages: Comma separated list of pages and page ranges. (Example: 1,3-5,8) (required)
24926+
:param str storage: The document storage.
24927+
:param str folder: The document folder.
24928+
:param str password: Base64 encoded password.
24929+
:return: AsposeResponse
24930+
If the method is called asynchronously,
24931+
returns the request thread.
24932+
"""
24933+
kwargs['_return_http_data_only'] = True
24934+
if kwargs.get('callback'):
24935+
return self.post_document_pages_rotate_with_http_info(name, rotation_angle, pages, **kwargs)
24936+
else:
24937+
(data) = self.post_document_pages_rotate_with_http_info(name, rotation_angle, pages, **kwargs)
24938+
return data
24939+
24940+
def post_document_pages_rotate_with_http_info(self, name, rotation_angle, pages, **kwargs):
24941+
"""
24942+
Rotate PDF document.
24943+
This method makes a synchronous HTTP request by default. To make an
24944+
asynchronous HTTP request, please define a `callback` function
24945+
to be invoked when receiving the response.
24946+
>>> def callback_function(response):
24947+
>>> pprint(response)
24948+
>>>
24949+
>>> thread = api.post_document_pages_rotate_with_http_info(name, rotation_angle, pages, callback=callback_function)
24950+
24951+
:param callback function: The callback function
24952+
for asynchronous request. (optional)
24953+
:param str name: The document name. (required)
24954+
:param str rotation_angle: Rotation Angle (CKW). Can be 90, 180, 270. (required)
24955+
:param str pages: Comma separated list of pages and page ranges. (Example: 1,3-5,8) (required)
24956+
:param str storage: The document storage.
24957+
:param str folder: The document folder.
24958+
:param str password: Base64 encoded password.
24959+
:return: AsposeResponse
24960+
If the method is called asynchronously,
24961+
returns the request thread.
24962+
"""
24963+
24964+
all_params = ['name', 'rotation_angle', 'pages', 'storage', 'folder', 'password']
24965+
all_params.append('callback')
24966+
all_params.append('_return_http_data_only')
24967+
all_params.append('_preload_content')
24968+
all_params.append('_request_timeout')
24969+
24970+
params = locals()
24971+
for key, val in iteritems(params['kwargs']):
24972+
if key not in all_params:
24973+
raise TypeError(
24974+
"Got an unexpected keyword argument '%s'"
24975+
" to method post_document_pages_rotate" % key
24976+
)
24977+
params[key] = val
24978+
del params['kwargs']
24979+
# verify the required parameter 'name' is set
24980+
if ('name' not in params) or (params['name'] is None):
24981+
raise ValueError("Missing the required parameter `name` when calling `post_document_pages_rotate`")
24982+
# verify the required parameter 'rotation_angle' is set
24983+
if ('rotation_angle' not in params) or (params['rotation_angle'] is None):
24984+
raise ValueError("Missing the required parameter `rotation_angle` when calling `post_document_pages_rotate`")
24985+
# verify the required parameter 'pages' is set
24986+
if ('pages' not in params) or (params['pages'] is None):
24987+
raise ValueError("Missing the required parameter `pages` when calling `post_document_pages_rotate`")
24988+
24989+
24990+
collection_formats = {}
24991+
24992+
path_params = {}
24993+
if 'name' in params:
24994+
path_params['name'] = params['name']
24995+
24996+
query_params = []
24997+
if 'rotation_angle' in params:
24998+
query_params.append(('rotationAngle', params['rotation_angle']))
24999+
if 'pages' in params:
25000+
query_params.append(('pages', params['pages']))
25001+
if 'storage' in params:
25002+
query_params.append(('storage', params['storage']))
25003+
if 'folder' in params:
25004+
query_params.append(('folder', params['folder']))
25005+
if 'password' in params:
25006+
query_params.append(('password', params['password']))
25007+
25008+
header_params = {}
25009+
25010+
form_params = []
25011+
local_var_files = {}
25012+
25013+
body_params = None
25014+
# HTTP header `Accept`
25015+
header_params['Accept'] = self.api_client.\
25016+
select_header_accept(['application/json'])
25017+
25018+
# HTTP header `Content-Type`
25019+
header_params['Content-Type'] = self.api_client.\
25020+
select_header_content_type(['application/json'])
25021+
25022+
# Authentication setting
25023+
auth_settings = ['JWT']
25024+
25025+
return self.api_client.call_api('/pdf/{name}/rotate', 'POST',
25026+
path_params,
25027+
query_params,
25028+
header_params,
25029+
body=body_params,
25030+
post_params=form_params,
25031+
files=local_var_files,
25032+
response_type='AsposeResponse',
25033+
auth_settings=auth_settings,
25034+
callback=params.get('callback'),
25035+
_return_http_data_only=params.get('_return_http_data_only'),
25036+
_preload_content=params.get('_preload_content', True),
25037+
_request_timeout=params.get('_request_timeout'),
25038+
collection_formats=collection_formats)
25039+
2491025040
def post_document_text_footer(self, name, text_footer, **kwargs):
2491125041
"""
2491225042
Add document text footer.

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

docs/PdfApi.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ Method | HTTP request | Description
212212
[**post_document_image_stamps**](PdfApi.md#post_document_image_stamps) | **POST** /pdf/\{name}/stamps/image | Add document pages image stamps.
213213
[**post_document_image_stamps_page_specified**](PdfApi.md#post_document_image_stamps_page_specified) | **POST** /pdf/\{name}/stamps/image/pagespecified | Add document image stamps to specified pages.
214214
[**post_document_page_number_stamps**](PdfApi.md#post_document_page_number_stamps) | **POST** /pdf/\{name}/stamps/pagenumber | Add document page number stamps.
215+
[**post_document_pages_rotate**](PdfApi.md#post_document_pages_rotate) | **POST** /pdf/\{name}/rotate | Rotate PDF document.
215216
[**post_document_text_footer**](PdfApi.md#post_document_text_footer) | **POST** /pdf/\{name}/footer/text | Add document text footer.
216217
[**post_document_text_header**](PdfApi.md#post_document_text_header) | **POST** /pdf/\{name}/header/text | Add document text header.
217218
[**post_document_text_replace**](PdfApi.md#post_document_text_replace) | **POST** /pdf/\{name}/text/replace | Document's replace text method.
@@ -5660,6 +5661,33 @@ Name | Type | Description | Notes
56605661

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

5664+
# **post_document_pages_rotate**
5665+
> AsposeResponse post_document_pages_rotate(name, rotation_angle, pages, storage=storage, folder=folder, password=password)
5666+
5667+
Rotate PDF document.
5668+
5669+
### Parameters
5670+
5671+
Name | Type | Description | Notes
5672+
------------- | ------------- | ------------- | -------------
5673+
**name** | **str**| The document name. |
5674+
**rotation_angle** | **str**| Rotation Angle (CKW). Can be 90, 180, 270. |
5675+
**pages** | **str**| Comma separated list of pages and page ranges. (Example: 1,3-5,8) |
5676+
**storage** | **str**| The document storage. | [optional]
5677+
**folder** | **str**| The document folder. | [optional]
5678+
**password** | **str**| Base64 encoded password. | [optional]
5679+
5680+
### Return type
5681+
5682+
[**AsposeResponse**](AsposeResponse.md)
5683+
5684+
### HTTP request headers
5685+
5686+
- **Content-Type**: application/json
5687+
- **Accept**: application/json
5688+
5689+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
5690+
56635691
# **post_document_text_footer**
56645692
> AsposeResponse post_document_text_footer(name, text_footer, start_page_number=start_page_number, end_page_number=end_page_number, storage=storage, folder=folder)
56655693

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

0 commit comments

Comments
 (0)