aspose_pdf_cloud 25.7.0 → 25.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e0ef4ade1f8dea3694ac7a6765c8df53dd2ac7c5653a19836c25362a5c376f5
4
- data.tar.gz: c61386d7257f60efcb589b1d775ae9032a30b6cccc771eb7ce4c470bed816ad6
3
+ metadata.gz: 69d9aa0c1dbb6bafe4c8790be43e3669a3093ff5daff622b0f2bc18f53ef06c0
4
+ data.tar.gz: c72ecbb919586ad12a7a043c53e93633c81d7577400c07c2b6eb20fec21a0288
5
5
  SHA512:
6
- metadata.gz: 0abe7ce9e7d910f1e9cf97f9f0da60795d4ac4aaec4138d13721c2ef6985c66ea6e096d3aed4d9ffd353ae488fb694c6f3b2cf85db5baed32941c700323bc44a
7
- data.tar.gz: 1aae1871946a08c8826e1fc30ae3159e0e42efff0b331cc07faefd3e9ef96edd3d48a289347d6164c33153c5731eb41856d3f8b8466ec3151aa635259662b8d8
6
+ metadata.gz: b9ad4f06d657b61bf3e0f81d4dbddfbb4403d48950f90e2b8e517592ad65d5363c7783a7dcce60af7bc6d4831dcf6eef030966c438852163b591fa518ce4e704
7
+ data.tar.gz: 3e8fdb015c608207bf606c24b9e9d821dfb869b4f3d298b760c3ba7725cdfd3225b9329e00eb5edbe930aa6ceade86737528a90529f574e677845edc3a073979
@@ -16351,6 +16351,189 @@ module AsposePdfCloud
16351
16351
  return data, status_code, headers
16352
16352
  end
16353
16353
 
