aspose_pdf_cloud 20.1.0 → 20.7.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 (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -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/PdfAType.md +3 -2
  16. data/docs/PdfApi.md +223 -26
  17. data/docs/RadioButtonField.md +1 -0
  18. data/docs/RadioButtonOptionField.md +1 -0
  19. data/docs/SignatureField.md +1 -0
  20. data/docs/TextBoxField.md +1 -0
  21. data/lib/aspose_pdf_cloud.rb +5 -0
  22. data/lib/aspose_pdf_cloud/api/pdf_api.rb +635 -43
  23. data/lib/aspose_pdf_cloud/api_client.rb +1 -1
  24. data/lib/aspose_pdf_cloud/models/api_info.rb +209 -0
  25. data/lib/aspose_pdf_cloud/models/cell.rb +36 -4
  26. data/lib/aspose_pdf_cloud/models/check_box_field.rb +11 -1
  27. data/lib/aspose_pdf_cloud/models/choice_field.rb +11 -1
  28. data/lib/aspose_pdf_cloud/models/combo_box_field.rb +11 -1
  29. data/lib/aspose_pdf_cloud/models/form_field.rb +11 -1
  30. data/lib/aspose_pdf_cloud/models/image_compression_version.rb +45 -0
  31. data/lib/aspose_pdf_cloud/models/image_encoding.rb +46 -0
  32. data/lib/aspose_pdf_cloud/models/image_fragment.rb +283 -0
  33. data/lib/aspose_pdf_cloud/models/list_box_field.rb +11 -1
  34. data/lib/aspose_pdf_cloud/models/optimize_options.rb +60 -35
  35. data/lib/aspose_pdf_cloud/models/output_format.rb +44 -0
  36. data/lib/aspose_pdf_cloud/models/pdf_a_type.rb +1 -0
  37. data/lib/aspose_pdf_cloud/models/radio_button_field.rb +11 -1
  38. data/lib/aspose_pdf_cloud/models/radio_button_option_field.rb +11 -1
  39. data/lib/aspose_pdf_cloud/models/signature_field.rb +11 -1
  40. data/lib/aspose_pdf_cloud/models/text_box_field.rb +11 -1
  41. data/lib/aspose_pdf_cloud/version.rb +1 -1
  42. data/test/pdf_tests.rb +157 -96
  43. data/test_data/4pagesPdfA.pdf +0 -0
  44. 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. |
@@ -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
@@ -10782,6 +10842,79 @@ module AsposePdfCloud
10782
10842
  return data, status_code, headers
10783
10843
  end
10784
10844
 
10845
+ # Convert PDFA file (located on storage) to PDF format and return resulting file in response.
10846
+ #
10847
+ # @param src_path Full source filename (ex. /folder1/folder2/template.pdf)
10848
+ # @param [Hash] opts the optional parameters
10849
+ # @option opts [BOOLEAN] :dont_optimize If set, document resources will not be optimized.
10850
+ # @option opts [String] :storage The document storage.
10851
+ # @return [File]
10852
+ def get_pdf_a_in_storage_to_pdf(src_path, opts = {})
10853
+ @api_client.request_token_if_needed
10854
+ data, _status_code, _headers = get_pdf_a_in_storage_to_pdf_with_http_info(src_path, opts)
10855
+ rescue ApiError => error
10856
+ if error.code == 401
10857
+ @api_client.request_token_if_needed
10858
+ data, _status_code, _headers = get_pdf_a_in_storage_to_pdf_with_http_info(src_path, opts)
10859
+ else
10860
+ raise
10861
+ end
10862
+ return data
10863
+ end
10864
+
10865
+ # Convert PDFA file (located on storage) to PDF format and return resulting file in response.
10866
+ #
10867
+ # @param src_path Full source filename (ex. /folder1/folder2/template.pdf)
10868
+ # @param [Hash] opts the optional parameters
10869
+ # @option opts [BOOLEAN] :dont_optimize If set, document resources will not be optimized.
10870
+ # @option opts [String] :storage The document storage.
10871
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
10872
+ def get_pdf_a_in_storage_to_pdf_with_http_info(src_path, opts = {})
10873
+ if @api_client.config.debugging
10874
+ @api_client.config.logger.debug "Calling API: PdfApi.get_pdf_a_in_storage_to_pdf ..."
10875
+ end
10876
+ # verify the required parameter 'src_path' is set
10877
+ if @api_client.config.client_side_validation && src_path.nil?
10878
+ fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.get_pdf_a_in_storage_to_pdf"
10879
+ end
10880
+ # resource path
10881
+ local_var_path = "/pdf/create/pdfa"
10882
+
10883
+ # query parameters
10884
+ query_params = {}
10885
+ query_params[:'srcPath'] = src_path
10886
+ query_params[:'dontOptimize'] = opts[:'dont_optimize'] if !opts[:'dont_optimize'].nil?
10887
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
10888
+
10889
+ # header parameters
10890
+ header_params = {}
10891
+ # HTTP header 'Accept' (if needed)
10892
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
10893
+ # HTTP header 'Content-Type'
10894
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
10895
+
10896
+ # form parameters
10897
+ form_params = {}
10898
+ # Fix header in file
10899
+ post_body = nil
10900
+
10901
+ # http body (model)
10902
+ # Fix header in file
10903
+ # post_body = nil
10904
+ auth_names = ['JWT']
10905
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
10906
+ :header_params => header_params,
10907
+ :query_params => query_params,
10908
+ :form_params => form_params,
10909
+ :body => post_body,
10910
+ :auth_names => auth_names,
10911
+ :return_type => 'File')
10912
+ if @api_client.config.debugging
10913
+ @api_client.config.logger.debug "API called: PdfApi#get_pdf_a_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10914
+ end
10915
+ return data, status_code, headers
10916
+ end
10917
+
10785
10918
  # Converts PDF document (located on storage) to DOC format and returns resulting file in response content
