aspose_pdf_cloud 25.4.0 → 25.5.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 +120 -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: bac2a27fab3145899b1d07ef7de5c8c94ef72bd0be5000f7e0746f359f9a5f92
|
4
|
+
data.tar.gz: c51fc513a7f94c320ee180a0e5ed598409ef155b29ff447de8f6575c6e509027
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c05b350fed4dc41136093a20cee3d25ac3a059242254460d06dcfc3a68a7e819dd5e5d22c38c70460278912acf9bc40f66d627c9564c3c32a370a2f2854ad76b
|
7
|
+
data.tar.gz: 27be189f6d3ac0385ddc1fe87195e2c940504fddec0f2d2cd9219bcacfbafbd1d280349cdd73ce249070979b8c613cb60a2fc1c4474e4fbe3095217343bc53e9
|
@@ -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.
|
@@ -24152,6 +24254,12 @@ module AsposePdfCloud
|
|
24152
24254
|
# @param name The document name.
|
24153
24255
|
# @param src_path Full source filename (ex. /folder1/folder2/template.mht)
|
24154
24256
|
# @param [Hash] opts the optional parameters
|
24257
|
+
# @option opts [Float] :height Page height
|
24258
|
+
# @option opts [Float] :width Page width
|
24259
|
+
# @option opts [Float] :margin_left Page margin left
|
24260
|
+
# @option opts [Float] :margin_bottom Page margin bottom
|
24261
|
+
# @option opts [Float] :margin_right Page margin right
|
24262
|
+
# @option opts [Float] :margin_top Page margin top
|
24155
24263
|
# @option opts [String] :dst_folder The destination document folder.
|
24156
24264
|
# @option opts [String] :storage The document storage.
|
24157
24265
|
# @return [AsposeResponse]
|
@@ -24173,6 +24281,12 @@ module AsposePdfCloud
|
|
24173
24281
|
# @param name The document name.
|
24174
24282
|
# @param src_path Full source filename (ex. /folder1/folder2/template.mht)
|
24175
24283
|
# @param [Hash] opts the optional parameters
|
24284
|
+
# @option opts [Float] :height Page height
|
24285
|
+
# @option opts [Float] :width Page width
|
24286
|
+
# @option opts [Float] :margin_left Page margin left
|
24287
|
+
# @option opts [Float] :margin_bottom Page margin bottom
|
24288
|
+
# @option opts [Float] :margin_right Page margin right
|
24289
|
+
# @option opts [Float] :margin_top Page margin top
|
24176
24290
|
# @option opts [String] :dst_folder The destination document folder.
|
24177
24291
|
# @option opts [String] :storage The document storage.
|
24178
24292
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
@@ -24194,6 +24308,12 @@ module AsposePdfCloud
|
|
24194
24308
|
# query parameters
|
24195
24309
|
query_params = {}
|
24196
24310
|
query_params[:'srcPath'] = src_path
|
24311
|
+
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
24312
|
+
query_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
|
24313
|
+
query_params[:'marginLeft'] = opts[:'margin_left'] if !opts[:'margin_left'].nil?
|
24314
|
+
query_params[:'marginBottom'] = opts[:'margin_bottom'] if !opts[:'margin_bottom'].nil?
|
24315
|
+
query_params[:'marginRight'] = opts[:'margin_right'] if !opts[:'margin_right'].nil?
|
24316
|
+
query_params[:'marginTop'] = opts[:'margin_top'] if !opts[:'margin_top'].nil?
|
24197
24317
|
query_params[:'dstFolder'] = opts[:'dst_folder'] if !opts[:'dst_folder'].nil?
|
24198
24318
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
24199
24319
|
|
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.5.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-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|