aspose_pdf_cloud 20.2.0 → 20.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -13
  3. data/docs/ApiInfo.md +10 -0
  4. data/docs/Cell.md +3 -0
  5. data/docs/CheckBoxField.md +1 -0
  6. data/docs/ChoiceField.md +1 -0
  7. data/docs/ComboBoxField.md +1 -0
  8. data/docs/FormField.md +1 -0
  9. data/docs/ImageCompressionVersion.md +12 -0
  10. data/docs/ImageEncoding.md +13 -0
  11. data/docs/ImageFragment.md +15 -0
  12. data/docs/ListBoxField.md +1 -0
  13. data/docs/OptimizeOptions.md +13 -7
  14. data/docs/OutputFormat.md +11 -0
  15. data/docs/Paragraph.md +2 -2
  16. data/docs/PdfAType.md +3 -2
  17. data/docs/PdfApi.md +170 -25
  18. data/docs/RadioButtonField.md +1 -0
  19. data/docs/RadioButtonOptionField.md +1 -0
  20. data/docs/SignatureField.md +1 -0
  21. data/docs/TextBoxField.md +1 -0
  22. data/docs/TextState.md +2 -1
  23. data/lib/aspose_pdf_cloud.rb +5 -0
  24. data/lib/aspose_pdf_cloud/api/pdf_api.rb +478 -41
  25. data/lib/aspose_pdf_cloud/api_client.rb +1 -1
  26. data/lib/aspose_pdf_cloud/models/api_info.rb +209 -0
  27. data/lib/aspose_pdf_cloud/models/cell.rb +36 -4
  28. data/lib/aspose_pdf_cloud/models/check_box_field.rb +11 -1
  29. data/lib/aspose_pdf_cloud/models/choice_field.rb +11 -1
  30. data/lib/aspose_pdf_cloud/models/combo_box_field.rb +11 -1
  31. data/lib/aspose_pdf_cloud/models/form_field.rb +11 -1
  32. data/lib/aspose_pdf_cloud/models/image_compression_version.rb +45 -0
  33. data/lib/aspose_pdf_cloud/models/image_encoding.rb +46 -0
  34. data/lib/aspose_pdf_cloud/models/image_fragment.rb +283 -0
  35. data/lib/aspose_pdf_cloud/models/list_box_field.rb +11 -1
  36. data/lib/aspose_pdf_cloud/models/optimize_options.rb +60 -35
  37. data/lib/aspose_pdf_cloud/models/output_format.rb +44 -0
  38. data/lib/aspose_pdf_cloud/models/paragraph.rb +2 -2
  39. data/lib/aspose_pdf_cloud/models/pdf_a_type.rb +1 -0
  40. data/lib/aspose_pdf_cloud/models/radio_button_field.rb +11 -1
  41. data/lib/aspose_pdf_cloud/models/radio_button_option_field.rb +11 -1
  42. data/lib/aspose_pdf_cloud/models/signature_field.rb +11 -1
  43. data/lib/aspose_pdf_cloud/models/text_box_field.rb +11 -1
  44. data/lib/aspose_pdf_cloud/models/text_state.rb +15 -5
  45. data/lib/aspose_pdf_cloud/version.rb +1 -1
  46. data/test/pdf_tests.rb +140 -98
  47. data/test_data/Righteous-Regular.ttf +0 -0
  48. metadata +13 -2
@@ -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. |
@@ -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. |
@@ -5,9 +5,10 @@ Represents a text state of a text
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **font_size** | **Float** | Gets or sets font size of the text. |
8
- **font** | **String** | Gets or sets font of the text. | [optional]
8
+ **font** | **String** | Gets or sets font name of the text. | [optional]
9
9
  **foreground_color** | [**Color**](Color.md) | Gets or sets foreground color of the text. | [optional]
10
10
  **background_color** | [**Color**](Color.md) | Sets background color of the text. | [optional]
11
11
  **font_style** | [**FontStyles**](FontStyles.md) | Sets font style of the text. |
12
+ **font_file** | **String** | Sets path of font file in storage. | [optional]
12
13
 
13
14
 
@@ -30,6 +30,7 @@ require_relative 'aspose_pdf_cloud/models/annotation_flags'
30
30
  require_relative 'aspose_pdf_cloud/models/annotation_state'
31
31
  require_relative 'aspose_pdf_cloud/models/annotation_type'
32
32
  require_relative 'aspose_pdf_cloud/models/antialiasing_processing_type'
33
+ require_relative 'aspose_pdf_cloud/models/api_info'
33
34
  require_relative 'aspose_pdf_cloud/models/aspose_response'
34
35
  require_relative 'aspose_pdf_cloud/models/border'
35
36
  require_relative 'aspose_pdf_cloud/models/border_corner_style'
@@ -72,6 +73,9 @@ require_relative 'aspose_pdf_cloud/models/graph_info'
72
73
  require_relative 'aspose_pdf_cloud/models/horizontal_alignment'
73
74
  require_relative 'aspose_pdf_cloud/models/html_document_type'
74
75
  require_relative 'aspose_pdf_cloud/models/html_markup_generation_modes'
76
+ require_relative 'aspose_pdf_cloud/models/image_compression_version'
77
+ require_relative 'aspose_pdf_cloud/models/image_encoding'
78
+ require_relative 'aspose_pdf_cloud/models/image_fragment'
75
79
  require_relative 'aspose_pdf_cloud/models/image_src_type'
76
80
  require_relative 'aspose_pdf_cloud/models/image_template'
77
81
  require_relative 'aspose_pdf_cloud/models/image_templates_request'
@@ -89,6 +93,7 @@ require_relative 'aspose_pdf_cloud/models/merge_documents'
89
93
  require_relative 'aspose_pdf_cloud/models/object_exist'
90
94
  require_relative 'aspose_pdf_cloud/models/optimize_options'
91
95
  require_relative 'aspose_pdf_cloud/models/option'
96
+ require_relative 'aspose_pdf_cloud/models/output_format'
92
97
  require_relative 'aspose_pdf_cloud/models/page_layout'