10786
10919
  #
10787
10920
  # @param name The document name.
@@ -11145,11 +11278,10 @@ module AsposePdfCloud
11145
11278
  return data, status_code, headers
11146
11279
  end
11147
11280
 
11148
- # 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
11149
11282
  #
11150
11283
  # @param name The document name.
11151
11284
  # @param [Hash] opts the optional parameters
11152
- # @option opts [Integer] :pages_count Pages count.
11153
11285
  # @option opts [String] :folder The document folder.
11154
11286
  # @option opts [String] :storage The document storage.
11155
11287
  # @return [File]
@@ -11166,11 +11298,10 @@ module AsposePdfCloud
11166
11298
  return data
11167
11299
  end
11168
11300
 
11169
- # 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
11170
11302
  #
11171
11303
  # @param name The document name.
11172
11304
  # @param [Hash] opts the optional parameters
11173
- # @option opts [Integer] :pages_count Pages count.
11174
11305
  # @option opts [String] :folder The document folder.
11175
11306
  # @option opts [String] :storage The document storage.
11176
11307
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
@@ -11187,7 +11318,6 @@ module AsposePdfCloud
11187
11318
 
11188
11319
  # query parameters
11189
11320
  query_params = {}
11190
- query_params[:'pagesCount'] = opts[:'pages_count'] if !opts[:'pages_count'].nil?
11191
11321
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
11192
11322
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
11193
11323
 
@@ -11334,8 +11464,8 @@ module AsposePdfCloud
11334
11464
  fail ArgumentError, "Missing the required parameter 'type' when calling PdfApi.get_pdf_in_storage_to_pdf_a"
11335
11465
  end
11336
11466
  # verify enum value
11337
- if @api_client.config.client_side_validation && !['PDFA1A', 'PDFA1B'].include?(type)
11338
- 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"
11339
11469
  end
11340
11470
  # resource path
11341
11471
  local_var_path = "/pdf/{name}/convert/pdfa".sub('{' + 'name' + '}', name.to_s)
@@ -11528,6 +11658,78 @@ module AsposePdfCloud
11528
11658
  return data, status_code, headers
11529
11659
  end
11530
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
+
11531
11733
  # Converts PDF document (located on storage) to TIFF format and returns resulting file in response content
