aspose_pdf_cloud 25.5.0 → 25.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aspose_pdf_cloud/api/pdf_api.rb +93 -0
- data/lib/aspose_pdf_cloud/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 543789aec6e50dc17f7a41dd3e52c898c3a5cb16f9796758e071a118d484d3d6
|
4
|
+
data.tar.gz: 56ac2776e15768eb6646dd67d5324cb4f3464ae6839697efe5372b0cce6c45f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5898c3546f3edc9e860da6c6a1c3ac60a501d65f26fd77634d43f01486f34875ccd3d30e7cfe510d376874cc1fd57a98c2e4698e01336e8cb0c0daf3b0d8d93d
|
7
|
+
data.tar.gz: 216e2be314ba11c3c0f6314c986eb779bb7b472aac6c3af25428ca38f3df20e6a4292ea8885027655b61b28fa95e636b67eecce139827edd456f44212040cadc
|
@@ -16351,6 +16351,99 @@ module AsposePdfCloud
|
|
16351
16351
|
return data, status_code, headers
|
16352
16352
|
end
|
16353
16353
|
|
16354
|
+
# Rotate PDF document.
|
16355
|
+
#
|
16356
|
+
# @param name The document name.
|
16357
|
+
# @param rotation_angle Rotation Angle (CKW). Can be 90, 180, 270.
|
16358
|
+
# @param pages Comma separated list of pages and page ranges. (Example: 1,3-5,8)
|
16359
|
+
# @param [Hash] opts the optional parameters
|
16360
|
+
# @option opts [String] :storage The document storage.
|
16361
|
+
# @option opts [String] :folder The document folder.
|
16362
|
+
# @option opts [String] :password Base64 encoded password.
|
16363
|
+
# @return [AsposeResponse]
|
16364
|
+
def post_document_pages_rotate(name, rotation_angle, pages, opts = {})
|
16365
|
+
@api_client.request_token_if_needed
|
16366
|
+
data, _status_code, _headers = post_document_pages_rotate_with_http_info(name, rotation_angle, pages, opts)
|
16367
|
+
rescue ApiError => error
|
16368
|
+
if error.code == 401
|
16369
|
+
@api_client.request_token_if_needed
|
16370
|
+
data, _status_code, _headers = post_document_pages_rotate_with_http_info(name, rotation_angle, pages, opts)
|
16371
|
+
else
|
16372
|
+
raise
|
16373
|
+
end
|
16374
|
+
return data
|
16375
|
+
end
|
16376
|
+
|
16377
|
+
# Rotate PDF document.
|
16378
|
+
#
|
16379
|
+
# @param name The document name.
|
16380
|
+
# @param rotation_angle Rotation Angle (CKW). Can be 90, 180, 270.
|
16381
|
+
# @param pages Comma separated list of pages and page ranges. (Example: 1,3-5,8)
|
16382
|
+
# @param [Hash] opts the optional parameters
|
16383
|
+
# @option opts [String] :storage The document storage.
|
16384
|
+
# @option opts [String] :folder The document folder.
|
16385
|
+
# @option opts [String] :password Base64 encoded password.
|
16386
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
16387
|
+
def post_document_pages_rotate_with_http_info(name, rotation_angle, pages, opts = {})
|
16388
|
+
if @api_client.config.debugging
|
16389
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_document_pages_rotate ..."
|
16390
|
+
end
|
16391
|
+
# verify the required parameter 'name' is set
|
16392
|
+
if @api_client.config.client_side_validation && name.nil?
|
16393
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_document_pages_rotate"
|
16394
|
+
end
|
16395
|
+
# verify the required parameter 'rotation_angle' is set
|
16396
|
+
if @api_client.config.client_side_validation && rotation_angle.nil?
|
16397
|
+
fail ArgumentError, "Missing the required parameter 'rotation_angle' when calling PdfApi.post_document_pages_rotate"
|
16398
|
+
end
|
16399
|
+
# verify enum value
|
16400
|
+
if @api_client.config.client_side_validation && !['None', 'on90', 'on180', 'on270'].include?(rotation_angle)
|
16401
|
+
fail ArgumentError, "invalid value for 'rotation_angle', must be one of None, on90, on180, on270"
|
16402
|
+
end
|
16403
|
+
# verify the required parameter 'pages' is set
|
16404
|
+
if @api_client.config.client_side_validation && pages.nil?
|
16405
|
+
fail ArgumentError, "Missing the required parameter 'pages' when calling PdfApi.post_document_pages_rotate"
|
16406
|
+
end
|
16407
|
+
# resource path
|
16408
|
+
local_var_path = "/pdf/{name}/rotate".sub('{' + 'name' + '}', name.to_s)
|
16409
|
+
|
16410
|
+
# query parameters
|
16411
|
+
query_params = {}
|
16412
|
+
query_params[:'rotationAngle'] = rotation_angle
|
16413
|
+
query_params[:'pages'] = pages
|
16414
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
16415
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
16416
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
16417
|
+
|
16418
|
+
# header parameters
|
16419
|
+
header_params = {}
|
16420
|
+
# HTTP header 'Accept' (if needed)
|
16421
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
16422
|
+
# HTTP header 'Content-Type'
|
16423
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
16424
|
+
|
16425
|
+
# form parameters
|
16426
|
+
form_params = {}
|
16427
|
+
# Fix header in file
|
16428
|
+
post_body = nil
|
16429
|
+
|
16430
|
+
# http body (model)
|
16431
|
+
# Fix header in file
|
16432
|
+
# post_body = nil
|
16433
|
+
auth_names = ['JWT']
|
16434
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
16435
|
+
:header_params => header_params,
|
16436
|
+
:query_params => query_params,
|
16437
|
+
:form_params => form_params,
|
16438
|
+
:body => post_body,
|
16439
|
+
:auth_names => auth_names,
|
16440
|
+
:return_type => 'AsposeResponse')
|
16441
|
+
if @api_client.config.debugging
|
16442
|
+
@api_client.config.logger.debug "API called: PdfApi#post_document_pages_rotate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
16443
|
+
end
|
16444
|
+
return data, status_code, headers
|
16445
|
+
end
|
16446
|
+
|
16354
16447
|
# Add document text footer.
|
16355
16448
|
#
|
16356
16449
|
# @param name The document name.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspose_pdf_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 25.
|
4
|
+
version: 25.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aspose PDF Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|