93
98
  require_relative 'aspose_pdf_cloud/models/page_mode'
94
99
  require_relative 'aspose_pdf_cloud/models/page_word_count'
@@ -1919,6 +1919,66 @@ module AsposePdfCloud
1919
1919
  return data, status_code, headers
1920
1920
  end
1921
1921
 
1922
+ #
1923
+ #
1924
+ # @param [Hash] opts the optional parameters
1925
+ # @return [ApiInfo]
1926
+ def get_api_info(opts = {})
1927
+ @api_client.request_token_if_needed
1928
+ data, _status_code, _headers = get_api_info_with_http_info(opts)
1929
+ rescue ApiError => error
1930
+ if error.code == 401
1931
+ @api_client.request_token_if_needed
1932
+ data, _status_code, _headers = get_api_info_with_http_info(opts)
1933
+ else
1934
+ raise
1935
+ end
1936
+ return data
1937
+ end
1938
+
1939
+ #
1940
+ #
1941
+ # @param [Hash] opts the optional parameters
1942
+ # @return [Array<(ApiInfo, Fixnum, Hash)>] ApiInfo data, response status code and response headers
1943
+ def get_api_info_with_http_info(opts = {})
1944
+ if @api_client.config.debugging
1945
+ @api_client.config.logger.debug "Calling API: PdfApi.get_api_info ..."
1946
+ end
1947
+ # resource path
1948
+ local_var_path = "/pdf/info"
1949
+
1950
+ # query parameters
1951
+ query_params = {}
1952
+
1953
+ # header parameters
1954
+ header_params = {}
1955
+ # HTTP header 'Accept' (if needed)
1956
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1957
+ # HTTP header 'Content-Type'
1958
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1959
+
1960
+ # form parameters
1961
+ form_params = {}
1962
+ # Fix header in file
1963
+ post_body = nil
1964
+
1965
+ # http body (model)
1966
+ # Fix header in file
1967
+ # post_body = nil
1968
+ auth_names = ['JWT']
1969
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1970
+ :header_params => header_params,
1971
+ :query_params => query_params,
1972
+ :form_params => form_params,
1973
+ :body => post_body,
1974
+ :auth_names => auth_names,
1975
+ :return_type => 'ApiInfo')
1976
+ if @api_client.config.debugging
1977
+ @api_client.config.logger.debug "API called: PdfApi#get_api_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1978
+ end
1979
+ return data, status_code, headers
1980
+ end
1981
+
1922
1982
  # Read document bookmark.
1923
1983
  #
1924
1984
  # @param name The document name.
@@ -2522,7 +2582,7 @@ module AsposePdfCloud
2522
2582
  return data, status_code, headers
2523
2583
  end
2524
2584
 
2525
- # Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
2585
+ # Read document page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
2526
2586
  #
2527
2587
  # @param name The document name.
2528
2588
  # @param [Hash] opts the optional parameters
@@ -2542,7 +2602,7 @@ module AsposePdfCloud
2542
2602
  return data
2543
2603
  end
2544
2604
 
2545
- # Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
2605
+ # Read document page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
2546
2606
  #
2547
2607
  # @param name The document name.
2548
2608
  # @param [Hash] opts the optional parameters
@@ -6997,7 +7057,7 @@ module AsposePdfCloud
6997
7057
  return data, status_code, headers
6998
7058
  end
6999
7059
 
7000
- # Convert LaTeX file (located on storage) to PDF format and return resulting file in response.
7060
+ # Convert TeX file (located on storage) to PDF format and return resulting file in response.
7001
7061
  #
7002
7062
  # @param src_path Full source filename (ex. /folder1/folder2/template.tex)
7003
7063
  # @param [Hash] opts the optional parameters
@@ -7016,7 +7076,7 @@ module AsposePdfCloud
7016
7076
  return data
7017
7077
  end
7018
7078
 
7019
- # Convert LaTeX file (located on storage) to PDF format and return resulting file in response.
7079
+ # Convert TeX file (located on storage) to PDF format and return resulting file in response.
7020
7080
  #
7021
7081
  # @param src_path Full source filename (ex. /folder1/folder2/template.tex)
7022
7082
  # @param [Hash] opts the optional parameters
@@ -11218,11 +11278,10 @@ module AsposePdfCloud
11218
11278
  return data, status_code, headers
11219
11279
  end
11220
11280
 
11221
- # Converts PDF document (located on storage) to LaTeX format and returns resulting file in response content
11281
+ # Converts PDF document (located on storage) to TeX format and returns resulting file in response content
11222
11282
  #
11223
11283
  # @param name The document name.
11224
11284
  # @param [Hash] opts the optional parameters
11225
- # @option opts [Integer] :pages_count Pages count.
11226
11285
  # @option opts [String] :folder The document folder.
11227
11286
  # @option opts [String] :storage The document storage.
11228
11287
  # @return [File]
@@ -11239,11 +11298,10 @@ module AsposePdfCloud
11239
11298
  return data
11240
11299
  end
11241
11300
 
11242
- # Converts PDF document (located on storage) to LaTeX format and returns resulting file in response content
11301
+ # Converts PDF document (located on storage) to TeX format and returns resulting file in response content
11243
11302
  #
11244
11303
  # @param name The document name.
11245
11304
  # @param [Hash] opts the optional parameters
11246
- # @option opts [Integer] :pages_count Pages count.
11247
11305
  # @option opts [String] :folder The document folder.
11248
11306
  # @option opts [String] :storage The document storage.
11249
11307
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
@@ -11260,7 +11318,6 @@ module AsposePdfCloud
11260
11318
 
11261
11319
  # query parameters
11262
11320
  query_params = {}
11263
- query_params[:'pagesCount'] = opts[:'pages_count'] if !opts[:'pages_count'].nil?
11264
11321
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
11265
11322
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
11266
11323
 
@@ -11407,8 +11464,8 @@ module AsposePdfCloud
11407
11464
  fail ArgumentError, "Missing the required parameter 'type' when calling PdfApi.get_pdf_in_storage_to_pdf_a"
11408
11465
  end
11409
11466
  # verify enum value
11410
- if @api_client.config.client_side_validation && !['PDFA1A', 'PDFA1B'].include?(type)
11411
- fail ArgumentError, "invalid value for 'type', must be one of PDFA1A, PDFA1B"
11467
+ if @api_client.config.client_side_validation && !['PDFA1A', 'PDFA1B', 'PDFA3A'].include?(type)
11468
+ fail ArgumentError, "invalid value for 'type', must be one of PDFA1A, PDFA1B, PDFA3A"
11412
11469
  end
11413
11470
  # resource path
11414
11471
  local_var_path = "/pdf/{name}/convert/pdfa".sub('{' + 'name' + '}', name.to_s)
@@ -11601,6 +11658,78 @@ module AsposePdfCloud
11601
11658
  return data, status_code, headers
11602
11659
  end
11603
11660
 
11661
+ # Converts PDF document (located on storage) to TeX format and returns resulting file in response content
11662
+ #
11663
+ # @param name The document name.
11664
+ # @param [Hash] opts the optional parameters
11665
+ # @option opts [String] :folder The document folder.
11666
+ # @option opts [String] :storage The document storage.
11667
+ # @return [File]
11668
+ def get_pdf_in_storage_to_te_x(name, opts = {})
11669
+ @api_client.request_token_if_needed
11670
+ data, _status_code, _headers = get_pdf_in_storage_to_te_x_with_http_info(name, opts)
11671
+ rescue ApiError => error
11672
+ if error.code == 401
11673
+ @api_client.request_token_if_needed
11674
+ data, _status_code, _headers = get_pdf_in_storage_to_te_x_with_http_info(name, opts)
11675
+ else
11676
+ raise
11677
+ end
11678
+ return data
11679
+ end
11680
+
11681
+ # Converts PDF document (located on storage) to TeX format and returns resulting file in response content
11682
+ #
11683
+ # @param name The document name.
11684
+ # @param [Hash] opts the optional parameters
11685
+ # @option opts [String] :folder The document folder.
11686
+ # @option opts [String] :storage The document storage.
11687
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
11688
+ def get_pdf_in_storage_to_te_x_with_http_info(name, opts = {})
11689
+ if @api_client.config.debugging
11690
+ @api_client.config.logger.debug "Calling API: PdfApi.get_pdf_in_storage_to_te_x ..."
11691
+ end
11692
+ # verify the required parameter 'name' is set
11693
+ if @api_client.config.client_side_validation && name.nil?
11694
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_pdf_in_storage_to_te_x"
11695
+ end
11696
+ # resource path
11697
+ local_var_path = "/pdf/{name}/convert/tex".sub('{' + 'name' + '}', name.to_s)
11698
+
11699
+ # query parameters
11700
+ query_params = {}
11701
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
11702
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
11703
+
11704
+ # header parameters
11705
+ header_params = {}
11706
+ # HTTP header 'Accept' (if needed)
11707
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
11708
+ # HTTP header 'Content-Type'
11709
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
11710
+
11711
+ # form parameters
11712
+ form_params = {}
11713
+ # Fix header in file
11714
+ post_body = nil
11715
+
11716
+ # http body (model)
11717
+ # Fix header in file
11718
+ # post_body = nil
11719
+ auth_names = ['JWT']
11720
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
11721
+ :header_params => header_params,
11722
+ :query_params => query_params,
11723
+ :form_params => form_params,
11724
+ :body => post_body,
11725
+ :auth_names => auth_names,
11726
+ :return_type => 'File')
11727
+ if @api_client.config.debugging
11728
+ @api_client.config.logger.debug "API called: PdfApi#get_pdf_in_storage_to_te_x\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11729
+ end
11730
+ return data, status_code, headers
11731
+ end
11732
+
11604
11733
  # Converts PDF document (located on storage) to TIFF format and returns resulting file in response content
11605
11734
  #
11606
11735
  # @param name The document name.
@@ -13451,6 +13580,76 @@ module AsposePdfCloud
13451
13580
  return data, status_code, headers
13452
13581
  end
13453
13582
 
13583
+ # Convert TeX file (located on storage) to PDF format and return resulting file in response.
13584
+ #
13585
+ # @param src_path Full source filename (ex. /folder1/folder2/template.tex)
13586
+ # @param [Hash] opts the optional parameters
13587
+ # @option opts [String] :storage The document storage.
13588
+ # @return [File]
13589
+ def get_te_x_in_storage_to_pdf(src_path, opts = {})
13590
+ @api_client.request_token_if_needed
13591
+ data, _status_code, _headers = get_te_x_in_storage_to_pdf_with_http_info(src_path, opts)
13592
+ rescue ApiError => error
13593
+ if error.code == 401
13594
+ @api_client.request_token_if_needed
13595
+ data, _status_code, _headers = get_te_x_in_storage_to_pdf_with_http_info(src_path, opts)
13596
+ else
13597
+ raise
13598
+ end
13599
+ return data
13600
+ end
13601
+
13602
+ # Convert TeX file (located on storage) to PDF format and return resulting file in response.
13603
+ #
13604
+ # @param src_path Full source filename (ex. /folder1/folder2/template.tex)
13605
+ # @param [Hash] opts the optional parameters
13606
+ # @option opts [String] :storage The document storage.
13607
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
13608
+ def get_te_x_in_storage_to_pdf_with_http_info(src_path, opts = {})
13609
+ if @api_client.config.debugging
13610
+ @api_client.config.logger.debug "Calling API: PdfApi.get_te_x_in_storage_to_pdf ..."
13611
+ end
13612
+ # verify the required parameter 'src_path' is set
13613
+ if @api_client.config.client_side_validation && src_path.nil?
13614
+ fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.get_te_x_in_storage_to_pdf"
13615
+ end
13616
+ # resource path
13617
+ local_var_path = "/pdf/create/tex"
13618
+
13619
+ # query parameters
13620
+ query_params = {}
13621
+ query_params[:'srcPath'] = src_path
13622
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
13623
+
13624
+ # header parameters
13625
+ header_params = {}
13626
+ # HTTP header 'Accept' (if needed)
13627
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
13628
+ # HTTP header 'Content-Type'
13629
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
13630
+
13631
+ # form parameters
13632
+ form_params = {}
13633
+ # Fix header in file
13634
+ post_body = nil
13635
+
13636
+ # http body (model)
13637
+ # Fix header in file
13638
+ # post_body = nil
13639
+ auth_names = ['JWT']
13640
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
13641
+ :header_params => header_params,
13642
+ :query_params => query_params,
13643
+ :form_params => form_params,
13644
+ :body => post_body,
13645
+ :auth_names => auth_names,
13646
+ :return_type => 'File')
13647
+ if @api_client.config.debugging
13648
+ @api_client.config.logger.debug "API called: PdfApi#get_te_x_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13649
+ end
13650
+ return data, status_code, headers
13651
+ end
13652
+
13454
13653
  # Read document text.
