aspose_pdf_cloud 25.4.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 +213 -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
|
@@ -7597,6 +7597,12 @@ module AsposePdfCloud
|
|
7597
7597
|
#
|
7598
7598
|
# @param src_path Full source filename (ex. /folder1/folder2/template.mht)
|
7599
7599
|
# @param [Hash] opts the optional parameters
|
7600
|
+
# @option opts [Float] :height Page height
|
7601
|
+
# @option opts [Float] :width Page width
|
7602
|
+
# @option opts [Float] :margin_left Page margin left
|
7603
|
+
# @option opts [Float] :margin_bottom Page margin bottom
|
7604
|
+
# @option opts [Float] :margin_right Page margin right
|
7605
|
+
# @option opts [Float] :margin_top Page margin top
|
7600
7606
|
# @option opts [String] :storage The document storage.
|
7601
7607
|
# @return [File]
|
7602
7608
|
def get_mht_in_storage_to_pdf(src_path, opts = {})
|
@@ -7616,6 +7622,12 @@ module AsposePdfCloud
|
|
7616
7622
|
#
|
7617
7623
|
# @param src_path Full source filename (ex. /folder1/folder2/template.mht)
|
7618
7624
|
# @param [Hash] opts the optional parameters
|
7625
|
+
# @option opts [Float] :height Page height
|
7626
|
+
# @option opts [Float] :width Page width
|
7627
|
+
# @option opts [Float] :margin_left Page margin left
|
7628
|
+
# @option opts [Float] :margin_bottom Page margin bottom
|
7629
|
+
# @option opts [Float] :margin_right Page margin right
|
7630
|
+
# @option opts [Float] :margin_top Page margin top
|
7619
7631
|
# @option opts [String] :storage The document storage.
|
7620
7632
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
7621
7633
|
def get_mht_in_storage_to_pdf_with_http_info(src_path, opts = {})
|
@@ -7632,6 +7644,12 @@ module AsposePdfCloud
|
|
7632
7644
|
# query parameters
|
7633
7645
|
query_params = {}
|
7634
7646
|
query_params[:'srcPath'] = src_path
|
7647
|
+
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
7648
|
+
query_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
|
7649
|
+
query_params[:'marginLeft'] = opts[:'margin_left'] if !opts[:'margin_left'].nil?
|
7650
|
+
query_params[:'marginBottom'] = opts[:'margin_bottom'] if !opts[:'margin_bottom'].nil?
|
7651
|
+
query_params[:'marginRight'] = opts[:'margin_right'] if !opts[:'margin_right'].nil?
|
7652
|
+
query_params[:'marginTop'] = opts[:'margin_top'] if !opts[:'margin_top'].nil?
|
7635
7653
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
7636
7654
|
|
7637
7655
|
# header parameters
|
@@ -15597,6 +15615,90 @@ module AsposePdfCloud
|
|
15597
15615
|
return data, status_code, headers
|
15598
15616
|
end
|
15599
15617
|
|
15618
|
+
# Compare two PDF documents.
|
15619
|
+
#
|
15620
|
+
# @param path1 Path to first PDF document.
|
15621
|
+
# @param path2 Path to second PDF document.
|
15622
|
+
# @param out_path Full filename of the resulting document.
|
15623
|
+
# @param [Hash] opts the optional parameters
|
15624
|
+
# @option opts [String] :storage The documents storage.
|
15625
|
+
# @return [AsposeResponse]
|
15626
|
+
def post_compare_pdf(path1, path2, out_path, opts = {})
|
15627
|
+
@api_client.request_token_if_needed
|
15628
|
+
data, _status_code, _headers = post_compare_pdf_with_http_info(path1, path2, out_path, opts)
|
15629
|
+
rescue ApiError => error
|
15630
|
+
if error.code == 401
|
15631
|
+
@api_client.request_token_if_needed
|
15632
|
+
data, _status_code, _headers = post_compare_pdf_with_http_info(path1, path2, out_path, opts)
|
15633
|
+
else
|
15634
|
+
raise
|
15635
|
+
end
|
15636
|
+
return data
|
15637
|
+
end
|
15638
|
+
|
15639
|
+
# Compare two PDF documents.
|
15640
|
+
#
|
15641
|
+
# @param path1 Path to first PDF document.
|
15642
|
+
# @param path2 Path to second PDF document.
|
15643
|
+
# @param out_path Full filename of the resulting document.
|
15644
|
+
# @param [Hash] opts the optional parameters
|
15645
|
+
# @option opts [String] :storage The documents storage.
|
15646
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
15647
|
+
def post_compare_pdf_with_http_info(path1, path2, out_path, opts = {})
|
15648
|
+
if @api_client.config.debugging
|
15649
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_compare_pdf ..."
|
15650
|
+
end
|
15651
|
+
# verify the required parameter 'path1' is set
|
15652
|
+
if @api_client.config.client_side_validation && path1.nil?
|
15653
|
+
fail ArgumentError, "Missing the required parameter 'path1' when calling PdfApi.post_compare_pdf"
|
15654
|
+
end
|
15655
|
+
# verify the required parameter 'path2' is set
|
15656
|
+
if @api_client.config.client_side_validation && path2.nil?
|
15657
|
+
fail ArgumentError, "Missing the required parameter 'path2' when calling PdfApi.post_compare_pdf"
|
15658
|
+
end
|
15659
|
+
# verify the required parameter 'out_path' is set
|
15660
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
15661
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.post_compare_pdf"
|
15662
|
+
end
|
15663
|
+
# resource path
|
15664
|
+
local_var_path = "/pdf/compare"
|
15665
|
+
|
15666
|
+
# query parameters
|
15667
|
+
query_params = {}
|
15668
|
+
query_params[:'path1'] = path1
|
15669
|
+
query_params[:'path2'] = path2
|
15670
|
+
query_params[:'outPath'] = out_path
|
15671
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
15672
|
+
|
15673
|
+
# header parameters
|
15674
|
+
header_params = {}
|
15675
|
+
# HTTP header 'Accept' (if needed)
|
15676
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
15677
|
+
# HTTP header 'Content-Type'
|
15678
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
15679
|
+
|
15680
|
+
# form parameters
|
15681
|
+
form_params = {}
|
15682
|
+
# Fix header in file
|
15683
|
+
post_body = nil
|
15684
|
+
|
15685
|
+
# http body (model)
|
15686
|
+
# Fix header in file
|
15687
|
+
# post_body = nil
|
15688
|
+
auth_names = ['JWT']
|
15689
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
15690
|
+
:header_params => header_params,
|
15691
|
+
:query_params => query_params,
|
15692
|
+
:form_params => form_params,
|
15693
|
+
:body => post_body,
|
15694
|
+
:auth_names => auth_names,
|
15695
|
+
:return_type => 'AsposeResponse')
|
15696
|
+
if @api_client.config.debugging
|
15697
|
+
@api_client.config.logger.debug "API called: PdfApi#post_compare_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
15698
|
+
end
|
15699
|
+
return data, status_code, headers
|
15700
|
+
end
|
15701
|
+
|
15600
15702
|
# Create empty document.
|
15601
15703
|
#
|
15602
15704
|
# @param name The new document name.
|
@@ -16249,6 +16351,99 @@ module AsposePdfCloud
|
|
16249
16351
|
return data, status_code, headers
|
16250
16352
|
end
|
16251
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
|
+
|
16252
16447
|
# Add document text footer.
|
16253
16448
|
#
|
16254
16449
|
# @param name The document name.
|
@@ -24152,6 +24347,12 @@ module AsposePdfCloud
|
|
24152
24347
|
# @param name The document name.
|
24153
24348
|
# @param src_path Full source filename (ex. /folder1/folder2/template.mht)
|
24154
24349
|
# @param [Hash] opts the optional parameters
|
24350
|
+
# @option opts [Float] :height Page height
|
24351
|
+
# @option opts [Float] :width Page width
|
24352
|
+
# @option opts [Float] :margin_left Page margin left
|
24353
|
+
# @option opts [Float] :margin_bottom Page margin bottom
|
24354
|
+
# @option opts [Float] :margin_right Page margin right
|
24355
|
+
# @option opts [Float] :margin_top Page margin top
|
24155
24356
|
# @option opts [String] :dst_folder The destination document folder.
|
24156
24357
|
# @option opts [String] :storage The document storage.
|
24157
24358
|
# @return [AsposeResponse]
|
@@ -24173,6 +24374,12 @@ module AsposePdfCloud
|
|
24173
24374
|
# @param name The document name.
|
24174
24375
|
# @param src_path Full source filename (ex. /folder1/folder2/template.mht)
|
24175
24376
|
# @param [Hash] opts the optional parameters
|
24377
|
+
# @option opts [Float] :height Page height
|
24378
|
+
# @option opts [Float] :width Page width
|
24379
|
+
# @option opts [Float] :margin_left Page margin left
|
24380
|
+
# @option opts [Float] :margin_bottom Page margin bottom
|
24381
|
+
# @option opts [Float] :margin_right Page margin right
|
24382
|
+
# @option opts [Float] :margin_top Page margin top
|
24176
24383
|
# @option opts [String] :dst_folder The destination document folder.
|
24177
24384
|
# @option opts [String] :storage The document storage.
|
24178
24385
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
@@ -24194,6 +24401,12 @@ module AsposePdfCloud
|
|
24194
24401
|
# query parameters
|
24195
24402
|
query_params = {}
|
24196
24403
|
query_params[:'srcPath'] = src_path
|
24404
|
+
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
24405
|
+
query_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
|
24406
|
+
query_params[:'marginLeft'] = opts[:'margin_left'] if !opts[:'margin_left'].nil?
|
24407
|
+
query_params[:'marginBottom'] = opts[:'margin_bottom'] if !opts[:'margin_bottom'].nil?
|
24408
|
+
query_params[:'marginRight'] = opts[:'margin_right'] if !opts[:'margin_right'].nil?
|
24409
|
+
query_params[:'marginTop'] = opts[:'margin_top'] if !opts[:'margin_top'].nil?
|
24197
24410
|
query_params[:'dstFolder'] = opts[:'dst_folder'] if !opts[:'dst_folder'].nil?
|
24198
24411
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
24199
24412
|
|
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
|