aspose_pdf_cloud 19.12.0 → 20.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -9
- data/docs/Cell.md +3 -0
- data/docs/CheckBoxField.md +1 -0
- data/docs/ChoiceField.md +1 -0
- data/docs/ComboBoxField.md +1 -0
- data/docs/FormField.md +1 -0
- data/docs/ImageFragment.md +15 -0
- data/docs/ListBoxField.md +1 -0
- data/docs/OutputFormat.md +11 -0
- data/docs/PdfApi.md +244 -14
- data/docs/RadioButtonField.md +1 -0
- data/docs/RadioButtonOptionField.md +1 -0
- data/docs/SignatureField.md +1 -0
- data/docs/TextBoxField.md +1 -0
- data/lib/aspose_pdf_cloud.rb +2 -0
- data/lib/aspose_pdf_cloud/api/pdf_api.rb +719 -27
- data/lib/aspose_pdf_cloud/api_client.rb +1 -1
- data/lib/aspose_pdf_cloud/models/cell.rb +36 -4
- data/lib/aspose_pdf_cloud/models/check_box_field.rb +11 -1
- data/lib/aspose_pdf_cloud/models/choice_field.rb +11 -1
- data/lib/aspose_pdf_cloud/models/combo_box_field.rb +11 -1
- data/lib/aspose_pdf_cloud/models/form_field.rb +11 -1
- data/lib/aspose_pdf_cloud/models/image_fragment.rb +283 -0
- data/lib/aspose_pdf_cloud/models/list_box_field.rb +11 -1
- data/lib/aspose_pdf_cloud/models/output_format.rb +44 -0
- data/lib/aspose_pdf_cloud/models/radio_button_field.rb +11 -1
- data/lib/aspose_pdf_cloud/models/radio_button_option_field.rb +11 -1
- data/lib/aspose_pdf_cloud/models/signature_field.rb +11 -1
- data/lib/aspose_pdf_cloud/models/text_box_field.rb +11 -1
- data/lib/aspose_pdf_cloud/version.rb +1 -1
- data/test/pdf_tests.rb +231 -99
- data/test_data/4pagesPdfA.pdf +0 -0
- metadata +7 -2
data/docs/RadioButtonField.md
CHANGED
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**links** | [**Array<Link>**](Link.md) | Link to the document. | [optional]
|
8
8
|
**partial_name** | **String** | Field name. | [optional]
|
9
|
+
**full_name** | **String** | Full Field name. | [optional]
|
9
10
|
**rect** | [**Rectangle**](Rectangle.md) | Field rectangle. | [optional]
|
10
11
|
**value** | **String** | Field value. | [optional]
|
11
12
|
**page_index** | **Integer** | Page index. |
|
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**links** | [**Array<Link>**](Link.md) | Link to the document. | [optional]
|
8
8
|
**partial_name** | **String** | Field name. | [optional]
|
9
|
+
**full_name** | **String** | Full Field name. | [optional]
|
9
10
|
**rect** | [**Rectangle**](Rectangle.md) | Field rectangle. | [optional]
|
10
11
|
**value** | **String** | Field value. | [optional]
|
11
12
|
**page_index** | **Integer** | Page index. |
|
data/docs/SignatureField.md
CHANGED
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**links** | [**Array<Link>**](Link.md) | Link to the document. | [optional]
|
8
8
|
**partial_name** | **String** | Field name. | [optional]
|
9
|
+
**full_name** | **String** | Full Field name. | [optional]
|
9
10
|
**rect** | [**Rectangle**](Rectangle.md) | Field rectangle. | [optional]
|
10
11
|
**value** | **String** | Field value. | [optional]
|
11
12
|
**page_index** | **Integer** | Page index. |
|
data/docs/TextBoxField.md
CHANGED
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**links** | [**Array<Link>**](Link.md) | Link to the document. | [optional]
|
8
8
|
**partial_name** | **String** | Field name. | [optional]
|
9
|
+
**full_name** | **String** | Full Field name. | [optional]
|
9
10
|
**rect** | [**Rectangle**](Rectangle.md) | Field rectangle. | [optional]
|
10
11
|
**value** | **String** | Field value. | [optional]
|
11
12
|
**page_index** | **Integer** | Page index. |
|
data/lib/aspose_pdf_cloud.rb
CHANGED
@@ -72,6 +72,7 @@ require_relative 'aspose_pdf_cloud/models/graph_info'
|
|
72
72
|
require_relative 'aspose_pdf_cloud/models/horizontal_alignment'
|
73
73
|
require_relative 'aspose_pdf_cloud/models/html_document_type'
|
74
74
|
require_relative 'aspose_pdf_cloud/models/html_markup_generation_modes'
|
75
|
+
require_relative 'aspose_pdf_cloud/models/image_fragment'
|
75
76
|
require_relative 'aspose_pdf_cloud/models/image_src_type'
|
76
77
|
require_relative 'aspose_pdf_cloud/models/image_template'
|
77
78
|
require_relative 'aspose_pdf_cloud/models/image_templates_request'
|
@@ -89,6 +90,7 @@ require_relative 'aspose_pdf_cloud/models/merge_documents'
|
|
89
90
|
require_relative 'aspose_pdf_cloud/models/object_exist'
|
90
91
|
require_relative 'aspose_pdf_cloud/models/optimize_options'
|
91
92
|
require_relative 'aspose_pdf_cloud/models/option'
|
93
|
+
require_relative 'aspose_pdf_cloud/models/output_format'
|
92
94
|
require_relative 'aspose_pdf_cloud/models/page_layout'
|
93
95
|
require_relative 'aspose_pdf_cloud/models/page_mode'
|
94
96
|
require_relative 'aspose_pdf_cloud/models/page_word_count'
|
@@ -6997,7 +6997,7 @@ module AsposePdfCloud
|
|
6997
6997
|
return data, status_code, headers
|
6998
6998
|
end
|
6999
6999
|
|
7000
|
-
# Convert
|
7000
|
+
# Convert TeX file (located on storage) to PDF format and return resulting file in response.
|
7001
7001
|
#
|
7002
7002
|
# @param src_path Full source filename (ex. /folder1/folder2/template.tex)
|
7003
7003
|
# @param [Hash] opts the optional parameters
|
@@ -7016,7 +7016,7 @@ module AsposePdfCloud
|
|
7016
7016
|
return data
|
7017
7017
|
end
|
7018
7018
|
|
7019
|
-
# Convert
|
7019
|
+
# Convert TeX file (located on storage) to PDF format and return resulting file in response.
|
7020
7020
|
#
|
7021
7021
|
# @param src_path Full source filename (ex. /folder1/folder2/template.tex)
|
7022
7022
|
# @param [Hash] opts the optional parameters
|
@@ -10782,6 +10782,79 @@ module AsposePdfCloud
|
|
10782
10782
|
return data, status_code, headers
|
10783
10783
|
end
|
10784
10784
|
|
10785
|
+
# Convert PDFA file (located on storage) to PDF format and return resulting file in response.
|
10786
|
+
#
|
10787
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.pdf)
|
10788
|
+
# @param [Hash] opts the optional parameters
|
10789
|
+
# @option opts [BOOLEAN] :dont_optimize If set, document resources will not be optimized.
|
10790
|
+
# @option opts [String] :storage The document storage.
|
10791
|
+
# @return [File]
|
10792
|
+
def get_pdf_a_in_storage_to_pdf(src_path, opts = {})
|
10793
|
+
@api_client.request_token_if_needed
|
10794
|
+
data, _status_code, _headers = get_pdf_a_in_storage_to_pdf_with_http_info(src_path, opts)
|
10795
|
+
rescue ApiError => error
|
10796
|
+
if error.code == 401
|
10797
|
+
@api_client.request_token_if_needed
|
10798
|
+
data, _status_code, _headers = get_pdf_a_in_storage_to_pdf_with_http_info(src_path, opts)
|
10799
|
+
else
|
10800
|
+
raise
|
10801
|
+
end
|
10802
|
+
return data
|
10803
|
+
end
|
10804
|
+
|
10805
|
+
# Convert PDFA file (located on storage) to PDF format and return resulting file in response.
|
10806
|
+
#
|
10807
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.pdf)
|
10808
|
+
# @param [Hash] opts the optional parameters
|
10809
|
+
# @option opts [BOOLEAN] :dont_optimize If set, document resources will not be optimized.
|
10810
|
+
# @option opts [String] :storage The document storage.
|
10811
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
10812
|
+
def get_pdf_a_in_storage_to_pdf_with_http_info(src_path, opts = {})
|
10813
|
+
if @api_client.config.debugging
|
10814
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_pdf_a_in_storage_to_pdf ..."
|
10815
|
+
end
|
10816
|
+
# verify the required parameter 'src_path' is set
|
10817
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
10818
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.get_pdf_a_in_storage_to_pdf"
|
10819
|
+
end
|
10820
|
+
# resource path
|
10821
|
+
local_var_path = "/pdf/create/pdfa"
|
10822
|
+
|
10823
|
+
# query parameters
|
10824
|
+
query_params = {}
|
10825
|
+
query_params[:'srcPath'] = src_path
|
10826
|
+
query_params[:'dontOptimize'] = opts[:'dont_optimize'] if !opts[:'dont_optimize'].nil?
|
10827
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
10828
|
+
|
10829
|
+
# header parameters
|
10830
|
+
header_params = {}
|
10831
|
+
# HTTP header 'Accept' (if needed)
|
10832
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
10833
|
+
# HTTP header 'Content-Type'
|
10834
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
10835
|
+
|
10836
|
+
# form parameters
|
10837
|
+
form_params = {}
|
10838
|
+
# Fix header in file
|
10839
|
+
post_body = nil
|
10840
|
+
|
10841
|
+
# http body (model)
|
10842
|
+
# Fix header in file
|
10843
|
+
# post_body = nil
|
10844
|
+
auth_names = ['JWT']
|
10845
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
10846
|
+
:header_params => header_params,
|
10847
|
+
:query_params => query_params,
|
10848
|
+
:form_params => form_params,
|
10849
|
+
:body => post_body,
|
10850
|
+
:auth_names => auth_names,
|
10851
|
+
:return_type => 'File')
|
10852
|
+
if @api_client.config.debugging
|
10853
|
+
@api_client.config.logger.debug "API called: PdfApi#get_pdf_a_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
10854
|
+
end
|
10855
|
+
return data, status_code, headers
|
10856
|
+
end
|
10857
|
+
|
10785
10858
|
# Converts PDF document (located on storage) to DOC format and returns resulting file in response content
|
10786
10859
|
#
|
10787
10860
|
# @param name The document name.
|
@@ -11145,11 +11218,10 @@ module AsposePdfCloud
|
|
11145
11218
|
return data, status_code, headers
|
11146
11219
|
end
|
11147
11220
|
|
11148
|
-
# Converts PDF document (located on storage) to
|
11221
|
+
# Converts PDF document (located on storage) to TeX format and returns resulting file in response content
|
11149
11222
|
#
|
11150
11223
|
# @param name The document name.
|
11151
11224
|
# @param [Hash] opts the optional parameters
|
11152
|
-
# @option opts [Integer] :pages_count Pages count.
|
11153
11225
|
# @option opts [String] :folder The document folder.
|
11154
11226
|
# @option opts [String] :storage The document storage.
|
11155
11227
|
# @return [File]
|
@@ -11166,11 +11238,10 @@ module AsposePdfCloud
|
|
11166
11238
|
return data
|
11167
11239
|
end
|
11168
11240
|
|
11169
|
-
# Converts PDF document (located on storage) to
|
11241
|
+
# Converts PDF document (located on storage) to TeX format and returns resulting file in response content
|
11170
11242
|
#
|
11171
11243
|
# @param name The document name.
|
11172
11244
|
# @param [Hash] opts the optional parameters
|
11173
|
-
# @option opts [Integer] :pages_count Pages count.
|
11174
11245
|
# @option opts [String] :folder The document folder.
|
11175
11246
|
# @option opts [String] :storage The document storage.
|
11176
11247
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
@@ -11187,7 +11258,6 @@ module AsposePdfCloud
|
|
11187
11258
|
|
11188
11259
|
# query parameters
|
11189
11260
|
query_params = {}
|
11190
|
-
query_params[:'pagesCount'] = opts[:'pages_count'] if !opts[:'pages_count'].nil?
|
11191
11261
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
11192
11262
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
11193
11263
|
|
@@ -11528,6 +11598,78 @@ module AsposePdfCloud
|
|
11528
11598
|
return data, status_code, headers
|
11529
11599
|
end
|
11530
11600
|
|
11601
|
+
# Converts PDF document (located on storage) to TeX format and returns resulting file in response content
|
11602
|
+
#
|
11603
|
+
# @param name The document name.
|
11604
|
+
# @param [Hash] opts the optional parameters
|
11605
|
+
# @option opts [String] :folder The document folder.
|
11606
|
+
# @option opts [String] :storage The document storage.
|
11607
|
+
# @return [File]
|
11608
|
+
def get_pdf_in_storage_to_te_x(name, opts = {})
|
11609
|
+
@api_client.request_token_if_needed
|
11610
|
+
data, _status_code, _headers = get_pdf_in_storage_to_te_x_with_http_info(name, opts)
|
11611
|
+
rescue ApiError => error
|
11612
|
+
if error.code == 401
|
11613
|
+
@api_client.request_token_if_needed
|
11614
|
+
data, _status_code, _headers = get_pdf_in_storage_to_te_x_with_http_info(name, opts)
|
11615
|
+
else
|
11616
|
+
raise
|
11617
|
+
end
|
11618
|
+
return data
|
11619
|
+
end
|
11620
|
+
|
11621
|
+
# Converts PDF document (located on storage) to TeX format and returns resulting file in response content
|
11622
|
+
#
|
11623
|
+
# @param name The document name.
|
11624
|
+
# @param [Hash] opts the optional parameters
|
11625
|
+
# @option opts [String] :folder The document folder.
|
11626
|
+
# @option opts [String] :storage The document storage.
|
11627
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
11628
|
+
def get_pdf_in_storage_to_te_x_with_http_info(name, opts = {})
|
11629
|
+
if @api_client.config.debugging
|
11630
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_pdf_in_storage_to_te_x ..."
|
11631
|
+
end
|
11632
|
+
# verify the required parameter 'name' is set
|
11633
|
+
if @api_client.config.client_side_validation && name.nil?
|
11634
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_pdf_in_storage_to_te_x"
|
11635
|
+
end
|
11636
|
+
# resource path
|
11637
|
+
local_var_path = "/pdf/{name}/convert/tex".sub('{' + 'name' + '}', name.to_s)
|
11638
|
+
|
11639
|
+
# query parameters
|
11640
|
+
query_params = {}
|
11641
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
11642
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
11643
|
+
|
11644
|
+
# header parameters
|
11645
|
+
header_params = {}
|
11646
|
+
# HTTP header 'Accept' (if needed)
|
11647
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
11648
|
+
# HTTP header 'Content-Type'
|
11649
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
11650
|
+
|
11651
|
+
# form parameters
|
11652
|
+
form_params = {}
|
11653
|
+
# Fix header in file
|
11654
|
+
post_body = nil
|
11655
|
+
|
11656
|
+
# http body (model)
|
11657
|
+
# Fix header in file
|
11658
|
+
# post_body = nil
|
11659
|
+
auth_names = ['JWT']
|
11660
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
11661
|
+
:header_params => header_params,
|
11662
|
+
:query_params => query_params,
|
11663
|
+
:form_params => form_params,
|
11664
|
+
:body => post_body,
|
11665
|
+
:auth_names => auth_names,
|
11666
|
+
:return_type => 'File')
|
11667
|
+
if @api_client.config.debugging
|
11668
|
+
@api_client.config.logger.debug "API called: PdfApi#get_pdf_in_storage_to_te_x\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
11669
|
+
end
|
11670
|
+
return data, status_code, headers
|
11671
|
+
end
|
11672
|
+
|
11531
11673
|
# Converts PDF document (located on storage) to TIFF format and returns resulting file in response content
|
11532
11674
|
#
|
11533
11675
|
# @param name The document name.
|
@@ -13378,6 +13520,76 @@ module AsposePdfCloud
|
|
13378
13520
|
return data, status_code, headers
|
13379
13521
|
end
|
13380
13522
|
|
13523
|
+
# Convert TeX file (located on storage) to PDF format and return resulting file in response.
|
13524
|
+
#
|
13525
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.tex)
|
13526
|
+
# @param [Hash] opts the optional parameters
|
13527
|
+
# @option opts [String] :storage The document storage.
|
13528
|
+
# @return [File]
|
13529
|
+
def get_te_x_in_storage_to_pdf(src_path, opts = {})
|
13530
|
+
@api_client.request_token_if_needed
|
13531
|
+
data, _status_code, _headers = get_te_x_in_storage_to_pdf_with_http_info(src_path, opts)
|
13532
|
+
rescue ApiError => error
|
13533
|
+
if error.code == 401
|
13534
|
+
@api_client.request_token_if_needed
|
13535
|
+
data, _status_code, _headers = get_te_x_in_storage_to_pdf_with_http_info(src_path, opts)
|
13536
|
+
else
|
13537
|
+
raise
|
13538
|
+
end
|
13539
|
+
return data
|
13540
|
+
end
|
13541
|
+
|
13542
|
+
# Convert TeX file (located on storage) to PDF format and return resulting file in response.
|
13543
|
+
#
|
13544
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.tex)
|
13545
|
+
# @param [Hash] opts the optional parameters
|
13546
|
+
# @option opts [String] :storage The document storage.
|
13547
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
13548
|
+
def get_te_x_in_storage_to_pdf_with_http_info(src_path, opts = {})
|
13549
|
+
if @api_client.config.debugging
|
13550
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_te_x_in_storage_to_pdf ..."
|
13551
|
+
end
|
13552
|
+
# verify the required parameter 'src_path' is set
|
13553
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
13554
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.get_te_x_in_storage_to_pdf"
|
13555
|
+
end
|
13556
|
+
# resource path
|
13557
|
+
local_var_path = "/pdf/create/tex"
|
13558
|
+
|
13559
|
+
# query parameters
|
13560
|
+
query_params = {}
|
13561
|
+
query_params[:'srcPath'] = src_path
|
13562
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
13563
|
+
|
13564
|
+
# header parameters
|
13565
|
+
header_params = {}
|
13566
|
+
# HTTP header 'Accept' (if needed)
|
13567
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
13568
|
+
# HTTP header 'Content-Type'
|
13569
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
13570
|
+
|
13571
|
+
# form parameters
|
13572
|
+
form_params = {}
|
13573
|
+
# Fix header in file
|
13574
|
+
post_body = nil
|
13575
|
+
|
13576
|
+
# http body (model)
|
13577
|
+
# Fix header in file
|
13578
|
+
# post_body = nil
|
13579
|
+
auth_names = ['JWT']
|
13580
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
13581
|
+
:header_params => header_params,
|
13582
|
+
:query_params => query_params,
|
13583
|
+
:form_params => form_params,
|
13584
|
+
:body => post_body,
|
13585
|
+
:auth_names => auth_names,
|
13586
|
+
:return_type => 'File')
|
13587
|
+
if @api_client.config.debugging
|
13588
|
+
@api_client.config.logger.debug "API called: PdfApi#get_te_x_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
13589
|
+
end
|
13590
|
+
return data, status_code, headers
|
13591
|
+
end
|
13592
|
+
|
13381
13593
|
# Read document text.
|
13382
13594
|
#
|
13383
13595
|
# @param name The document name.
|
@@ -14567,7 +14779,7 @@ module AsposePdfCloud
|
|
14567
14779
|
# Add document bookmarks.
|
14568
14780
|
#
|
14569
14781
|
# @param name The document name.
|
14570
|
-
# @param bookmark_path The bookmark path.
|
14782
|
+
# @param bookmark_path The parent bookmark path. Specify an empty string when adding a bookmark to the root.
|
14571
14783
|
# @param bookmarks The array of bookmark.
|
14572
14784
|
# @param [Hash] opts the optional parameters
|
14573
14785
|
# @option opts [String] :folder The document folder.
|
@@ -14589,7 +14801,7 @@ module AsposePdfCloud
|
|
14589
14801
|
# Add document bookmarks.
|
14590
14802
|
#
|
14591
14803
|
# @param name The document name.
|
14592
|
-
# @param bookmark_path The bookmark path.
|
14804
|
+
# @param bookmark_path The parent bookmark path. Specify an empty string when adding a bookmark to the root.
|
14593
14805
|
# @param bookmarks The array of bookmark.
|
14594
14806
|
# @param [Hash] opts the optional parameters
|
14595
14807
|
# @option opts [String] :folder The document folder.
|
@@ -18879,6 +19091,83 @@ module AsposePdfCloud
|
|
18879
19091
|
return data, status_code, headers
|
18880
19092
|
end
|
18881
19093
|
|
19094
|
+
# Add document signature field.
|
19095
|
+
#
|
19096
|
+
# @param name The document name.
|
19097
|
+
# @param field The field.
|
19098
|
+
# @param [Hash] opts the optional parameters
|
19099
|
+
# @option opts [String] :storage The document storage.
|
19100
|
+
# @option opts [String] :folder The document folder.
|
19101
|
+
# @return [AsposeResponse]
|
19102
|
+
def post_signature_field(name, field, opts = {})
|
19103
|
+
@api_client.request_token_if_needed
|
19104
|
+
data, _status_code, _headers = post_signature_field_with_http_info(name, field, opts)
|
19105
|
+
rescue ApiError => error
|
19106
|
+
if error.code == 401
|
19107
|
+
@api_client.request_token_if_needed
|
19108
|
+
data, _status_code, _headers = post_signature_field_with_http_info(name, field, opts)
|
19109
|
+
else
|
19110
|
+
raise
|
19111
|
+
end
|
19112
|
+
return data
|
19113
|
+
end
|
19114
|
+
|
19115
|
+
# Add document signature field.
|
19116
|
+
#
|
19117
|
+
# @param name The document name.
|
19118
|
+
# @param field The field.
|
19119
|
+
# @param [Hash] opts the optional parameters
|
19120
|
+
# @option opts [String] :storage The document storage.
|
19121
|
+
# @option opts [String] :folder The document folder.
|
19122
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
19123
|
+
def post_signature_field_with_http_info(name, field, opts = {})
|
19124
|
+
if @api_client.config.debugging
|
19125
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_signature_field ..."
|
19126
|
+
end
|
19127
|
+
# verify the required parameter 'name' is set
|
19128
|
+
if @api_client.config.client_side_validation && name.nil?
|
19129
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_signature_field"
|
19130
|
+
end
|
19131
|
+
# verify the required parameter 'field' is set
|
19132
|
+
if @api_client.config.client_side_validation && field.nil?
|
19133
|
+
fail ArgumentError, "Missing the required parameter 'field' when calling PdfApi.post_signature_field"
|
19134
|
+
end
|
19135
|
+
# resource path
|
19136
|
+
local_var_path = "/pdf/{name}/fields/signature".sub('{' + 'name' + '}', name.to_s)
|
19137
|
+
|
19138
|
+
# query parameters
|
19139
|
+
query_params = {}
|
19140
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
19141
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
19142
|
+
|
19143
|
+
# header parameters
|
19144
|
+
header_params = {}
|
19145
|
+
# HTTP header 'Accept' (if needed)
|
19146
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
19147
|
+
# HTTP header 'Content-Type'
|
19148
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
19149
|
+
|
19150
|
+
# form parameters
|
19151
|
+
form_params = {}
|
19152
|
+
# Fix header in file
|
19153
|
+
post_body = nil
|
19154
|
+
|
19155
|
+
# http body (model)
|
19156
|
+
post_body = @api_client.object_to_http_body(field)
|
19157
|
+
auth_names = ['JWT']
|
19158
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
19159
|
+
:header_params => header_params,
|
19160
|
+
:query_params => query_params,
|
19161
|
+
:form_params => form_params,
|
19162
|
+
:body => post_body,
|
19163
|
+
:auth_names => auth_names,
|
19164
|
+
:return_type => 'AsposeResponse')
|
19165
|
+
if @api_client.config.debugging
|
19166
|
+
@api_client.config.logger.debug "API called: PdfApi#post_signature_field\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
19167
|
+
end
|
19168
|
+
return data, status_code, headers
|
19169
|
+
end
|
19170
|
+
|
18882
19171
|
# Split document to parts.
|
18883
19172
|
#
|
18884
19173
|
# @param name Document name.
|
@@ -22032,7 +22321,7 @@ module AsposePdfCloud
|
|
22032
22321
|
return data, status_code, headers
|
22033
22322
|
end
|
22034
22323
|
|
22035
|
-
# Convert
|
22324
|
+
# Convert TeX file (located on storage) to PDF format and upload resulting file to storage.
|
22036
22325
|
#
|
22037
22326
|
# @param name The document name.
|
22038
22327
|
# @param src_path Full source filename (ex. /folder1/folder2/template.tex)
|
@@ -22053,7 +22342,7 @@ module AsposePdfCloud
|
|
22053
22342
|
return data
|
22054
22343
|
end
|
22055
22344
|
|
22056
|
-
# Convert
|
22345
|
+
# Convert TeX file (located on storage) to PDF format and upload resulting file to storage.
|
22057
22346
|
#
|
22058
22347
|
# @param name The document name.
|
22059
22348
|
# @param src_path Full source filename (ex. /folder1/folder2/template.tex)
|
@@ -23386,14 +23675,96 @@ module AsposePdfCloud
|
|
23386
23675
|
return data, status_code, headers
|
23387
23676
|
end
|
23388
23677
|
|
23389
|
-
#
|
23678
|
+
# Convert PDFA file (located on storage) to PDF format and upload resulting file to storage.
|
23390
23679
|
#
|
23391
|
-
# @param
|
23680
|
+
# @param name The document name.
|
23681
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.pdf)
|
23392
23682
|
# @param [Hash] opts the optional parameters
|
23393
|
-
# @option opts [
|
23394
|
-
# @option opts [
|
23395
|
-
# @option opts [
|
23396
|
-
# @
|
23683
|
+
# @option opts [String] :dst_folder The destination document folder.
|
23684
|
+
# @option opts [BOOLEAN] :dont_optimize If set, document resources will not be optimized.
|
23685
|
+
# @option opts [String] :storage The document storage.
|
23686
|
+
# @return [AsposeResponse]
|
23687
|
+
def put_pdf_a_in_storage_to_pdf(name, src_path, opts = {})
|
23688
|
+
@api_client.request_token_if_needed
|
23689
|
+
data, _status_code, _headers = put_pdf_a_in_storage_to_pdf_with_http_info(name, src_path, opts)
|
23690
|
+
rescue ApiError => error
|
23691
|
+
if error.code == 401
|
23692
|
+
@api_client.request_token_if_needed
|
23693
|
+
data, _status_code, _headers = put_pdf_a_in_storage_to_pdf_with_http_info(name, src_path, opts)
|
23694
|
+
else
|
23695
|
+
raise
|
23696
|
+
end
|
23697
|
+
return data
|
23698
|
+
end
|
23699
|
+
|
23700
|
+
# Convert PDFA file (located on storage) to PDF format and upload resulting file to storage.
|
23701
|
+
#
|
23702
|
+
# @param name The document name.
|
23703
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.pdf)
|
23704
|
+
# @param [Hash] opts the optional parameters
|
23705
|
+
# @option opts [String] :dst_folder The destination document folder.
|
23706
|
+
# @option opts [BOOLEAN] :dont_optimize If set, document resources will not be optimized.
|
23707
|
+
# @option opts [String] :storage The document storage.
|
23708
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
23709
|
+
def put_pdf_a_in_storage_to_pdf_with_http_info(name, src_path, opts = {})
|
23710
|
+
if @api_client.config.debugging
|
23711
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_a_in_storage_to_pdf ..."
|
23712
|
+
end
|
23713
|
+
# verify the required parameter 'name' is set
|
23714
|
+
if @api_client.config.client_side_validation && name.nil?
|
23715
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_pdf_a_in_storage_to_pdf"
|
23716
|
+
end
|
23717
|
+
# verify the required parameter 'src_path' is set
|
23718
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
23719
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.put_pdf_a_in_storage_to_pdf"
|
23720
|
+
end
|
23721
|
+
# resource path
|
23722
|
+
local_var_path = "/pdf/{name}/create/pdfa".sub('{' + 'name' + '}', name.to_s)
|
23723
|
+
|
23724
|
+
# query parameters
|
23725
|
+
query_params = {}
|
23726
|
+
query_params[:'srcPath'] = src_path
|
23727
|
+
query_params[:'dstFolder'] = opts[:'dst_folder'] if !opts[:'dst_folder'].nil?
|
23728
|
+
query_params[:'dontOptimize'] = opts[:'dont_optimize'] if !opts[:'dont_optimize'].nil?
|
23729
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
23730
|
+
|
23731
|
+
# header parameters
|
23732
|
+
header_params = {}
|
23733
|
+
# HTTP header 'Accept' (if needed)
|
23734
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
23735
|
+
# HTTP header 'Content-Type'
|
23736
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
23737
|
+
|
23738
|
+
# form parameters
|
23739
|
+
form_params = {}
|
23740
|
+
# Fix header in file
|
23741
|
+
post_body = nil
|
23742
|
+
|
23743
|
+
# http body (model)
|
23744
|
+
# Fix header in file
|
23745
|
+
# post_body = nil
|
23746
|
+
auth_names = ['JWT']
|
23747
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
23748
|
+
:header_params => header_params,
|
23749
|
+
:query_params => query_params,
|
23750
|
+
:form_params => form_params,
|
23751
|
+
:body => post_body,
|
23752
|
+
:auth_names => auth_names,
|
23753
|
+
:return_type => 'AsposeResponse')
|
23754
|
+
if @api_client.config.debugging
|
23755
|
+
@api_client.config.logger.debug "API called: PdfApi#put_pdf_a_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
23756
|
+
end
|
23757
|
+
return data, status_code, headers
|
23758
|
+
end
|
23759
|
+
|
23760
|
+
# Converts PDF document (in request content) to DOC format and uploads resulting file to storage.
|
23761
|
+
#
|
23762
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.doc)
|
23763
|
+
# @param [Hash] opts the optional parameters
|
23764
|
+
# @option opts [BOOLEAN] :add_return_to_line_end Add return to line end.
|
23765
|
+
# @option opts [String] :format Allows to specify .doc or .docx file format.
|
23766
|
+
# @option opts [Integer] :image_resolution_x Image resolution X.
|
23767
|
+
# @option opts [Integer] :image_resolution_y Image resolution Y.
|
23397
23768
|
# @option opts [Float] :max_distance_between_text_lines Max distance between text lines.
|
23398
23769
|
# @option opts [String] :mode Allows to control how a PDF document is converted into a word processing document.
|
23399
23770
|
# @option opts [BOOLEAN] :recognize_bullets Recognize bullets.
|
@@ -23604,6 +23975,7 @@ module AsposePdfCloud
|
|
23604
23975
|
# @option opts [BOOLEAN] :try_save_text_underlining_and_strikeouting_in_css PDF itself does not contain underlining markers for texts. It emulated with line situated under text. This option allows converter try guess that this or that line is a text's underlining and put this info into CSS instead of drawing of underlining graphically.
|
23605
23976
|
# @option opts [String] :storage The document storage.
|
23606
23977
|
# @option opts [BOOLEAN] :flow_layout_paragraph_full_width This attribute specifies full width paragraph text for Flow mode, FixedLayout = false.
|
23978
|
+
# @option opts [String] :output_format This parameter determines the type of result. The zip archive will be uploaded into the storage if the parameter is \"Zip\" or missed (default). In case of the \"Folder\", all resulting files and directories will be uploaded to the folder of the resulting HTML file. (default to Zip)
|
23607
23979
|
# @option opts [File] :file A file to be converted.
|
23608
23980
|
# @return [AsposeResponse]
|
23609
23981
|
def put_pdf_in_request_to_html(out_path, opts = {})
|
@@ -23653,6 +24025,7 @@ module AsposePdfCloud
|
|
23653
24025
|
# @option opts [BOOLEAN] :try_save_text_underlining_and_strikeouting_in_css PDF itself does not contain underlining markers for texts. It emulated with line situated under text. This option allows converter try guess that this or that line is a text's underlining and put this info into CSS instead of drawing of underlining graphically.
|
23654
24026
|
# @option opts [String] :storage The document storage.
|
23655
24027
|
# @option opts [BOOLEAN] :flow_layout_paragraph_full_width This attribute specifies full width paragraph text for Flow mode, FixedLayout = false.
|
24028
|
+
# @option opts [String] :output_format This parameter determines the type of result. The zip archive will be uploaded into the storage if the parameter is \"Zip\" or missed (default). In case of the \"Folder\", all resulting files and directories will be uploaded to the folder of the resulting HTML file.
|
23656
24029
|
# @option opts [File] :file A file to be converted.
|
23657
24030
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
23658
24031
|
def put_pdf_in_request_to_html_with_http_info(out_path, opts = {})
|
@@ -23687,6 +24060,9 @@ module AsposePdfCloud
|
|
23687
24060
|
if @api_client.config.client_side_validation && opts[:'raster_images_saving_mode'] && !['AsPngImagesEmbeddedIntoSvg', 'AsExternalPngFilesReferencedViaSvg', 'AsEmbeddedPartsOfPngPageBackground'].include?(opts[:'raster_images_saving_mode'])
|
23688
24061
|
fail ArgumentError, 'invalid value for "raster_images_saving_mode", must be one of AsPngImagesEmbeddedIntoSvg, AsExternalPngFilesReferencedViaSvg, AsEmbeddedPartsOfPngPageBackground'
|
23689
24062
|
end
|
24063
|
+
if @api_client.config.client_side_validation && opts[:'output_format'] && !['Zip', 'Folder'].include?(opts[:'output_format'])
|
24064
|
+
fail ArgumentError, 'invalid value for "output_format", must be one of Zip, Folder'
|
24065
|
+
end
|
23690
24066
|
# resource path
|
23691
24067
|
local_var_path = "/pdf/convert/html"
|
23692
24068
|
|
@@ -23723,6 +24099,7 @@ module AsposePdfCloud
|
|
23723
24099
|
query_params[:'trySaveTextUnderliningAndStrikeoutingInCss'] = opts[:'try_save_text_underlining_and_strikeouting_in_css'] if !opts[:'try_save_text_underlining_and_strikeouting_in_css'].nil?
|
23724
24100
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
23725
24101
|
query_params[:'flowLayoutParagraphFullWidth'] = opts[:'flow_layout_paragraph_full_width'] if !opts[:'flow_layout_paragraph_full_width'].nil?
|
24102
|
+
query_params[:'outputFormat'] = opts[:'output_format'] if !opts[:'output_format'].nil?
|
23726
24103
|
|
23727
24104
|
# header parameters
|
23728
24105
|
header_params = {}
|
@@ -23755,11 +24132,10 @@ module AsposePdfCloud
|
|
23755
24132
|
return data, status_code, headers
|
23756
24133
|
end
|
23757
24134
|
|
23758
|
-
# Converts PDF document (in request content) to
|
24135
|
+
# Converts PDF document (in request content) to TeX format and uploads resulting file to storage.
|
23759
24136
|
#
|
23760
24137
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.tex)
|
23761
24138
|
# @param [Hash] opts the optional parameters
|
23762
|
-
# @option opts [Integer] :pages_count Pages count.
|
23763
24139
|
# @option opts [String] :storage The document storage.
|
23764
24140
|
# @option opts [File] :file A file to be converted.
|
23765
24141
|
# @return [AsposeResponse]
|
@@ -23776,11 +24152,10 @@ module AsposePdfCloud
|
|
23776
24152
|
return data
|
23777
24153
|
end
|
23778
24154
|
|
23779
|
-
# Converts PDF document (in request content) to
|
24155
|
+
# Converts PDF document (in request content) to TeX format and uploads resulting file to storage.
|
23780
24156
|
#
|
23781
24157
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.tex)
|
23782
24158
|
# @param [Hash] opts the optional parameters
|
23783
|
-
# @option opts [Integer] :pages_count Pages count.
|
23784
24159
|
# @option opts [String] :storage The document storage.
|
23785
24160
|
# @option opts [File] :file A file to be converted.
|
23786
24161
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
@@ -23798,7 +24173,6 @@ module AsposePdfCloud
|
|
23798
24173
|
# query parameters
|
23799
24174
|
query_params = {}
|
23800
24175
|
query_params[:'outPath'] = out_path
|
23801
|
-
query_params[:'pagesCount'] = opts[:'pages_count'] if !opts[:'pages_count'].nil?
|
23802
24176
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
23803
24177
|
|
23804
24178
|
# header parameters
|
@@ -24145,6 +24519,80 @@ module AsposePdfCloud
|
|
24145
24519
|
return data, status_code, headers
|
24146
24520
|
end
|
24147
24521
|
|
24522
|
+
# Converts PDF document (in request content) to TeX format and uploads resulting file to storage.
|
24523
|
+
#
|
24524
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.tex)
|
24525
|
+
# @param [Hash] opts the optional parameters
|
24526
|
+
# @option opts [String] :storage The document storage.
|
24527
|
+
# @option opts [File] :file A file to be converted.
|
24528
|
+
# @return [AsposeResponse]
|
24529
|
+
def put_pdf_in_request_to_te_x(out_path, opts = {})
|
24530
|
+
@api_client.request_token_if_needed
|
24531
|
+
data, _status_code, _headers = put_pdf_in_request_to_te_x_with_http_info(out_path, opts)
|
24532
|
+
rescue ApiError => error
|
24533
|
+
if error.code == 401
|
24534
|
+
@api_client.request_token_if_needed
|
24535
|
+
data, _status_code, _headers = put_pdf_in_request_to_te_x_with_http_info(out_path, opts)
|
24536
|
+
else
|
24537
|
+
raise
|
24538
|
+
end
|
24539
|
+
return data
|
24540
|
+
end
|
24541
|
+
|
24542
|
+
# Converts PDF document (in request content) to TeX format and uploads resulting file to storage.
|
24543
|
+
#
|
24544
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.tex)
|
24545
|
+
# @param [Hash] opts the optional parameters
|
24546
|
+
# @option opts [String] :storage The document storage.
|
24547
|
+
# @option opts [File] :file A file to be converted.
|
24548
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
24549
|
+
def put_pdf_in_request_to_te_x_with_http_info(out_path, opts = {})
|
24550
|
+
if @api_client.config.debugging
|
24551
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_te_x ..."
|
24552
|
+
end
|
24553
|
+
# verify the required parameter 'out_path' is set
|
24554
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
24555
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_request_to_te_x"
|
24556
|
+
end
|
24557
|
+
# resource path
|
24558
|
+
local_var_path = "/pdf/convert/tex"
|
24559
|
+
|
24560
|
+
# query parameters
|
24561
|
+
query_params = {}
|
24562
|
+
query_params[:'outPath'] = out_path
|
24563
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
24564
|
+
|
24565
|
+
# header parameters
|
24566
|
+
header_params = {}
|
24567
|
+
# HTTP header 'Accept' (if needed)
|
24568
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
24569
|
+
# HTTP header 'Content-Type'
|
24570
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
24571
|
+
|
24572
|
+
# form parameters
|
24573
|
+
form_params = {}
|
24574
|
+
# Fix header in file
|
24575
|
+
post_body = nil
|
24576
|
+
post_body = opts[:'file'] if !opts[:'file'].nil?
|
24577
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
24578
|
+
|
24579
|
+
# http body (model)
|
24580
|
+
# Fix header in file
|
24581
|
+
# post_body = nil
|
24582
|
+
auth_names = ['JWT']
|
24583
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
24584
|
+
:header_params => header_params,
|
24585
|
+
:query_params => query_params,
|
24586
|
+
:form_params => form_params,
|
24587
|
+
:body => post_body,
|
24588
|
+
:auth_names => auth_names,
|
24589
|
+
:return_type => 'AsposeResponse')
|
24590
|
+
if @api_client.config.debugging
|
24591
|
+
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_te_x\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
24592
|
+
end
|
24593
|
+
return data, status_code, headers
|
24594
|
+
end
|
24595
|
+
|
24148
24596
|
# Converts PDF document (in request content) to TIFF format and uploads resulting file to storage.
|
24149
24597
|
#
|
24150
24598
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.tiff)
|
@@ -24823,6 +25271,7 @@ module AsposePdfCloud
|
|
24823
25271
|
# @option opts [String] :folder The document folder.
|
24824
25272
|
# @option opts [String] :storage The document storage.
|
24825
25273
|
# @option opts [BOOLEAN] :flow_layout_paragraph_full_width This attribute specifies full width paragraph text for Flow mode, FixedLayout = false.
|
25274
|
+
# @option opts [String] :output_format This parameter determines the type of result. The zip archive will be uploaded into the storage if the parameter is \"Zip\" or missed (default). In case of the \"Folder\", all resulting files and directories will be uploaded to the folder of the resulting HTML file. (default to Zip)
|
24826
25275
|
# @return [AsposeResponse]
|
24827
25276
|
def put_pdf_in_storage_to_html(name, out_path, opts = {})
|
24828
25277
|
@api_client.request_token_if_needed
|
@@ -24873,6 +25322,7 @@ module AsposePdfCloud
|
|
24873
25322
|
# @option opts [String] :folder The document folder.
|
24874
25323
|
# @option opts [String] :storage The document storage.
|
24875
25324
|
# @option opts [BOOLEAN] :flow_layout_paragraph_full_width This attribute specifies full width paragraph text for Flow mode, FixedLayout = false.
|
25325
|
+
# @option opts [String] :output_format This parameter determines the type of result. The zip archive will be uploaded into the storage if the parameter is \"Zip\" or missed (default). In case of the \"Folder\", all resulting files and directories will be uploaded to the folder of the resulting HTML file.
|
24876
25326
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
24877
25327
|
def put_pdf_in_storage_to_html_with_http_info(name, out_path, opts = {})
|
24878
25328
|
if @api_client.config.debugging
|
@@ -24910,6 +25360,9 @@ module AsposePdfCloud
|
|
24910
25360
|
if @api_client.config.client_side_validation && opts[:'raster_images_saving_mode'] && !['AsPngImagesEmbeddedIntoSvg', 'AsExternalPngFilesReferencedViaSvg', 'AsEmbeddedPartsOfPngPageBackground'].include?(opts[:'raster_images_saving_mode'])
|
24911
25361
|
fail ArgumentError, 'invalid value for "raster_images_saving_mode", must be one of AsPngImagesEmbeddedIntoSvg, AsExternalPngFilesReferencedViaSvg, AsEmbeddedPartsOfPngPageBackground'
|
24912
25362
|
end
|
25363
|
+
if @api_client.config.client_side_validation && opts[:'output_format'] && !['Zip', 'Folder'].include?(opts[:'output_format'])
|
25364
|
+
fail ArgumentError, 'invalid value for "output_format", must be one of Zip, Folder'
|
25365
|
+
end
|
24913
25366
|
# resource path
|
24914
25367
|
local_var_path = "/pdf/{name}/convert/html".sub('{' + 'name' + '}', name.to_s)
|
24915
25368
|
|
@@ -24947,6 +25400,7 @@ module AsposePdfCloud
|
|
24947
25400
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
24948
25401
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
24949
25402
|
query_params[:'flowLayoutParagraphFullWidth'] = opts[:'flow_layout_paragraph_full_width'] if !opts[:'flow_layout_paragraph_full_width'].nil?
|
25403
|
+
query_params[:'outputFormat'] = opts[:'output_format'] if !opts[:'output_format'].nil?
|
24950
25404
|
|
24951
25405
|
# header parameters
|
24952
25406
|
header_params = {}
|
@@ -24977,12 +25431,11 @@ module AsposePdfCloud
|
|
24977
25431
|
return data, status_code, headers
|
24978
25432
|
end
|
24979
25433
|
|
24980
|
-
# Converts PDF document (located on storage) to
|
25434
|
+
# Converts PDF document (located on storage) to TeX format and uploads resulting file to storage
|
24981
25435
|
#
|
24982
25436
|
# @param name The document name.
|
24983
25437
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.tex)
|
24984
25438
|
# @param [Hash] opts the optional parameters
|
24985
|
-
# @option opts [Integer] :pages_count Pages count.
|
24986
25439
|
# @option opts [String] :folder The document folder.
|
24987
25440
|
# @option opts [String] :storage The document storage.
|
24988
25441
|
# @return [AsposeResponse]
|
@@ -24999,12 +25452,11 @@ module AsposePdfCloud
|
|
24999
25452
|
return data
|
25000
25453
|
end
|
25001
25454
|
|
25002
|
-
# Converts PDF document (located on storage) to
|
25455
|
+
# Converts PDF document (located on storage) to TeX format and uploads resulting file to storage
|
25003
25456
|
#
|
25004
25457
|
# @param name The document name.
|
25005
25458
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.tex)
|
25006
25459
|
# @param [Hash] opts the optional parameters
|
25007
|
-
# @option opts [Integer] :pages_count Pages count.
|
25008
25460
|
# @option opts [String] :folder The document folder.
|
25009
25461
|
# @option opts [String] :storage The document storage.
|
25010
25462
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
@@ -25026,7 +25478,6 @@ module AsposePdfCloud
|
|
25026
25478
|
# query parameters
|
25027
25479
|
query_params = {}
|
25028
25480
|
query_params[:'outPath'] = out_path
|
25029
|
-
query_params[:'pagesCount'] = opts[:'pages_count'] if !opts[:'pages_count'].nil?
|
25030
25481
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
25031
25482
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
25032
25483
|
|
@@ -25392,6 +25843,85 @@ module AsposePdfCloud
|
|
25392
25843
|
return data, status_code, headers
|
25393
25844
|
end
|
25394
25845
|
|
25846
|
+
# Converts PDF document (located on storage) to TeX format and uploads resulting file to storage
|
25847
|
+
#
|
25848
|
+
# @param name The document name.
|
25849
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.tex)
|
25850
|
+
# @param [Hash] opts the optional parameters
|
25851
|
+
# @option opts [String] :folder The document folder.
|
25852
|
+
# @option opts [String] :storage The document storage.
|
25853
|
+
# @return [AsposeResponse]
|
25854
|
+
def put_pdf_in_storage_to_te_x(name, out_path, opts = {})
|
25855
|
+
@api_client.request_token_if_needed
|
25856
|
+
data, _status_code, _headers = put_pdf_in_storage_to_te_x_with_http_info(name, out_path, opts)
|
25857
|
+
rescue ApiError => error
|
25858
|
+
if error.code == 401
|
25859
|
+
@api_client.request_token_if_needed
|
25860
|
+
data, _status_code, _headers = put_pdf_in_storage_to_te_x_with_http_info(name, out_path, opts)
|
25861
|
+
else
|
25862
|
+
raise
|
25863
|
+
end
|
25864
|
+
return data
|
25865
|
+
end
|
25866
|
+
|
25867
|
+
# Converts PDF document (located on storage) to TeX format and uploads resulting file to storage
|
25868
|
+
#
|
25869
|
+
# @param name The document name.
|
25870
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.tex)
|
25871
|
+
# @param [Hash] opts the optional parameters
|
25872
|
+
# @option opts [String] :folder The document folder.
|
25873
|
+
# @option opts [String] :storage The document storage.
|
25874
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
25875
|
+
def put_pdf_in_storage_to_te_x_with_http_info(name, out_path, opts = {})
|
25876
|
+
if @api_client.config.debugging
|
25877
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_te_x ..."
|
25878
|
+
end
|
25879
|
+
# verify the required parameter 'name' is set
|
25880
|
+
if @api_client.config.client_side_validation && name.nil?
|
25881
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_pdf_in_storage_to_te_x"
|
25882
|
+
end
|
25883
|
+
# verify the required parameter 'out_path' is set
|
25884
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
25885
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_storage_to_te_x"
|
25886
|
+
end
|
25887
|
+
# resource path
|
25888
|
+
local_var_path = "/pdf/{name}/convert/tex".sub('{' + 'name' + '}', name.to_s)
|
25889
|
+
|
25890
|
+
# query parameters
|
25891
|
+
query_params = {}
|
25892
|
+
query_params[:'outPath'] = out_path
|
25893
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
25894
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
25895
|
+
|
25896
|
+
# header parameters
|
25897
|
+
header_params = {}
|
25898
|
+
# HTTP header 'Accept' (if needed)
|
25899
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
25900
|
+
# HTTP header 'Content-Type'
|
25901
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
25902
|
+
|
25903
|
+
# form parameters
|
25904
|
+
form_params = {}
|
25905
|
+
# Fix header in file
|
25906
|
+
post_body = nil
|
25907
|
+
|
25908
|
+
# http body (model)
|
25909
|
+
# Fix header in file
|
25910
|
+
# post_body = nil
|
25911
|
+
auth_names = ['JWT']
|
25912
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
25913
|
+
:header_params => header_params,
|
25914
|
+
:query_params => query_params,
|
25915
|
+
:form_params => form_params,
|
25916
|
+
:body => post_body,
|
25917
|
+
:auth_names => auth_names,
|
25918
|
+
:return_type => 'AsposeResponse')
|
25919
|
+
if @api_client.config.debugging
|
25920
|
+
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_te_x\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
25921
|
+
end
|
25922
|
+
return data, status_code, headers
|
25923
|
+
end
|
25924
|
+
|
25395
25925
|
# Converts PDF document (located on storage) to TIFF format and uploads resulting file to storage
|
25396
25926
|
#
|
25397
25927
|
# @param name The document name.
|
@@ -26849,6 +27379,89 @@ module AsposePdfCloud
|
|
26849
27379
|
return data, status_code, headers
|
26850
27380
|
end
|
26851
27381
|
|
27382
|
+
# Replace document signature field.
|
27383
|
+
#
|
27384
|
+
# @param name The document name.
|
27385
|
+
# @param field_name The field name.
|
27386
|
+
# @param field The field.
|
27387
|
+
# @param [Hash] opts the optional parameters
|
27388
|
+
# @option opts [String] :storage The document storage.
|
27389
|
+
# @option opts [String] :folder The document folder.
|
27390
|
+
# @return [SignatureFieldResponse]
|
27391
|
+
def put_signature_field(name, field_name, field, opts = {})
|
27392
|
+
@api_client.request_token_if_needed
|
27393
|
+
data, _status_code, _headers = put_signature_field_with_http_info(name, field_name, field, opts)
|
27394
|
+
rescue ApiError => error
|
27395
|
+
if error.code == 401
|
27396
|
+
@api_client.request_token_if_needed
|
27397
|
+
data, _status_code, _headers = put_signature_field_with_http_info(name, field_name, field, opts)
|
27398
|
+
else
|
27399
|
+
raise
|
27400
|
+
end
|
27401
|
+
return data
|
27402
|
+
end
|
27403
|
+
|
27404
|
+
# Replace document signature field.
|
27405
|
+
#
|
27406
|
+
# @param name The document name.
|
27407
|
+
# @param field_name The field name.
|
27408
|
+
# @param field The field.
|
27409
|
+
# @param [Hash] opts the optional parameters
|
27410
|
+
# @option opts [String] :storage The document storage.
|
27411
|
+
# @option opts [String] :folder The document folder.
|
27412
|
+
# @return [Array<(SignatureFieldResponse, Fixnum, Hash)>] SignatureFieldResponse data, response status code and response headers
|
27413
|
+
def put_signature_field_with_http_info(name, field_name, field, opts = {})
|
27414
|
+
if @api_client.config.debugging
|
27415
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_signature_field ..."
|
27416
|
+
end
|
27417
|
+
# verify the required parameter 'name' is set
|
27418
|
+
if @api_client.config.client_side_validation && name.nil?
|
27419
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_signature_field"
|
27420
|
+
end
|
27421
|
+
# verify the required parameter 'field_name' is set
|
27422
|
+
if @api_client.config.client_side_validation && field_name.nil?
|
27423
|
+
fail ArgumentError, "Missing the required parameter 'field_name' when calling PdfApi.put_signature_field"
|
27424
|
+
end
|
27425
|
+
# verify the required parameter 'field' is set
|
27426
|
+
if @api_client.config.client_side_validation && field.nil?
|
27427
|
+
fail ArgumentError, "Missing the required parameter 'field' when calling PdfApi.put_signature_field"
|
27428
|
+
end
|
27429
|
+
# resource path
|
27430
|
+
local_var_path = "/pdf/{name}/fields/signature/{fieldName}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'fieldName' + '}', field_name.to_s)
|
27431
|
+
|
27432
|
+
# query parameters
|
27433
|
+
query_params = {}
|
27434
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
27435
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
27436
|
+
|
27437
|
+
# header parameters
|
27438
|
+
header_params = {}
|
27439
|
+
# HTTP header 'Accept' (if needed)
|
27440
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
27441
|
+
# HTTP header 'Content-Type'
|
27442
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
27443
|
+
|
27444
|
+
# form parameters
|
27445
|
+
form_params = {}
|
27446
|
+
# Fix header in file
|
27447
|
+
post_body = nil
|
27448
|
+
|
27449
|
+
# http body (model)
|
27450
|
+
post_body = @api_client.object_to_http_body(field)
|
27451
|
+
auth_names = ['JWT']
|
27452
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
27453
|
+
:header_params => header_params,
|
27454
|
+
:query_params => query_params,
|
27455
|
+
:form_params => form_params,
|
27456
|
+
:body => post_body,
|
27457
|
+
:auth_names => auth_names,
|
27458
|
+
:return_type => 'SignatureFieldResponse')
|
27459
|
+
if @api_client.config.debugging
|
27460
|
+
@api_client.config.logger.debug "API called: PdfApi#put_signature_field\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
27461
|
+
end
|
27462
|
+
return data, status_code, headers
|
27463
|
+
end
|
27464
|
+
|
26852
27465
|
# Replace document sound annotation
|
26853
27466
|
#
|
26854
27467
|
# @param name The document name.
|
@@ -27620,6 +28233,85 @@ module AsposePdfCloud
|
|
27620
28233
|
return data, status_code, headers
|
27621
28234
|
end
|
27622
28235
|
|
28236
|
+
# Convert TeX file (located on storage) to PDF format and upload resulting file to storage.
|
28237
|
+
#
|
28238
|
+
# @param name The document name.
|
28239
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.tex)
|
28240
|
+
# @param [Hash] opts the optional parameters
|
28241
|
+
# @option opts [String] :dst_folder The destination document folder.
|
28242
|
+
# @option opts [String] :storage The document storage.
|
28243
|
+
# @return [AsposeResponse]
|
28244
|
+
def put_te_x_in_storage_to_pdf(name, src_path, opts = {})
|
28245
|
+
@api_client.request_token_if_needed
|
28246
|
+
data, _status_code, _headers = put_te_x_in_storage_to_pdf_with_http_info(name, src_path, opts)
|
28247
|
+
rescue ApiError => error
|
28248
|
+
if error.code == 401
|
28249
|
+
@api_client.request_token_if_needed
|
28250
|
+
data, _status_code, _headers = put_te_x_in_storage_to_pdf_with_http_info(name, src_path, opts)
|
28251
|
+
else
|
28252
|
+
raise
|
28253
|
+
end
|
28254
|
+
return data
|
28255
|
+
end
|
28256
|
+
|
28257
|
+
# Convert TeX file (located on storage) to PDF format and upload resulting file to storage.
|
28258
|
+
#
|
28259
|
+
# @param name The document name.
|
28260
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.tex)
|
28261
|
+
# @param [Hash] opts the optional parameters
|
28262
|
+
# @option opts [String] :dst_folder The destination document folder.
|
28263
|
+
# @option opts [String] :storage The document storage.
|
28264
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
28265
|
+
def put_te_x_in_storage_to_pdf_with_http_info(name, src_path, opts = {})
|
28266
|
+
if @api_client.config.debugging
|
28267
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_te_x_in_storage_to_pdf ..."
|
28268
|
+
end
|
28269
|
+
# verify the required parameter 'name' is set
|
28270
|
+
if @api_client.config.client_side_validation && name.nil?
|
28271
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_te_x_in_storage_to_pdf"
|
28272
|
+
end
|
28273
|
+
# verify the required parameter 'src_path' is set
|
28274
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
28275
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.put_te_x_in_storage_to_pdf"
|
28276
|
+
end
|
28277
|
+
# resource path
|
28278
|
+
local_var_path = "/pdf/{name}/create/tex".sub('{' + 'name' + '}', name.to_s)
|
28279
|
+
|
28280
|
+
# query parameters
|
28281
|
+
query_params = {}
|
28282
|
+
query_params[:'srcPath'] = src_path
|
28283
|
+
query_params[:'dstFolder'] = opts[:'dst_folder'] if !opts[:'dst_folder'].nil?
|
28284
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
28285
|
+
|
28286
|
+
# header parameters
|
28287
|
+
header_params = {}
|
28288
|
+
# HTTP header 'Accept' (if needed)
|
28289
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
28290
|
+
# HTTP header 'Content-Type'
|
28291
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
28292
|
+
|
28293
|
+
# form parameters
|
28294
|
+
form_params = {}
|
28295
|
+
# Fix header in file
|
28296
|
+
post_body = nil
|
28297
|
+
|
28298
|
+
# http body (model)
|
28299
|
+
# Fix header in file
|
28300
|
+
# post_body = nil
|
28301
|
+
auth_names = ['JWT']
|
28302
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
28303
|
+
:header_params => header_params,
|
28304
|
+
:query_params => query_params,
|
28305
|
+
:form_params => form_params,
|
28306
|
+
:body => post_body,
|
28307
|
+
:auth_names => auth_names,
|
28308
|
+
:return_type => 'AsposeResponse')
|
28309
|
+
if @api_client.config.debugging
|
28310
|
+
@api_client.config.logger.debug "API called: PdfApi#put_te_x_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
28311
|
+
end
|
28312
|
+
return data, status_code, headers
|
28313
|
+
end
|
28314
|
+
|
27623
28315
|
# Replace document text annotation
|
27624
28316
|
#
|
27625
28317
|
# @param name The document name.
|