13455
13654
  #
13456
13655
  # @param name The document name.
@@ -14036,7 +14235,7 @@ module AsposePdfCloud
14036
14235
  return data, status_code, headers
14037
14236
  end
14038
14237
 
14039
- # Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
14238
+ # Converts PDF document which contains XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
14040
14239
  #
14041
14240
  # @param name The document name.
14042
14241
  # @param [Hash] opts the optional parameters
@@ -14056,7 +14255,7 @@ module AsposePdfCloud
14056
14255
  return data
14057
14256
  end
14058
14257
 
14059
- # Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
14258
+ # Converts PDF document which contains XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
14060
14259
  #
14061
14260
  # @param name The document name.
14062
14261
  # @param [Hash] opts the optional parameters
@@ -17225,7 +17424,7 @@ module AsposePdfCloud
17225
17424
  #
17226
17425
  # @param name The document name.
17227
17426
  # @param page_number The page number.
17228
- # @param links Array of link anotation.
17427
+ # @param links Array of link annotation.
17229
17428
  # @param [Hash] opts the optional parameters
17230
17429
  # @option opts [String] :storage The document storage.
17231
17430
  # @option opts [String] :folder The document folder.
@@ -17247,7 +17446,7 @@ module AsposePdfCloud
17247
17446
  #
17248
17447
  # @param name The document name.
17249
17448
  # @param page_number The page number.
17250
- # @param links Array of link anotation.
17449
+ # @param links Array of link annotation.
17251
17450
  # @param [Hash] opts the optional parameters
17252
17451
  # @option opts [String] :storage The document storage.
17253
17452
  # @option opts [String] :folder The document folder.
@@ -20011,7 +20210,7 @@ module AsposePdfCloud
20011
20210
  # @param password The password (encrypted Base64).
20012
20211
  # @param [Hash] opts the optional parameters
20013
20212
  # @option opts [String] :storage The document storage.
20014
- # @option opts [File] :file A file to be derypted.
20213
+ # @option opts [File] :file A file to be decrypted.
20015
20214
  # @return [AsposeResponse]
20016
20215
  def put_decrypt_document(out_path, password, opts = {})
20017
20216
  @api_client.request_token_if_needed
@@ -20032,7 +20231,7 @@ module AsposePdfCloud
20032
20231
  # @param password The password (encrypted Base64).
20033
20232
  # @param [Hash] opts the optional parameters
20034
20233
  # @option opts [String] :storage The document storage.
20035
- # @option opts [File] :file A file to be derypted.
20234
+ # @option opts [File] :file A file to be decrypted.
20036
20235
  # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
20037
20236
  def put_decrypt_document_with_http_info(out_path, password, opts = {})
20038
20237
  if @api_client.config.debugging
@@ -22182,7 +22381,7 @@ module AsposePdfCloud
22182
22381
  return data, status_code, headers
22183
22382
  end
22184
22383
 
22185
- # Convert LaTeX file (located on storage) to PDF format and upload resulting file to storage.
22384
+ # Convert TeX file (located on storage) to PDF format and upload resulting file to storage.
22186
22385
  #
22187
22386
  # @param name The document name.
22188
22387
  # @param src_path Full source filename (ex. /folder1/folder2/template.tex)
@@ -22203,7 +22402,7 @@ module AsposePdfCloud
22203
22402
  return data
22204
22403
  end
22205
22404
 
22206
- # Convert LaTeX file (located on storage) to PDF format and upload resulting file to storage.
22405
+ # Convert TeX file (located on storage) to PDF format and upload resulting file to storage.
22207
22406
  #
22208
22407
  # @param name The document name.
22209
22408
  # @param src_path Full source filename (ex. /folder1/folder2/template.tex)
@@ -22348,7 +22547,7 @@ module AsposePdfCloud
22348
22547
  #
22349
22548
  # @param name The document name.
22350
22549
  # @param link_id The link ID.
22351
- # @param link Link anotation.
22550
+ # @param link Link annotation.
22352
22551
  # @param [Hash] opts the optional parameters
22353
22552
  # @option opts [String] :storage The document storage.
22354
22553
  # @option opts [String] :folder The document folder.
@@ -22370,7 +22569,7 @@ module AsposePdfCloud
22370
22569
  #
22371
22570
  # @param name The document name.
22372
22571
  # @param link_id The link ID.
22373
- # @param link Link anotation.
22572
+ # @param link Link annotation.
22374
22573
  # @param [Hash] opts the optional parameters
22375
22574
  # @option opts [String] :storage The document storage.
22376
22575
  # @option opts [String] :folder The document folder.
@@ -22591,7 +22790,7 @@ module AsposePdfCloud
22591
22790
 
22592
22791
  # Merge a list of documents.
22593
22792
  #
22594
- # @param name Resulting documen name.
22793
+ # @param name Resulting document name.
22595
22794
  # @param merge_documents MergeDocuments with a list of documents.
22596
22795
  # @param [Hash] opts the optional parameters
22597
22796
  # @option opts [String] :storage Resulting document storage.
@@ -22612,7 +22811,7 @@ module AsposePdfCloud
22612
22811
 
22613
22812
  # Merge a list of documents.
22614
22813
  #
22615
- # @param name Resulting documen name.
22814
+ # @param name Resulting document name.
22616
22815
  # @param merge_documents MergeDocuments with a list of documents.
22617
22816
  # @param [Hash] opts the optional parameters
22618
22817
  # @option opts [String] :storage Resulting document storage.
@@ -23836,6 +24035,7 @@ module AsposePdfCloud
23836
24035
  # @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&#39;s underlining and put this info into CSS instead of drawing of underlining graphically.
23837
24036
  # @option opts [String] :storage The document storage.
23838
24037
  # @option opts [BOOLEAN] :flow_layout_paragraph_full_width This attribute specifies full width paragraph text for Flow mode, FixedLayout &#x3D; false.
24038
+ # @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 \&quot;Zip\&quot; or missed (default). In case of the \&quot;Folder\&quot;, all resulting files and directories will be uploaded to the folder of the resulting HTML file. (default to Zip)
23839
24039
  # @option opts [File] :file A file to be converted.
23840
24040
  # @return [AsposeResponse]
23841
24041
  def put_pdf_in_request_to_html(out_path, opts = {})
@@ -23885,6 +24085,7 @@ module AsposePdfCloud
23885
24085
  # @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&#39;s underlining and put this info into CSS instead of drawing of underlining graphically.
23886
24086
  # @option opts [String] :storage The document storage.
23887
24087
  # @option opts [BOOLEAN] :flow_layout_paragraph_full_width This attribute specifies full width paragraph text for Flow mode, FixedLayout &#x3D; false.
24088
+ # @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 \&quot;Zip\&quot; or missed (default). In case of the \&quot;Folder\&quot;, all resulting files and directories will be uploaded to the folder of the resulting HTML file.
23888
24089
  # @option opts [File] :file A file to be converted.
23889
24090
  # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
23890
24091
  def put_pdf_in_request_to_html_with_http_info(out_path, opts = {})
@@ -23919,6 +24120,9 @@ module AsposePdfCloud
23919
24120
  if @api_client.config.client_side_validation && opts[:'raster_images_saving_mode'] && !['AsPngImagesEmbeddedIntoSvg', 'AsExternalPngFilesReferencedViaSvg', 'AsEmbeddedPartsOfPngPageBackground'].include?(opts[:'raster_images_saving_mode'])
23920
24121
  fail ArgumentError, 'invalid value for "raster_images_saving_mode", must be one of AsPngImagesEmbeddedIntoSvg, AsExternalPngFilesReferencedViaSvg, AsEmbeddedPartsOfPngPageBackground'
23921
24122
  end
24123
+ if @api_client.config.client_side_validation && opts[:'output_format'] && !['Zip', 'Folder'].include?(opts[:'output_format'])
24124
+ fail ArgumentError, 'invalid value for "output_format", must be one of Zip, Folder'
24125
+ end
23922
24126
  # resource path
23923
24127
  local_var_path = "/pdf/convert/html"
23924
24128
 
@@ -23955,6 +24159,7 @@ module AsposePdfCloud
23955
24159
  query_params[:'trySaveTextUnderliningAndStrikeoutingInCss'] = opts[:'try_save_text_underlining_and_strikeouting_in_css'] if !opts[:'try_save_text_underlining_and_strikeouting_in_css'].nil?
23956
24160
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
23957
24161
  query_params[:'flowLayoutParagraphFullWidth'] = opts[:'flow_layout_paragraph_full_width'] if !opts[:'flow_layout_paragraph_full_width'].nil?
24162
+ query_params[:'outputFormat'] = opts[:'output_format'] if !opts[:'output_format'].nil?
23958
24163
 
23959
24164
  # header parameters
23960
24165
  header_params = {}
@@ -23987,11 +24192,10 @@ module AsposePdfCloud
23987
24192
  return data, status_code, headers
23988
24193
  end
23989
24194
 
23990
- # Converts PDF document (in request content) to LaTeX format and uploads resulting file to storage.
24195
+ # Converts PDF document (in request content) to TeX format and uploads resulting file to storage.
23991
24196
  #
23992
24197
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.tex)
23993
24198
  # @param [Hash] opts the optional parameters
23994
- # @option opts [Integer] :pages_count Pages count.
23995
24199
  # @option opts [String] :storage The document storage.
23996
24200
  # @option opts [File] :file A file to be converted.
23997
24201
  # @return [AsposeResponse]
@@ -24008,11 +24212,10 @@ module AsposePdfCloud
24008
24212
  return data
24009
24213
  end
24010
24214
 
24011
- # Converts PDF document (in request content) to LaTeX format and uploads resulting file to storage.
24215
+ # Converts PDF document (in request content) to TeX format and uploads resulting file to storage.
24012
24216
  #
24013
24217
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.tex)
24014
24218
  # @param [Hash] opts the optional parameters
24015
- # @option opts [Integer] :pages_count Pages count.
24016
24219
  # @option opts [String] :storage The document storage.
24017
24220
  # @option opts [File] :file A file to be converted.
24018
24221
  # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
@@ -24030,7 +24233,6 @@ module AsposePdfCloud
24030
24233
  # query parameters
24031
24234
  query_params = {}
24032
24235
  query_params[:'outPath'] = out_path
24033
- query_params[:'pagesCount'] = opts[:'pages_count'] if !opts[:'pages_count'].nil?
24034
24236
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
24035
24237
 
24036
24238
  # header parameters
@@ -24180,8 +24382,8 @@ module AsposePdfCloud
24180
24382
  fail ArgumentError, "Missing the required parameter 'type' when calling PdfApi.put_pdf_in_request_to_pdf_a"
24181
24383
  end
24182
24384
  # verify enum value
24183
- if @api_client.config.client_side_validation && !['PDFA1A', 'PDFA1B'].include?(type)
24184
- fail ArgumentError, "invalid value for 'type', must be one of PDFA1A, PDFA1B"
24385
+ if @api_client.config.client_side_validation && !['PDFA1A', 'PDFA1B', 'PDFA3A'].include?(type)
24386
+ fail ArgumentError, "invalid value for 'type', must be one of PDFA1A, PDFA1B, PDFA3A"
24185
24387
  end
24186
24388
  # resource path
24187
24389
  local_var_path = "/pdf/convert/pdfa"
@@ -24377,6 +24579,80 @@ module AsposePdfCloud
24377
24579
  return data, status_code, headers
24378
24580
  end
24379
24581
 
24582
+ # Converts PDF document (in request content) to TeX format and uploads resulting file to storage.
24583
+ #
24584
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.tex)
24585
+ # @param [Hash] opts the optional parameters
24586
+ # @option opts [String] :storage The document storage.
24587
+ # @option opts [File] :file A file to be converted.
24588
+ # @return [AsposeResponse]
24589
+ def put_pdf_in_request_to_te_x(out_path, opts = {})
24590
+ @api_client.request_token_if_needed
24591
+ data, _status_code, _headers = put_pdf_in_request_to_te_x_with_http_info(out_path, opts)
24592
+ rescue ApiError => error
24593
+ if error.code == 401
24594
+ @api_client.request_token_if_needed
24595
+ data, _status_code, _headers = put_pdf_in_request_to_te_x_with_http_info(out_path, opts)
24596
+ else
24597
+ raise
24598
+ end
24599
+ return data
24600
+ end
24601
+
24602
+ # Converts PDF document (in request content) to TeX format and uploads resulting file to storage.
24603
+ #
24604
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.tex)
24605
+ # @param [Hash] opts the optional parameters
24606
+ # @option opts [String] :storage The document storage.
24607
+ # @option opts [File] :file A file to be converted.
24608
+ # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
24609
+ def put_pdf_in_request_to_te_x_with_http_info(out_path, opts = {})
24610
+ if @api_client.config.debugging
24611
+ @api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_te_x ..."
24612
+ end
24613
+ # verify the required parameter 'out_path' is set
24614
+ if @api_client.config.client_side_validation && out_path.nil?
24615
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_request_to_te_x"
24616
+ end
24617
+ # resource path
24618
+ local_var_path = "/pdf/convert/tex"
24619
+
24620
+ # query parameters
24621
+ query_params = {}
24622
+ query_params[:'outPath'] = out_path
24623
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
24624
+
24625
+ # header parameters
24626
+ header_params = {}
24627
+ # HTTP header 'Accept' (if needed)
24628
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
24629
+ # HTTP header 'Content-Type'
24630
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
24631
+
24632
+ # form parameters
24633
+ form_params = {}
24634
+ # Fix header in file
24635
+ post_body = nil
24636
+ post_body = opts[:'file'] if !opts[:'file'].nil?
24637
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
24638
+
24639
+ # http body (model)
24640
+ # Fix header in file
24641
+ # post_body = nil
24642
+ auth_names = ['JWT']
24643
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
24644
+ :header_params => header_params,
24645
+ :query_params => query_params,
24646
+ :form_params => form_params,
24647
+ :body => post_body,
24648
+ :auth_names => auth_names,
24649
+ :return_type => 'AsposeResponse')
24650
+ if @api_client.config.debugging
24651
+ @api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_te_x\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
24652
+ end
24653
+ return data, status_code, headers
24654
+ end
24655
+
24380
24656
  # Converts PDF document (in request content) to TIFF format and uploads resulting file to storage.
24381
24657
  #
24382
24658
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.tiff)
@@ -25055,6 +25331,7 @@ module AsposePdfCloud
25055
25331
  # @option opts [String] :folder The document folder.
25056
25332
  # @option opts [String] :storage The document storage.
25057
25333
  # @option opts [BOOLEAN] :flow_layout_paragraph_full_width This attribute specifies full width paragraph text for Flow mode, FixedLayout &#x3D; false.
25334
+ # @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 \&quot;Zip\&quot; or missed (default). In case of the \&quot;Folder\&quot;, all resulting files and directories will be uploaded to the folder of the resulting HTML file. (default to Zip)
25058
25335
  # @return [AsposeResponse]
25059
25336
  def put_pdf_in_storage_to_html(name, out_path, opts = {})
25060
25337
  @api_client.request_token_if_needed
@@ -25105,6 +25382,7 @@ module AsposePdfCloud
25105
25382
  # @option opts [String] :folder The document folder.
25106
25383
  # @option opts [String] :storage The document storage.
25107
25384
  # @option opts [BOOLEAN] :flow_layout_paragraph_full_width This attribute specifies full width paragraph text for Flow mode, FixedLayout &#x3D; false.
25385
+ # @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 \&quot;Zip\&quot; or missed (default). In case of the \&quot;Folder\&quot;, all resulting files and directories will be uploaded to the folder of the resulting HTML file.
25108
25386
  # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
25109
25387
  def put_pdf_in_storage_to_html_with_http_info(name, out_path, opts = {})
25110
25388
  if @api_client.config.debugging
@@ -25142,6 +25420,9 @@ module AsposePdfCloud
25142
25420
  if @api_client.config.client_side_validation && opts[:'raster_images_saving_mode'] && !['AsPngImagesEmbeddedIntoSvg', 'AsExternalPngFilesReferencedViaSvg', 'AsEmbeddedPartsOfPngPageBackground'].include?(opts[:'raster_images_saving_mode'])
25143
25421
  fail ArgumentError, 'invalid value for "raster_images_saving_mode", must be one of AsPngImagesEmbeddedIntoSvg, AsExternalPngFilesReferencedViaSvg, AsEmbeddedPartsOfPngPageBackground'
25144
25422
  end
25423
+ if @api_client.config.client_side_validation && opts[:'output_format'] && !['Zip', 'Folder'].include?(opts[:'output_format'])
25424
+ fail ArgumentError, 'invalid value for "output_format", must be one of Zip, Folder'
25425
+ end
25145
25426
  # resource path
25146
25427
  local_var_path = "/pdf/{name}/convert/html".sub('{' + 'name' + '}', name.to_s)
25147
25428
 
@@ -25179,6 +25460,7 @@ module AsposePdfCloud
25179
25460
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
25180
25461
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
25181
25462
  query_params[:'flowLayoutParagraphFullWidth'] = opts[:'flow_layout_paragraph_full_width'] if !opts[:'flow_layout_paragraph_full_width'].nil?
25463
+ query_params[:'outputFormat'] = opts[:'output_format'] if !opts[:'output_format'].nil?
25182
25464
 
25183
25465
  # header parameters
25184
25466
  header_params = {}
@@ -25209,12 +25491,11 @@ module AsposePdfCloud
25209
25491
  return data, status_code, headers
25210
25492
  end
25211
25493
 
25212
- # Converts PDF document (located on storage) to LaTeX format and uploads resulting file to storage
25494
+ # Converts PDF document (located on storage) to TeX format and uploads resulting file to storage
25213
25495
  #
25214
25496
  # @param name The document name.
25215
25497
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.tex)
25216
25498
  # @param [Hash] opts the optional parameters
25217
- # @option opts [Integer] :pages_count Pages count.
25218
25499
  # @option opts [String] :folder The document folder.
25219
25500
  # @option opts [String] :storage The document storage.
25220
25501
  # @return [AsposeResponse]
@@ -25231,12 +25512,11 @@ module AsposePdfCloud
25231
25512
  return data
25232
25513
  end
25233
25514
 
25234
- # Converts PDF document (located on storage) to LaTeX format and uploads resulting file to storage
25515
+ # Converts PDF document (located on storage) to TeX format and uploads resulting file to storage
25235
25516
  #
25236
25517
  # @param name The document name.
25237
25518
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.tex)
25238
25519
  # @param [Hash] opts the optional parameters
25239
- # @option opts [Integer] :pages_count Pages count.
25240
25520
  # @option opts [String] :folder The document folder.
25241
25521
  # @option opts [String] :storage The document storage.
25242
25522
  # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
@@ -25258,7 +25538,6 @@ module AsposePdfCloud
25258
25538
  # query parameters
25259
25539
  query_params = {}
25260
25540
  query_params[:'outPath'] = out_path
25261
- query_params[:'pagesCount'] = opts[:'pages_count'] if !opts[:'pages_count'].nil?
25262
25541
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
25263
25542
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
25264
25543
 
@@ -25418,8 +25697,8 @@ module AsposePdfCloud
25418
25697
  fail ArgumentError, "Missing the required parameter 'type' when calling PdfApi.put_pdf_in_storage_to_pdf_a"
25419
25698
  end
25420
25699
  # verify enum value
25421
- if @api_client.config.client_side_validation && !['PDFA1A', 'PDFA1B'].include?(type)
25422
- fail ArgumentError, "invalid value for 'type', must be one of PDFA1A, PDFA1B"
25700
+ if @api_client.config.client_side_validation && !['PDFA1A', 'PDFA1B', 'PDFA3A'].include?(type)
25701
+ fail ArgumentError, "invalid value for 'type', must be one of PDFA1A, PDFA1B, PDFA3A"
25423
25702
  end
25424
25703
  # resource path
25425
25704
  local_var_path = "/pdf/{name}/convert/pdfa".sub('{' + 'name' + '}', name.to_s)
@@ -25624,6 +25903,85 @@ module AsposePdfCloud
25624
25903
  return data, status_code, headers
25625
25904
  end
25626
25905
 
25906
+ # Converts PDF document (located on storage) to TeX format and uploads resulting file to storage
25907
+ #
25908
+ # @param name The document name.
25909
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.tex)
25910
+ # @param [Hash] opts the optional parameters
25911
+ # @option opts [String] :folder The document folder.
25912
+ # @option opts [String] :storage The document storage.
25913
+ # @return [AsposeResponse]
25914
+ def put_pdf_in_storage_to_te_x(name, out_path, opts = {})
25915
+ @api_client.request_token_if_needed
25916
+ data, _status_code, _headers = put_pdf_in_storage_to_te_x_with_http_info(name, out_path, opts)
25917
+ rescue ApiError => error
25918
+ if error.code == 401
25919
+ @api_client.request_token_if_needed
25920
+ data, _status_code, _headers = put_pdf_in_storage_to_te_x_with_http_info(name, out_path, opts)
25921
+ else
25922
+ raise
25923
+ end
25924
+ return data
25925
+ end
25926
+
25927
+ # Converts PDF document (located on storage) to TeX format and uploads resulting file to storage
25928
+ #
25929
+ # @param name The document name.
25930
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.tex)
25931
+ # @param [Hash] opts the optional parameters
25932
+ # @option opts [String] :folder The document folder.
25933
+ # @option opts [String] :storage The document storage.
25934
+ # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
25935
+ def put_pdf_in_storage_to_te_x_with_http_info(name, out_path, opts = {})
25936
+ if @api_client.config.debugging
25937
+ @api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_te_x ..."
25938
+ end
25939
+ # verify the required parameter 'name' is set
25940
+ if @api_client.config.client_side_validation && name.nil?
25941
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_pdf_in_storage_to_te_x"
25942
+ end
25943
+ # verify the required parameter 'out_path' is set
25944
+ if @api_client.config.client_side_validation && out_path.nil?
25945
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_storage_to_te_x"
25946
+ end
25947
+ # resource path
25948
+ local_var_path = "/pdf/{name}/convert/tex".sub('{' + 'name' + '}', name.to_s)
25949
+
25950
+ # query parameters
25951
+ query_params = {}
25952
+ query_params[:'outPath'] = out_path
25953
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
25954
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
25955
+
25956
+ # header parameters
25957
+ header_params = {}
25958
+ # HTTP header 'Accept' (if needed)
25959
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
25960
+ # HTTP header 'Content-Type'
25961
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
25962
+
25963
+ # form parameters
25964
+ form_params = {}
25965
+ # Fix header in file
25966
+ post_body = nil
25967
+
25968
+ # http body (model)
25969
+ # Fix header in file
25970
+ # post_body = nil
25971
+ auth_names = ['JWT']
25972
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
25973
+ :header_params => header_params,
25974
+ :query_params => query_params,
25975
+ :form_params => form_params,
25976
+ :body => post_body,
25977
+ :auth_names => auth_names,
25978
+ :return_type => 'AsposeResponse')
25979
+ if @api_client.config.debugging
25980
+ @api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_te_x\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
25981
+ end
25982
+ return data, status_code, headers
25983
+ end
25984
+
25627
25985
  # Converts PDF document (located on storage) to TIFF format and uploads resulting file to storage
25628
25986
  #
25629
25987
  # @param name The document name.
@@ -27935,6 +28293,85 @@ module AsposePdfCloud
27935
28293
  return data, status_code, headers
27936
28294
  end
27937
28295
 
28296
+ # Convert TeX file (located on storage) to PDF format and upload resulting file to storage.
28297
+ #
28298
+ # @param name The document name.
28299
+ # @param src_path Full source filename (ex. /folder1/folder2/template.tex)
28300
+ # @param [Hash] opts the optional parameters
28301
+ # @option opts [String] :dst_folder The destination document folder.
28302
+ # @option opts [String] :storage The document storage.
28303
+ # @return [AsposeResponse]
28304
+ def put_te_x_in_storage_to_pdf(name, src_path, opts = {})
28305
+ @api_client.request_token_if_needed
28306
+ data, _status_code, _headers = put_te_x_in_storage_to_pdf_with_http_info(name, src_path, opts)
28307
+ rescue ApiError => error
28308
+ if error.code == 401
28309
+ @api_client.request_token_if_needed
28310
+ data, _status_code, _headers = put_te_x_in_storage_to_pdf_with_http_info(name, src_path, opts)
28311
+ else
28312
+ raise
28313
+ end
28314
+ return data
28315
+ end
28316
+
28317
+ # Convert TeX file (located on storage) to PDF format and upload resulting file to storage.
28318
+ #
28319
+ # @param name The document name.
28320
+ # @param src_path Full source filename (ex. /folder1/folder2/template.tex)
28321
+ # @param [Hash] opts the optional parameters
28322
+ # @option opts [String] :dst_folder The destination document folder.
28323
+ # @option opts [String] :storage The document storage.
28324
+ # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
28325
+ def put_te_x_in_storage_to_pdf_with_http_info(name, src_path, opts = {})
28326
+ if @api_client.config.debugging
28327
+ @api_client.config.logger.debug "Calling API: PdfApi.put_te_x_in_storage_to_pdf ..."
28328
+ end
28329
+ # verify the required parameter 'name' is set
28330
+ if @api_client.config.client_side_validation && name.nil?
28331
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_te_x_in_storage_to_pdf"
28332
+ end
28333
+ # verify the required parameter 'src_path' is set
28334
+ if @api_client.config.client_side_validation && src_path.nil?
28335
+ fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.put_te_x_in_storage_to_pdf"
28336
+ end
28337
+ # resource path
28338
+ local_var_path = "/pdf/{name}/create/tex".sub('{' + 'name' + '}', name.to_s)
28339
+
28340
+ # query parameters
28341
+ query_params = {}
28342
+ query_params[:'srcPath'] = src_path
28343
+ query_params[:'dstFolder'] = opts[:'dst_folder'] if !opts[:'dst_folder'].nil?
28344
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
28345
+
28346
+ # header parameters
28347
+ header_params = {}
28348
+ # HTTP header 'Accept' (if needed)
28349
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
28350
+ # HTTP header 'Content-Type'
28351
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
28352
+
28353
+ # form parameters
28354
+ form_params = {}
28355
+ # Fix header in file
28356
+ post_body = nil
28357
+
28358
+ # http body (model)
28359
+ # Fix header in file
28360
+ # post_body = nil
28361
+ auth_names = ['JWT']
28362
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
28363
+ :header_params => header_params,
28364
+ :query_params => query_params,
28365
+ :form_params => form_params,
28366
+ :body => post_body,
28367
+ :auth_names => auth_names,
28368
+ :return_type => 'AsposeResponse')
28369
+ if @api_client.config.debugging
28370
+ @api_client.config.logger.debug "API called: PdfApi#put_te_x_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
28371
+ end
28372
+ return data, status_code, headers
28373
+ end
28374
+
27938
28375
  # Replace document text annotation
27939
28376
  #
27940
28377
  # @param name The document name.
@@ -28444,7 +28881,7 @@ module AsposePdfCloud
28444
28881
  return data, status_code, headers
28445
28882
  end
28446
28883
 
28447
- # Converts PDF document which contatins XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
28884
+ # Converts PDF document which contains XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
28448
28885
  #
28449
28886
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.pdf)
28450
28887
  # @param [Hash] opts the optional parameters
@@ -28464,7 +28901,7 @@ module AsposePdfCloud
28464
28901
  return data
28465
28902
  end
28466
28903
 
28467
- # Converts PDF document which contatins XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
28904
+ # Converts PDF document which contains XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
28468
28905
  #
28469
28906
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.pdf)
28470
28907
  # @param [Hash] opts the optional parameters
@@ -28518,7 +28955,7 @@ module AsposePdfCloud
28518
28955
  return data, status_code, headers
28519
28956
  end
28520
28957
 
28521
- # Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
28958
+ # Converts PDF document which contains XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
28522
28959
  #
28523
28960
  # @param name The document name.
28524
28961
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.pdf)
@@ -28539,7 +28976,7 @@ module AsposePdfCloud
28539
28976
  return data
28540
28977
  end
28541
28978
 
28542
- # Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
28979
+ # Converts PDF document which contains XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
28543
28980
  #
28544
28981
  # @param name The document name.
28545
28982
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.pdf)