16354
+ # Crop PDF document pages.
16355
+ #
16356
+ # @param name The document name.
16357
+ # @param pages Comma separated list of pages and page ranges. (Example: 1,3-5,8)
16358
+ # @param rect Rectangle of document area.
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_crop(name, pages, rect, opts = {})
16365
+ @api_client.request_token_if_needed
16366
+ data, _status_code, _headers = post_document_pages_crop_with_http_info(name, pages, rect, 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_crop_with_http_info(name, pages, rect, opts)
16371
+ else
16372
+ raise
16373
+ end
16374
+ return data
16375
+ end
16376
+
16377
+ # Crop PDF document pages.
16378
+ #
16379
+ # @param name The document name.
16380
+ # @param pages Comma separated list of pages and page ranges. (Example: 1,3-5,8)
16381
+ # @param rect Rectangle of document area.
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_crop_with_http_info(name, pages, rect, opts = {})
16388
+ if @api_client.config.debugging
16389
+ @api_client.config.logger.debug "Calling API: PdfApi.post_document_pages_crop ..."
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_crop"
16394
+ end
16395
+ # verify the required parameter 'pages' is set
16396
+ if @api_client.config.client_side_validation && pages.nil?
16397
+ fail ArgumentError, "Missing the required parameter 'pages' when calling PdfApi.post_document_pages_crop"
16398
+ end
16399
+ # verify the required parameter 'rect' is set
16400
+ if @api_client.config.client_side_validation && rect.nil?
16401
+ fail ArgumentError, "Missing the required parameter 'rect' when calling PdfApi.post_document_pages_crop"
16402
+ end
16403
+ # resource path
16404
+ local_var_path = "/pdf/{name}/crop".sub('{' + 'name' + '}', name.to_s)
16405
+
16406
+ # query parameters
16407
+ query_params = {}
16408
+ query_params[:'pages'] = pages
16409
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
16410
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
16411
+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
16412
+
16413
+ # header parameters
16414
+ header_params = {}
16415
+ # HTTP header 'Accept' (if needed)
16416
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
16417
+ # HTTP header 'Content-Type'
16418
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
16419
+
16420
+ # form parameters
16421
+ form_params = {}
16422
+ # Fix header in file
16423
+ post_body = nil
16424
+
16425
+ # http body (model)
16426
+ post_body = @api_client.object_to_http_body(rect)
16427
+ auth_names = ['JWT']
16428
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
16429
+ :header_params => header_params,
16430
+ :query_params => query_params,
16431
+ :form_params => form_params,
16432
+ :body => post_body,
16433
+ :auth_names => auth_names,
16434
+ :return_type => 'AsposeResponse')
16435
+ if @api_client.config.debugging
16436
+ @api_client.config.logger.debug "API called: PdfApi#post_document_pages_crop\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16437
+ end
16438
+ return data, status_code, headers
16439
+ end
16440
+
16441
+ # Rsize PDF document.
16442
+ #
16443
+ # @param name The document name.
16444
+ # @param height Page Height
16445
+ # @param width Page width
16446
+ # @param pages Comma separated list of pages and page ranges. (Example: 1,3-5,8)
16447
+ # @param [Hash] opts the optional parameters
16448
+ # @option opts [String] :storage The document storage.
16449
+ # @option opts [String] :folder The document folder.
16450
+ # @option opts [String] :password Base64 encoded password.
16451
+ # @return [AsposeResponse]
16452
+ def post_document_pages_resize(name, height, width, pages, opts = {})
16453
+ @api_client.request_token_if_needed
16454
+ data, _status_code, _headers = post_document_pages_resize_with_http_info(name, height, width, pages, opts)
16455
+ rescue ApiError => error
16456
+ if error.code == 401
16457
+ @api_client.request_token_if_needed
16458
+ data, _status_code, _headers = post_document_pages_resize_with_http_info(name, height, width, pages, opts)
16459
+ else
16460
+ raise
16461
+ end
16462
+ return data
16463
+ end
16464
+
16465
+ # Rsize PDF document.
16466
+ #
16467
+ # @param name The document name.
16468
+ # @param height Page Height
16469
+ # @param width Page width
16470
+ # @param pages Comma separated list of pages and page ranges. (Example: 1,3-5,8)
16471
+ # @param [Hash] opts the optional parameters
16472
+ # @option opts [String] :storage The document storage.
16473
+ # @option opts [String] :folder The document folder.
16474
+ # @option opts [String] :password Base64 encoded password.
16475
+ # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
16476
+ def post_document_pages_resize_with_http_info(name, height, width, pages, opts = {})
16477
+ if @api_client.config.debugging
16478
+ @api_client.config.logger.debug "Calling API: PdfApi.post_document_pages_resize ..."
16479
+ end
16480
+ # verify the required parameter 'name' is set
16481
+ if @api_client.config.client_side_validation && name.nil?
16482
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_document_pages_resize"
16483
+ end
16484
+ # verify the required parameter 'height' is set
16485
+ if @api_client.config.client_side_validation && height.nil?
16486
+ fail ArgumentError, "Missing the required parameter 'height' when calling PdfApi.post_document_pages_resize"
16487
+ end
16488
+ # verify the required parameter 'width' is set
16489
+ if @api_client.config.client_side_validation && width.nil?
16490
+ fail ArgumentError, "Missing the required parameter 'width' when calling PdfApi.post_document_pages_resize"
16491
+ end
16492
+ # verify the required parameter 'pages' is set
16493
+ if @api_client.config.client_side_validation && pages.nil?
16494
+ fail ArgumentError, "Missing the required parameter 'pages' when calling PdfApi.post_document_pages_resize"
16495
+ end
16496
+ # resource path
16497
+ local_var_path = "/pdf/{name}/resize".sub('{' + 'name' + '}', name.to_s)
16498
+
16499
+ # query parameters
16500
+ query_params = {}
16501
+ query_params[:'height'] = height
16502
+ query_params[:'width'] = width
16503
+ query_params[:'pages'] = pages
16504
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
16505
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
16506
+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
16507
+
16508
+ # header parameters
16509
+ header_params = {}
16510
+ # HTTP header 'Accept' (if needed)
16511
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
16512
+ # HTTP header 'Content-Type'
16513
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
16514
+
16515
+ # form parameters
16516
+ form_params = {}
16517
+ # Fix header in file
16518
+ post_body = nil
16519
+
16520
+ # http body (model)
16521
+ # Fix header in file
16522
+ # post_body = nil
16523
+ auth_names = ['JWT']
16524
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
16525
+ :header_params => header_params,
16526
+ :query_params => query_params,
16527
+ :form_params => form_params,
16528
+ :body => post_body,
16529
+ :auth_names => auth_names,
16530
+ :return_type => 'AsposeResponse')
16531
+ if @api_client.config.debugging
16532
+ @api_client.config.logger.debug "API called: PdfApi#post_document_pages_resize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16533
+ end
16534
+ return data, status_code, headers
16535
+ end
16536
+
16354
16537
  # Rotate PDF document.
16355
16538
  #
16356
16539
  # @param name The document name.
@@ -20,5 +20,5 @@ SOFTWARE.
20
20
  =end
21
21
 
22
22
  module AsposePdfCloud
23
- VERSION = "25.7.0"
23
+ VERSION = "25.9.0"
24
24
  end
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.7.0
4
+ version: 25.9.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-07-22 00:00:00.000000000 Z
11
+ date: 2025-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday