aspose_pdf_cloud 25.7.0 → 25.8.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 +96 -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: 9477e9e7cac55f95802a02b87b4fa0e7557466a99311b04ccd71601e1b01f2d6
|
4
|
+
data.tar.gz: 48b556fa6a38047afae63be8e280ab2ba7727764c2d7cd9e6660ce896d4966db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2692e9d0cf87ea18b73d6003e967346b54b809fc69274f371c9e69435d65c4d1ff7987a0cc45476017486adf2a2f0eb62e02b008bc4b1d7ee669fe7d00b4c1bf
|
7
|
+
data.tar.gz: 474742964b082e2ef8e4939379e073654d3be80f3941c84c76670dd88aa7cf99f06ec00f1808bb7f6110707099bbc82726eeac48a200a93b608918a19a6ae0f0
|
@@ -16351,6 +16351,102 @@ module AsposePdfCloud
|
|
16351
16351
|
return data, status_code, headers
|
16352
16352
|
end
|
16353
16353
|
|
16354
|
+
# Rsize PDF document.
|
16355
|
+
#
|
16356
|
+
# @param name The document name.
|
16357
|
+
# @param height Page Height
|
16358
|
+
# @param width Page width
|
16359
|
+
# @param pages Comma separated list of pages and page ranges. (Example: 1,3-5,8)
|
16360
|
+
# @param [Hash] opts the optional parameters
|
16361
|
+
# @option opts [String] :storage The document storage.
|
16362
|
+
# @option opts [String] :folder The document folder.
|
16363
|
+
# @option opts [String] :password Base64 encoded password.
|
16364
|
+
# @return [AsposeResponse]
|
16365
|
+
def post_document_pages_resize(name, height, width, pages, opts = {})
|
16366
|
+
@api_client.request_token_if_needed
|
16367
|
+
data, _status_code, _headers = post_document_pages_resize_with_http_info(name, height, width, pages, opts)
|
16368
|
+
rescue ApiError => error
|
16369
|
+
if error.code == 401
|
16370
|
+
@api_client.request_token_if_needed
|
16371
|
+
data, _status_code, _headers = post_document_pages_resize_with_http_info(name, height, width, pages, opts)
|
16372
|
+
else
|
16373
|
+
raise
|
16374
|
+
end
|
16375
|
+
return data
|
16376
|
+
end
|
16377
|
+
|
16378
|
+
# Rsize PDF document.
|
16379
|
+
#
|
16380
|
+
# @param name The document name.
|
16381
|
+
# @param height Page Height
|
16382
|
+
# @param width Page width
|
16383
|
+
# @param pages Comma separated list of pages and page ranges. (Example: 1,3-5,8)
|
16384
|
+
# @param [Hash] opts the optional parameters
|
16385
|
+
# @option opts [String] :storage The document storage.
|
16386
|
+
# @option opts [String] :folder The document folder.
|
16387
|
+
# @option opts [String] :password Base64 encoded password.
|
16388
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
16389
|
+
def post_document_pages_resize_with_http_info(name, height, width, pages, opts = {})
|
16390
|
+
if @api_client.config.debugging
|
16391
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_document_pages_resize ..."
|
16392
|
+
end
|
16393
|
+
# verify the required parameter 'name' is set
|
16394
|
+
if @api_client.config.client_side_validation && name.nil?
|
16395
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_document_pages_resize"
|
16396
|
+
end
|
16397
|
+
# verify the required parameter 'height' is set
|
16398
|
+
if @api_client.config.client_side_validation && height.nil?
|
16399
|
+
fail ArgumentError, "Missing the required parameter 'height' when calling PdfApi.post_document_pages_resize"
|
16400
|
+
end
|
16401
|
+
# verify the required parameter 'width' is set
|
16402
|
+
if @api_client.config.client_side_validation && width.nil?
|
16403
|
+
fail ArgumentError, "Missing the required parameter 'width' when calling PdfApi.post_document_pages_resize"
|
16404
|
+
end
|
16405
|
+
# verify the required parameter 'pages' is set
|
16406
|
+
if @api_client.config.client_side_validation && pages.nil?
|
16407
|
+
fail ArgumentError, "Missing the required parameter 'pages' when calling PdfApi.post_document_pages_resize"
|
16408
|
+
end
|
16409
|
+
# resource path
|
16410
|
+
local_var_path = "/pdf/{name}/resize".sub('{' + 'name' + '}', name.to_s)
|
16411
|
+
|
16412
|
+
# query parameters
|
16413
|
+
query_params = {}
|
16414
|
+
query_params[:'height'] = height
|
16415
|
+
query_params[:'width'] = width
|
16416
|
+
query_params[:'pages'] = pages
|
16417
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
16418
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
16419
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
16420
|
+
|
16421
|
+
# header parameters
|
16422
|
+
header_params = {}
|
16423
|
+
# HTTP header 'Accept' (if needed)
|
16424
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
16425
|
+
# HTTP header 'Content-Type'
|
16426
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
16427
|
+
|
16428
|
+
# form parameters
|
16429
|
+
form_params = {}
|
16430
|
+
# Fix header in file
|
16431
|
+
post_body = nil
|
16432
|
+
|
16433
|
+
# http body (model)
|
16434
|
+
# Fix header in file
|
16435
|
+
# post_body = nil
|
16436
|
+
auth_names = ['JWT']
|
16437
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
16438
|
+
:header_params => header_params,
|
16439
|
+
:query_params => query_params,
|
16440
|
+
:form_params => form_params,
|
16441
|
+
:body => post_body,
|
16442
|
+
:auth_names => auth_names,
|
16443
|
+
:return_type => 'AsposeResponse')
|
16444
|
+
if @api_client.config.debugging
|
16445
|
+
@api_client.config.logger.debug "API called: PdfApi#post_document_pages_resize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
16446
|
+
end
|
16447
|
+
return data, status_code, headers
|
16448
|
+
end
|
16449
|
+
|
16354
16450
|
# Rotate PDF document.
|
16355
16451
|
#
|
16356
16452
|
# @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.8.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-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|