11532
11734
  #
11533
11735
  # @param name The document name.
@@ -13378,6 +13580,76 @@ module AsposePdfCloud
13378
13580
  return data, status_code, headers
13379
13581
  end
13380
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
+
13381
13653
  # Read document text.
13382
13654
  #
13383
13655
  # @param name The document name.
@@ -13963,7 +14235,7 @@ module AsposePdfCloud
13963
14235
  return data, status_code, headers
13964
14236
  end
13965
14237
 
13966
- # 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
13967
14239
  #
13968
14240
  # @param name The document name.
13969
14241
  # @param [Hash] opts the optional parameters
@@ -13983,7 +14255,7 @@ module AsposePdfCloud
13983
14255
  return data
13984
14256
  end
13985
14257
 
13986
- # 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
13987
14259
  #
13988
14260
  # @param name The document name.
13989
14261
  # @param [Hash] opts the optional parameters
@@ -14567,7 +14839,7 @@ module AsposePdfCloud
14567
14839
  # Add document bookmarks.
14568
14840
  #
14569
14841
  # @param name The document name.
14570
- # @param bookmark_path The bookmark path.
14842
+ # @param bookmark_path The parent bookmark path. Specify an empty string when adding a bookmark to the root.
14571
14843
  # @param bookmarks The array of bookmark.
14572
14844
  # @param [Hash] opts the optional parameters
14573
14845
  # @option opts [String] :folder The document folder.
@@ -14589,7 +14861,7 @@ module AsposePdfCloud
14589
14861
  # Add document bookmarks.
14590
14862
  #
14591
14863
  # @param name The document name.
14592
- # @param bookmark_path The bookmark path.
14864
+ # @param bookmark_path The parent bookmark path. Specify an empty string when adding a bookmark to the root.
14593
14865
  # @param bookmarks The array of bookmark.
14594
14866
  # @param [Hash] opts the optional parameters
14595
14867
  # @option opts [String] :folder The document folder.
@@ -17152,7 +17424,7 @@ module AsposePdfCloud
17152
17424
  #
17153
17425
  # @param name The document name.
17154
17426
  # @param page_number The page number.
17155
- # @param links Array of link anotation.
17427
+ # @param links Array of link annotation.
17156
17428
  # @param [Hash] opts the optional parameters
17157
17429
  # @option opts [String] :storage The document storage.
17158
17430
  # @option opts [String] :folder The document folder.
@@ -17174,7 +17446,7 @@ module AsposePdfCloud
17174
17446
  #
17175
17447
  # @param name The document name.
17176
17448
  # @param page_number The page number.
17177
- # @param links Array of link anotation.
17449
+ # @param links Array of link annotation.
17178
17450
  # @param [Hash] opts the optional parameters
17179
17451
  # @option opts [String] :storage The document storage.
17180
17452
  # @option opts [String] :folder The document folder.
@@ -19938,7 +20210,7 @@ module AsposePdfCloud
19938
20210
  # @param password The password (encrypted Base64).
19939
20211
  # @param [Hash] opts the optional parameters
19940
20212
  # @option opts [String] :storage The document storage.
19941
- # @option opts [File] :file A file to be derypted.
20213
+ # @option opts [File] :file A file to be decrypted.
19942
20214
  # @return [AsposeResponse]
19943
20215
  def put_decrypt_document(out_path, password, opts = {})
19944
20216
  @api_client.request_token_if_needed
@@ -19959,7 +20231,7 @@ module AsposePdfCloud
19959
20231
  # @param password The password (encrypted Base64).
19960
20232
  # @param [Hash] opts the optional parameters
19961
20233
  # @option opts [String] :storage The document storage.
19962
- # @option opts [File] :file A file to be derypted.
20234
+ # @option opts [File] :file A file to be decrypted.
19963
20235
  # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
19964
20236
  def put_decrypt_document_with_http_info(out_path, password, opts = {})
19965
20237
  if @api_client.config.debugging
@@ -22109,7 +22381,7 @@ module AsposePdfCloud
22109
22381
  return data, status_code, headers
22110
22382
  end
22111
22383
 
22112
- # 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.
22113
22385
  #
22114
22386
  # @param name The document name.
22115
22387
  # @param src_path Full source filename (ex. /folder1/folder2/template.tex)
@@ -22130,7 +22402,7 @@ module AsposePdfCloud
22130
22402
  return data
22131
22403
  end
22132
22404
 
22133
- # 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.
22134
22406
  #
22135
22407
  # @param name The document name.
22136
22408
  # @param src_path Full source filename (ex. /folder1/folder2/template.tex)
@@ -22275,7 +22547,7 @@ module AsposePdfCloud
22275
22547
  #
22276
22548
  # @param name The document name.
22277
22549
  # @param link_id The link ID.
22278
- # @param link Link anotation.
22550
+ # @param link Link annotation.
22279
22551
  # @param [Hash] opts the optional parameters
22280
22552
  # @option opts [String] :storage The document storage.
22281
22553
  # @option opts [String] :folder The document folder.
@@ -22297,7 +22569,7 @@ module AsposePdfCloud
22297
22569
  #
22298
22570
  # @param name The document name.
22299
22571
  # @param link_id The link ID.
22300
- # @param link Link anotation.
22572
+ # @param link Link annotation.
22301
22573
  # @param [Hash] opts the optional parameters
22302
22574
  # @option opts [String] :storage The document storage.
22303
22575
  # @option opts [String] :folder The document folder.
@@ -22518,7 +22790,7 @@ module AsposePdfCloud
22518
22790
 
22519
22791
  # Merge a list of documents.
22520
22792
  #
22521
- # @param name Resulting documen name.
22793
+ # @param name Resulting document name.
22522
22794
  # @param merge_documents MergeDocuments with a list of documents.
22523
22795
  # @param [Hash] opts the optional parameters
22524
22796
  # @option opts [String] :storage Resulting document storage.
@@ -22539,7 +22811,7 @@ module AsposePdfCloud
22539
22811
 
22540
22812
  # Merge a list of documents.
22541
22813
  #
22542
- # @param name Resulting documen name.
22814
+ # @param name Resulting document name.
22543
22815
  # @param merge_documents MergeDocuments with a list of documents.
22544
22816
  # @param [Hash] opts the optional parameters
22545
22817
  # @option opts [String] :storage Resulting document storage.
@@ -23463,6 +23735,88 @@ module AsposePdfCloud
23463
23735
  return data, status_code, headers
23464
23736
  end
23465
23737
 
23738
+ # Convert PDFA file (located on storage) to PDF format and upload resulting file to storage.
23739
+ #
23740
+ # @param name The document name.
23741
+ # @param src_path Full source filename (ex. /folder1/folder2/template.pdf)
23742
+ # @param [Hash] opts the optional parameters
23743
+ # @option opts [String] :dst_folder The destination document folder.
23744
+ # @option opts [BOOLEAN] :dont_optimize If set, document resources will not be optimized.
23745
+ # @option opts [String] :storage The document storage.
23746
+ # @return [AsposeResponse]
23747
+ def put_pdf_a_in_storage_to_pdf(name, src_path, opts = {})
23748
+ @api_client.request_token_if_needed
23749
+ data, _status_code, _headers = put_pdf_a_in_storage_to_pdf_with_http_info(name, src_path, opts)
23750
+ rescue ApiError => error
23751
+ if error.code == 401
23752
+ @api_client.request_token_if_needed
23753
+ data, _status_code, _headers = put_pdf_a_in_storage_to_pdf_with_http_info(name, src_path, opts)
23754
+ else
23755
+ raise
23756
+ end
23757
+ return data
23758
+ end
23759
+
23760
+ # Convert PDFA file (located on storage) to PDF format and upload resulting file to storage.
23761
+ #
23762
+ # @param name The document name.
23763
+ # @param src_path Full source filename (ex. /folder1/folder2/template.pdf)
23764
+ # @param [Hash] opts the optional parameters
23765
+ # @option opts [String] :dst_folder The destination document folder.
23766
+ # @option opts [BOOLEAN] :dont_optimize If set, document resources will not be optimized.
23767
+ # @option opts [String] :storage The document storage.
23768
+ # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
23769
+ def put_pdf_a_in_storage_to_pdf_with_http_info(name, src_path, opts = {})
23770
+ if @api_client.config.debugging
23771
+ @api_client.config.logger.debug "Calling API: PdfApi.put_pdf_a_in_storage_to_pdf ..."
23772
+ end
23773
+ # verify the required parameter 'name' is set
23774
+ if @api_client.config.client_side_validation && name.nil?
23775
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_pdf_a_in_storage_to_pdf"
23776
+ end
23777
+ # verify the required parameter 'src_path' is set
23778
+ if @api_client.config.client_side_validation && src_path.nil?
23779
+ fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.put_pdf_a_in_storage_to_pdf"
23780
+ end
23781
+ # resource path
23782
+ local_var_path = "/pdf/{name}/create/pdfa".sub('{' + 'name' + '}', name.to_s)
23783
+
23784
+ # query parameters
23785
+ query_params = {}
23786
+ query_params[:'srcPath'] = src_path
23787
+ query_params[:'dstFolder'] = opts[:'dst_folder'] if !opts[:'dst_folder'].nil?
23788
+ query_params[:'dontOptimize'] = opts[:'dont_optimize'] if !opts[:'dont_optimize'].nil?
23789
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
23790
+
23791
+ # header parameters
23792
+ header_params = {}
23793
+ # HTTP header 'Accept' (if needed)
23794
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
23795
+ # HTTP header 'Content-Type'
23796
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
23797
+
23798
+ # form parameters
23799
+ form_params = {}
23800
+ # Fix header in file
23801
+ post_body = nil
23802
+
23803
+ # http body (model)
23804
+ # Fix header in file
23805
+ # post_body = nil
23806
+ auth_names = ['JWT']
23807
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
23808
+ :header_params => header_params,
23809
+ :query_params => query_params,
23810
+ :form_params => form_params,
23811
+ :body => post_body,
23812
+ :auth_names => auth_names,
23813
+ :return_type => 'AsposeResponse')
23814
+ if @api_client.config.debugging
23815
+ @api_client.config.logger.debug "API called: PdfApi#put_pdf_a_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
23816
+ end
23817
+ return data, status_code, headers
23818
+ end
23819
+
23466
23820
  # Converts PDF document (in request content) to DOC format and uploads resulting file to storage.
23467
23821
  #
23468
23822
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.doc)
@@ -23681,6 +24035,7 @@ module AsposePdfCloud
23681
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.
23682
24036
  # @option opts [String] :storage The document storage.
23683
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)
23684
24039
  # @option opts [File] :file A file to be converted.
23685
24040
  # @return [AsposeResponse]
23686
24041
  def put_pdf_in_request_to_html(out_path, opts = {})
@@ -23730,6 +24085,7 @@ module AsposePdfCloud
23730
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.
23731
24086
  # @option opts [String] :storage The document storage.
23732
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.
23733
24089
  # @option opts [File] :file A file to be converted.
23734
24090
  # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
23735
24091
  def put_pdf_in_request_to_html_with_http_info(out_path, opts = {})
@@ -23764,6 +24120,9 @@ module AsposePdfCloud
23764
24120
  if @api_client.config.client_side_validation && opts[:'raster_images_saving_mode'] && !['AsPngImagesEmbeddedIntoSvg', 'AsExternalPngFilesReferencedViaSvg', 'AsEmbeddedPartsOfPngPageBackground'].include?(opts[:'raster_images_saving_mode'])
23765
24121
  fail ArgumentError, 'invalid value for "raster_images_saving_mode", must be one of AsPngImagesEmbeddedIntoSvg, AsExternalPngFilesReferencedViaSvg, AsEmbeddedPartsOfPngPageBackground'
23766
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
23767
24126
  # resource path
23768
24127
  local_var_path = "/pdf/convert/html"
23769
24128
 
@@ -23800,6 +24159,7 @@ module AsposePdfCloud
23800
24159
  query_params[:'trySaveTextUnderliningAndStrikeoutingInCss'] = opts[:'try_save_text_underlining_and_strikeouting_in_css'] if !opts[:'try_save_text_underlining_and_strikeouting_in_css'].nil?
23801
24160
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
23802
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?
23803
24163
 
23804
24164
  # header parameters
23805
24165
  header_params = {}
@@ -23832,11 +24192,10 @@ module AsposePdfCloud
23832
24192
  return data, status_code, headers
23833
24193
  end
23834
24194
 
23835
- # 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.
23836
24196
  #
23837
24197
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.tex)
23838
24198
  # @param [Hash] opts the optional parameters
23839
- # @option opts [Integer] :pages_count Pages count.
23840
24199
  # @option opts [String] :storage The document storage.
23841
24200
  # @option opts [File] :file A file to be converted.
23842
24201
  # @return [AsposeResponse]
@@ -23853,11 +24212,10 @@ module AsposePdfCloud
23853
24212
  return data
23854
24213
  end
23855
24214
 
23856
- # 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.
23857
24216
  #
23858
24217
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.tex)
23859
24218
  # @param [Hash] opts the optional parameters
23860
- # @option opts [Integer] :pages_count Pages count.
23861
24219
  # @option opts [String] :storage The document storage.
23862
24220
  # @option opts [File] :file A file to be converted.
23863
24221
  # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
@@ -23875,7 +24233,6 @@ module AsposePdfCloud
23875
24233
  # query parameters
23876
24234
  query_params = {}
23877
24235
  query_params[:'outPath'] = out_path
23878
- query_params[:'pagesCount'] = opts[:'pages_count'] if !opts[:'pages_count'].nil?
23879
24236
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
23880
24237
 
23881
24238
  # header parameters
@@ -24025,8 +24382,8 @@ module AsposePdfCloud
24025
24382
  fail ArgumentError, "Missing the required parameter 'type' when calling PdfApi.put_pdf_in_request_to_pdf_a"
24026
24383
  end
24027
24384
  # verify enum value
24028
- if @api_client.config.client_side_validation && !['PDFA1A', 'PDFA1B'].include?(type)
24029
- 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"
24030
24387
  end
24031
24388
  # resource path
24032
24389
  local_var_path = "/pdf/convert/pdfa"
@@ -24222,6 +24579,80 @@ module AsposePdfCloud
24222
24579
  return data, status_code, headers
24223
24580
  end
24224
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
+
24225
24656
  # Converts PDF document (in request content) to TIFF format and uploads resulting file to storage.
24226
24657
  #
24227
24658
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.tiff)
@@ -24900,6 +25331,7 @@ module AsposePdfCloud
24900
25331
  # @option opts [String] :folder The document folder.
24901
25332
  # @option opts [String] :storage The document storage.
24902
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)
24903
25335
  # @return [AsposeResponse]
24904
25336
  def put_pdf_in_storage_to_html(name, out_path, opts = {})
24905
25337
  @api_client.request_token_if_needed
@@ -24950,6 +25382,7 @@ module AsposePdfCloud
24950
25382
  # @option opts [String] :folder The document folder.
24951
25383
  # @option opts [String] :storage The document storage.
24952
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.
24953
25386
  # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
24954
25387
  def put_pdf_in_storage_to_html_with_http_info(name, out_path, opts = {})
24955
25388
  if @api_client.config.debugging
@@ -24987,6 +25420,9 @@ module AsposePdfCloud
24987
25420
  if @api_client.config.client_side_validation && opts[:'raster_images_saving_mode'] && !['AsPngImagesEmbeddedIntoSvg', 'AsExternalPngFilesReferencedViaSvg', 'AsEmbeddedPartsOfPngPageBackground'].include?(opts[:'raster_images_saving_mode'])
24988
25421
  fail ArgumentError, 'invalid value for "raster_images_saving_mode", must be one of AsPngImagesEmbeddedIntoSvg, AsExternalPngFilesReferencedViaSvg, AsEmbeddedPartsOfPngPageBackground'
24989
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
24990
25426
  # resource path
24991
25427
  local_var_path = "/pdf/{name}/convert/html".sub('{' + 'name' + '}', name.to_s)
24992
25428
 
@@ -25024,6 +25460,7 @@ module AsposePdfCloud
25024
25460
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
25025
25461
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
25026
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?
25027
25464
 
25028
25465
  # header parameters
25029
25466
  header_params = {}
@@ -25054,12 +25491,11 @@ module AsposePdfCloud
25054
25491
  return data, status_code, headers
25055
25492
  end
25056
25493
 
25057
- # 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
25058
25495
  #
25059
25496
  # @param name The document name.
25060
25497
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.tex)
25061
25498
  # @param [Hash] opts the optional parameters
25062
- # @option opts [Integer] :pages_count Pages count.
25063
25499
  # @option opts [String] :folder The document folder.
25064
25500
  # @option opts [String] :storage The document storage.
25065
25501
  # @return [AsposeResponse]
@@ -25076,12 +25512,11 @@ module AsposePdfCloud
25076
25512
  return data
25077
25513
  end
25078
25514
 
25079
- # 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
25080
25516
  #
25081
25517
  # @param name The document name.
25082
25518
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.tex)
25083
25519
  # @param [Hash] opts the optional parameters
25084
- # @option opts [Integer] :pages_count Pages count.
25085
25520
  # @option opts [String] :folder The document folder.
25086
25521
  # @option opts [String] :storage The document storage.
25087
25522
  # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
@@ -25103,7 +25538,6 @@ module AsposePdfCloud
25103
25538
  # query parameters
25104
25539
  query_params = {}
25105
25540
  query_params[:'outPath'] = out_path
25106
- query_params[:'pagesCount'] = opts[:'pages_count'] if !opts[:'pages_count'].nil?
25107
25541
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
25108
25542
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
25109
25543
 
@@ -25263,8 +25697,8 @@ module AsposePdfCloud
25263
25697
  fail ArgumentError, "Missing the required parameter 'type' when calling PdfApi.put_pdf_in_storage_to_pdf_a"
25264
25698
  end
25265
25699
  # verify enum value
25266
- if @api_client.config.client_side_validation && !['PDFA1A', 'PDFA1B'].include?(type)
25267
- 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"
25268
25702
  end
25269
25703
  # resource path
25270
25704
  local_var_path = "/pdf/{name}/convert/pdfa".sub('{' + 'name' + '}', name.to_s)
@@ -25469,6 +25903,85 @@ module AsposePdfCloud
25469
25903
  return data, status_code, headers
25470
25904
  end
25471
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
+
25472
25985
  # Converts PDF document (located on storage) to TIFF format and uploads resulting file to storage
25473
25986
  #
25474
25987
  # @param name The document name.
@@ -27780,6 +28293,85 @@ module AsposePdfCloud
27780
28293
  return data, status_code, headers
27781
28294
  end
27782
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
+
27783
28375
  # Replace document text annotation
27784
28376
  #
27785
28377
  # @param name The document name.
@@ -28289,7 +28881,7 @@ module AsposePdfCloud
28289
28881
  return data, status_code, headers
28290
28882
  end
28291
28883
 
28292
- # 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.
28293
28885
  #
28294
28886
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.pdf)
28295
28887
  # @param [Hash] opts the optional parameters
@@ -28309,7 +28901,7 @@ module AsposePdfCloud
28309
28901
  return data
28310
28902
  end
28311
28903
 
28312
- # 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.
28313
28905
  #
28314
28906
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.pdf)
28315
28907
  # @param [Hash] opts the optional parameters
@@ -28363,7 +28955,7 @@ module AsposePdfCloud
28363
28955
  return data, status_code, headers
28364
28956
  end
28365
28957
 
28366
- # 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
28367
28959
  #
28368
28960
  # @param name The document name.
28369
28961
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.pdf)
@@ -28384,7 +28976,7 @@ module AsposePdfCloud
28384
28976
  return data
28385
28977
  end
28386
28978
 
28387
- # 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
28388
28980
  #
28389
28981
  # @param name The document name.
28390
28982
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.pdf)