aspose_pdf_cloud 23.5.0 → 23.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17fb17c163d9affd5f0c35a3360fdd9831edb900a39272d3f7b58a811b0e2b6e
4
- data.tar.gz: 748b807bd6b93da0550ea3e635cc8310e8ee00230b60b496dd846975bb073a08
3
+ metadata.gz: f451e346f21121426558b0fa9c16453972b636ed838b6bfc9ad56fed8608ab54
4
+ data.tar.gz: '086199fea6259a01307cc9f7c6ef4830c7b6272a6a90135defc3e275bc780226'
5
5
  SHA512:
6
- metadata.gz: 8de558040736d705d672cf1fe91a7dad2aea3c3fe65d4ed502f26bbce8c4da2138cca2098f9731147dd210855d7a7bc6a94677e05ff0b914ae246d82a69933fe
7
- data.tar.gz: b11f3f6fca75184c452d9c27477229905137071320fb5042c9c043c599b1520e46e83db8d4db1e656fe40602a46ba126715abbda56f484d8edbb316ee13acc70
6
+ metadata.gz: 3f8bdbfcaaf1409e2906c685946aeb14b951f4edf117637c1d31208695a3300566a9cd12070f933e59bf0bf44d4d602840e8070af792203d3a1119e45b61e2a4
7
+ data.tar.gz: 8bbacb9c11e11d9ac3c957c360786a661fe0c990f6067a4d8541ed14f111b73529681b1681ac9e07d2f5831822b31759c276988e5b56eefe3c49c8c6ccb4a9bd
data/README.md CHANGED
@@ -29,9 +29,13 @@ XLS, XLSX, PPTX, DOC, DOCX, MobiXML, JPEG, EMF, PNG, BMP, GIF, TIFF, Text
29
29
  ## Read PDF Formats
30
30
  MHT, PCL, PS, XSLFO, MD
31
31
 
32
- ## Enhancements in Version 23.5
32
+ ## Enhancements in Version 23.6
33
+ - Support to convert password protected PDF documents to PPTX.
33
34
  - A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
34
35
 
36
+ ## Bugs fixed in Version 23.6
37
+ - Text Replacement API constantly hitting 504 Gateway Timeout.
38
+
35
39
  ## Installation
36
40
 
37
41
  ### Build a gem
@@ -45,15 +49,15 @@ gem build aspose_pdf_cloud.gemspec
45
49
  Then either install the gem locally:
46
50
 
47
51
  ```shell
48
- gem install ./aspose_pdf_cloud-23.5.0.gem
52
+ gem install ./aspose_pdf_cloud-23.6.0.gem
49
53
  ```
50
- (for development, run `gem install --dev ./aspose_pdf_cloud-23.5.0.gem` to install the development dependencies)
54
+ (for development, run `gem install --dev ./aspose_pdf_cloud-23.6.0.gem` to install the development dependencies)
51
55
 
52
56
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
53
57
 
54
58
  Finally add this to the Gemfile:
55
59
 
56
- gem 'aspose_pdf_cloud', '~> 23.5.0'
60
+ gem 'aspose_pdf_cloud', '~> 23.6.0'
57
61
 
58
62
  ### Install from Git
59
63
 
data/docs/PdfApi.md CHANGED
@@ -4040,6 +4040,7 @@ Name | Type | Description | Notes
4040
4040
  **slides_as_images** | **BOOLEAN**| Slides as images. | [optional]
4041
4041
  **folder** | **String**| The document folder. | [optional]
4042
4042
  **storage** | **String**| The document storage. | [optional]
4043
+ **password** | **String**| Base64 encoded password. | [optional]
4043
4044
 
4044
4045
  ### Return type
4045
4046
 
@@ -8163,6 +8164,7 @@ Name | Type | Description | Notes
8163
8164
  **separate_images** | **BOOLEAN**| Separate images. | [optional]
8164
8165
  **slides_as_images** | **BOOLEAN**| Slides as images. | [optional]
8165
8166
  **storage** | **String**| The document storage. | [optional]
8167
+ **password** | **String**| Base64 encoded password. | [optional]
8166
8168
  **file** | **File**| A file to be converted. | [optional]
8167
8169
 
8168
8170
  ### Return type
@@ -8548,6 +8550,7 @@ Name | Type | Description | Notes
8548
8550
  **slides_as_images** | **BOOLEAN**| Slides as images. | [optional]
8549
8551
  **folder** | **String**| The document folder. | [optional]
8550
8552
  **storage** | **String**| The document storage. | [optional]
8553
+ **password** | **String**| Base64 encoded password. | [optional]
8551
8554
 
8552
8555
  ### Return type
8553
8556
 
@@ -11332,6 +11332,7 @@ module AsposePdfCloud
11332
11332
  # @option opts [BOOLEAN] :slides_as_images Slides as images.
11333
11333
  # @option opts [String] :folder The document folder.
11334
11334
  # @option opts [String] :storage The document storage.
11335
+ # @option opts [String] :password Base64 encoded password.
11335
11336
  # @return [File]
11336
11337
  def get_pdf_in_storage_to_pptx(name, opts = {})
11337
11338
  @api_client.request_token_if_needed
@@ -11354,6 +11355,7 @@ module AsposePdfCloud
11354
11355
  # @option opts [BOOLEAN] :slides_as_images Slides as images.
11355
11356
  # @option opts [String] :folder The document folder.
11356
11357
  # @option opts [String] :storage The document storage.
11358
+ # @option opts [String] :password Base64 encoded password.
11357
11359
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
11358
11360
  def get_pdf_in_storage_to_pptx_with_http_info(name, opts = {})
11359
11361
  if @api_client.config.debugging
@@ -11372,6 +11374,7 @@ module AsposePdfCloud
11372
11374
  query_params[:'slidesAsImages'] = opts[:'slides_as_images'] if !opts[:'slides_as_images'].nil?
11373
11375
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
11374
11376
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
11377
+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
11375
11378
 
11376
11379
  # header parameters
11377
11380
  header_params = {}
@@ -24372,6 +24375,7 @@ module AsposePdfCloud
24372
24375
  # @option opts [BOOLEAN] :separate_images Separate images.
24373
24376
  # @option opts [BOOLEAN] :slides_as_images Slides as images.
24374
24377
  # @option opts [String] :storage The document storage.
24378
+ # @option opts [String] :password Base64 encoded password.
24375
24379
  # @option opts [File] :file A file to be converted.
24376
24380
  # @return [AsposeResponse]
24377
24381
  def put_pdf_in_request_to_pptx(out_path, opts = {})
@@ -24394,6 +24398,7 @@ module AsposePdfCloud
24394
24398
  # @option opts [BOOLEAN] :separate_images Separate images.
24395
24399
  # @option opts [BOOLEAN] :slides_as_images Slides as images.
24396
24400
  # @option opts [String] :storage The document storage.
24401
+ # @option opts [String] :password Base64 encoded password.
24397
24402
  # @option opts [File] :file A file to be converted.
24398
24403
  # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
24399
24404
  def put_pdf_in_request_to_pptx_with_http_info(out_path, opts = {})
@@ -24413,6 +24418,7 @@ module AsposePdfCloud
24413
24418
  query_params[:'separateImages'] = opts[:'separate_images'] if !opts[:'separate_images'].nil?
24414
24419
  query_params[:'slidesAsImages'] = opts[:'slides_as_images'] if !opts[:'slides_as_images'].nil?
24415
24420
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
24421
+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
24416
24422
 
24417
24423
  # header parameters
24418
24424
  header_params = {}
@@ -25612,6 +25618,7 @@ module AsposePdfCloud
25612
25618
  # @option opts [BOOLEAN] :slides_as_images Slides as images.
25613
25619
  # @option opts [String] :folder The document folder.
25614
25620
  # @option opts [String] :storage The document storage.
25621
+ # @option opts [String] :password Base64 encoded password.
25615
25622
  # @return [AsposeResponse]
25616
25623
  def put_pdf_in_storage_to_pptx(name, out_path, opts = {})
25617
25624
  @api_client.request_token_if_needed
@@ -25635,6 +25642,7 @@ module AsposePdfCloud
25635
25642
  # @option opts [BOOLEAN] :slides_as_images Slides as images.
25636
25643
  # @option opts [String] :folder The document folder.
25637
25644
  # @option opts [String] :storage The document storage.
25645
+ # @option opts [String] :password Base64 encoded password.
25638
25646
  # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
25639
25647
  def put_pdf_in_storage_to_pptx_with_http_info(name, out_path, opts = {})
25640
25648
  if @api_client.config.debugging
@@ -25658,6 +25666,7 @@ module AsposePdfCloud
25658
25666
  query_params[:'slidesAsImages'] = opts[:'slides_as_images'] if !opts[:'slides_as_images'].nil?
25659
25667
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
25660
25668
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
25669
+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
25661
25670
 
25662
25671
  # header parameters
25663
25672
  header_params = {}
@@ -20,5 +20,5 @@ SOFTWARE.
20
20
  =end
21
21
 
22
22
  module AsposePdfCloud
23
- VERSION = "23.5.0"
23
+ VERSION = "23.6.0"
24
24
  end
data/test/pdf_tests.rb CHANGED
@@ -2824,7 +2824,7 @@ class PdfTests < Minitest::Test
2824
2824
  }
2825
2825
 
2826
2826
  response = @pdf_api.get_pdf_in_storage_to_doc(file_name, opts)
2827
- assert(response, 'Filed to convert PDF to DOC.')
2827
+ assert(response, 'Failed to convert PDF to DOC.')
2828
2828
  end
2829
2829
 
2830
2830
  def test_put_pdf_in_storage_to_doc
@@ -2836,7 +2836,7 @@ class PdfTests < Minitest::Test
2836
2836
  :folder => @temp_folder
2837
2837
  }
2838
2838
  response = @pdf_api.put_pdf_in_storage_to_doc(file_name, @temp_folder + '/' + res_file, opts)
2839
- assert(response, 'Filed to convert PDF to DOC.')
2839
+ assert(response, 'Failed to convert PDF to DOC.')
2840
2840
  end
2841
2841
 
2842
2842
  def test_put_pdf_in_request_to_doc
@@ -2849,7 +2849,7 @@ class PdfTests < Minitest::Test
2849
2849
  # :file => @test_data_folder + file_name
2850
2850
  }
2851
2851
  response = @pdf_api.put_pdf_in_request_to_tiff(@temp_folder + '/' + res_file, opts)
2852
- assert(response, 'Filed to convert PDF to DOC.')
2852
+ assert(response, 'Failed to convert PDF to DOC.')
2853
2853
  end
2854
2854
 
2855
2855
  def test_get_pdf_in_storage_to_pdf_a
@@ -2861,7 +2861,7 @@ class PdfTests < Minitest::Test
2861
2861
  }
2862
2862
 
2863
2863
  response = @pdf_api.get_pdf_in_storage_to_pdf_a(file_name, PdfAType::PDFA1_A, opts)
2864
- assert(response, 'Filed to convert PDF to PDFA.')
2864
+ assert(response, 'Failed to convert PDF to PDFA.')
2865
2865
  end
2866
2866
 
2867
2867
  def test_put_pdf_in_storage_to_pdf_a
@@ -2873,7 +2873,7 @@ class PdfTests < Minitest::Test
2873
2873
  :folder => @temp_folder
2874
2874
  }
2875
2875
  response = @pdf_api.put_pdf_in_storage_to_pdf_a(file_name, @temp_folder + '/' + res_file, PdfAType::PDFA1_A, opts)
2876
- assert(response, 'Filed to convert PDF to PDFA.')
2876
+ assert(response, 'Failed to convert PDF to PDFA.')
2877
2877
  end
2878
2878
 
2879
2879
  def test_put_pdf_in_request_to_pdf_a
@@ -2885,7 +2885,7 @@ class PdfTests < Minitest::Test
2885
2885
  :file => ::File.open(@test_data_folder + file_name, 'r') { |io| io.read(io.size) }
2886
2886
  }
2887
2887
  response = @pdf_api.put_pdf_in_request_to_pdf_a(@temp_folder + '/' + res_file, PdfAType::PDFA1_A, opts)
2888
- assert(response, 'Filed to convert PDF to PDFA.')
2888
+ assert(response, 'Failed to convert PDF to PDFA.')
2889
2889
  end
2890
2890
 
2891
2891
  def test_get_pdf_in_storage_to_tiff
@@ -2897,7 +2897,7 @@ class PdfTests < Minitest::Test
2897
2897
  }
2898
2898
 
2899
2899
  response = @pdf_api.get_pdf_in_storage_to_tiff(file_name, opts)
2900
- assert(response, 'Filed to convert PDF to Tiff.')
2900
+ assert(response, 'Failed to convert PDF to Tiff.')
2901
2901
  end
2902
2902
 
2903
2903
  def test_put_pdf_in_storage_to_tiff
@@ -2909,7 +2909,7 @@ class PdfTests < Minitest::Test
2909
2909
  :folder => @temp_folder
2910
2910
  }
2911
2911
  response = @pdf_api.put_pdf_in_storage_to_tiff(file_name, @temp_folder + '/' + res_file, opts)
2912
- assert(response, 'Filed to convert PDF to Tiff.')
2912
+ assert(response, 'Failed to convert PDF to Tiff.')
2913
2913
  end
2914
2914
 
2915
2915
  def test_put_pdf_in_request_to_tiff
@@ -2921,7 +2921,7 @@ class PdfTests < Minitest::Test
2921
2921
  :file => ::File.open(@test_data_folder + file_name, 'r') { |io| io.read(io.size) }
2922
2922
  }
2923
2923
  response = @pdf_api.put_pdf_in_request_to_tiff(@temp_folder + '/' + res_file, opts)
2924
- assert(response, 'Filed to convert PDF to Tiff.')
2924
+ assert(response, 'Failed to convert PDF to Tiff.')
2925
2925
  end
2926
2926
 
2927
2927
  def test_get_pdf_in_storage_to_svg
@@ -2933,7 +2933,7 @@ class PdfTests < Minitest::Test
2933
2933
  }
2934
2934
 
2935
2935
  response = @pdf_api.get_pdf_in_storage_to_svg(file_name, opts)
2936
- assert(response, 'Filed to convert PDF to SVG.')
2936
+ assert(response, 'Failed to convert PDF to SVG.')
2937
2937
  end
2938
2938
 
2939
2939
  def test_put_pdf_in_storage_to_svg
@@ -2945,7 +2945,7 @@ class PdfTests < Minitest::Test
2945
2945
  :folder => @temp_folder
2946
2946
  }
2947
2947
  response = @pdf_api.put_pdf_in_storage_to_svg(file_name, @temp_folder + '/' + res_file, opts)
2948
- assert(response, 'Filed to convert PDF to SVG.')
2948
+ assert(response, 'Failed to convert PDF to SVG.')
2949
2949
  end
2950
2950
 
2951
2951
  def test_put_pdf_in_request_to_svg
@@ -2957,7 +2957,7 @@ class PdfTests < Minitest::Test
2957
2957
  :file => ::File.open(@test_data_folder + file_name, 'r') { |io| io.read(io.size) }
2958
2958
  }
2959
2959
  response = @pdf_api.put_pdf_in_request_to_svg(@temp_folder + '/' + res_file, opts)
2960
- assert(response, 'Filed to convert PDF to SVG.')
2960
+ assert(response, 'Failed to convert PDF to SVG.')
2961
2961
  end
2962
2962
 
2963
2963
  def test_get_pdf_in_storage_to_xps
@@ -2969,7 +2969,7 @@ class PdfTests < Minitest::Test
2969
2969
  }
2970
2970
 
2971
2971
  response = @pdf_api.get_pdf_in_storage_to_xps(file_name, opts)
2972
- assert(response, 'Filed to convert PDF to XPS.')
2972
+ assert(response, 'Failed to convert PDF to XPS.')
2973
2973
  end
2974
2974
 
2975
2975
  def test_put_pdf_in_storage_to_xps
@@ -2981,7 +2981,7 @@ class PdfTests < Minitest::Test
2981
2981
  :folder => @temp_folder
2982
2982
  }
2983
2983
  response = @pdf_api.put_pdf_in_storage_to_xps(file_name, @temp_folder + '/' + res_file, opts)
2984
- assert(response, 'Filed to convert PDF to XPS.')
2984
+ assert(response, 'Failed to convert PDF to XPS.')
2985
2985
  end
2986
2986
 
2987
2987
  def test_put_pdf_in_request_to_xps
@@ -2993,7 +2993,7 @@ class PdfTests < Minitest::Test
2993
2993
  :file => ::File.open(@test_data_folder + file_name, 'r') { |io| io.read(io.size) }
2994
2994
  }
2995
2995
  response = @pdf_api.put_pdf_in_request_to_xps(@temp_folder + '/' + res_file, opts)
2996
- assert(response, 'Filed to convert PDF to XPS.')
2996
+ assert(response, 'Failed to convert PDF to XPS.')
2997
2997
  end
2998
2998
 
2999
2999
  def test_get_pdf_in_storage_to_xls
@@ -3005,7 +3005,7 @@ class PdfTests < Minitest::Test
3005
3005
  }
3006
3006
 
3007
3007
  response = @pdf_api.get_pdf_in_storage_to_xls(file_name, opts)
3008
- assert(response, 'Filed to convert PDF to XLS.')
3008
+ assert(response, 'Failed to convert PDF to XLS.')
3009
3009
  end
3010
3010
 
3011
3011
  def test_put_pdf_in_storage_to_xls
@@ -3017,7 +3017,7 @@ class PdfTests < Minitest::Test
3017
3017
  :folder => @temp_folder
3018
3018
  }
3019
3019
  response = @pdf_api.put_pdf_in_storage_to_xls(file_name, @temp_folder + '/' + res_file, opts)
3020
- assert(response, 'Filed to convert PDF to XLS.')
3020
+ assert(response, 'Failed to convert PDF to XLS.')
3021
3021
  end
3022
3022
 
3023
3023
  def test_put_pdf_in_request_to_xls
@@ -3029,7 +3029,7 @@ class PdfTests < Minitest::Test
3029
3029
  :file => ::File.open(@test_data_folder + file_name, 'r') { |io| io.read(io.size) }
3030
3030
  }
3031
3031
  response = @pdf_api.put_pdf_in_request_to_xls(@temp_folder + '/' + res_file, opts)
3032
- assert(response, 'Filed to convert PDF to XLS.')
3032
+ assert(response, 'Failed to convert PDF to XLS.')
3033
3033
  end
3034
3034
 
3035
3035
  def test_get_pdf_in_storage_to_html
@@ -3041,7 +3041,7 @@ class PdfTests < Minitest::Test
3041
3041
  }
3042
3042
 
3043
3043
  response = @pdf_api.get_pdf_in_storage_to_html(file_name, opts)
3044
- assert(response, 'Filed to convert PDF to HTML.')
3044
+ assert(response, 'Failed to convert PDF to HTML.')
3045
3045
  end
3046
3046
 
3047
3047
  def test_put_pdf_in_storage_to_html
@@ -3054,7 +3054,7 @@ class PdfTests < Minitest::Test
3054
3054
  :output_format => OutputFormat::FOLDER
3055
3055
  }
3056
3056
  response = @pdf_api.put_pdf_in_storage_to_html(file_name, @temp_folder + '/' + res_file, opts)
3057
- assert(response, 'Filed to convert PDF to HTML.')
3057
+ assert(response, 'Failed to convert PDF to HTML.')
3058
3058
  end
3059
3059
 
3060
3060
  def test_put_pdf_in_request_to_html
@@ -3066,7 +3066,7 @@ class PdfTests < Minitest::Test
3066
3066
  :file => ::File.open(@test_data_folder + file_name, 'r') { |io| io.read(io.size) }
3067
3067
  }
3068
3068
  response = @pdf_api.put_pdf_in_request_to_html(@temp_folder + '/' + res_file, opts)
3069
- assert(response, 'Filed to convert PDF to HTML.')
3069
+ assert(response, 'Failed to convert PDF to HTML.')
3070
3070
  end
3071
3071
 
3072
3072
  def test_get_pdf_in_storage_to_epub
@@ -3078,7 +3078,7 @@ class PdfTests < Minitest::Test
3078
3078
  }
3079
3079
 
3080
3080
  response = @pdf_api.get_pdf_in_storage_to_epub(file_name, opts)
3081
- assert(response, 'Filed to convert PDF to EPUB.')
3081
+ assert(response, 'Failed to convert PDF to EPUB.')
3082
3082
  end
3083
3083
 
3084
3084
  def test_put_pdf_in_storage_to_epub
@@ -3090,7 +3090,7 @@ class PdfTests < Minitest::Test
3090
3090
  :folder => @temp_folder
3091
3091
  }
3092
3092
  response = @pdf_api.put_pdf_in_storage_to_epub(file_name, @temp_folder + '/' + res_file, opts)
3093
- assert(response, 'Filed to convert PDF to EPUB.')
3093
+ assert(response, 'Failed to convert PDF to EPUB.')
3094
3094
  end
3095
3095
 
3096
3096
  def test_put_pdf_in_request_to_epub
@@ -3102,44 +3102,72 @@ class PdfTests < Minitest::Test
3102
3102
  :file => ::File.open(@test_data_folder + file_name, 'r') { |io| io.read(io.size) }
3103
3103
  }
3104
3104
  response = @pdf_api.put_pdf_in_request_to_epub(@temp_folder + '/' + res_file, opts)
3105
- assert(response, 'Filed to convert PDF to EPUB.')
3105
+ assert(response, 'Failed to convert PDF to EPUB.')
3106
3106
  end
3107
3107
 
3108
3108
  def test_get_pdf_in_storage_to_pptx
3109
3109
  file_name = '4pages.pdf'
3110
3110
  upload_file(file_name)
3111
-
3112
3111
  opts = {
3113
3112
  :folder => @temp_folder
3114
3113
  }
3114
+ response = @pdf_api.get_pdf_in_storage_to_pptx(file_name, opts)
3115
+ assert(response, 'Failed to convert PDF to PPTX.')
3116
+ end
3115
3117
 
3118
+ def test_get_pdf_in_storage_to_pptx_with_password
3119
+ file_name = '4pagesEncrypted.pdf'
3120
+ upload_file(file_name)
3121
+ opts = {
3122
+ :folder => @temp_folder,
3123
+ :password => Base64.encode64('user $^Password!&')
3124
+ }
3116
3125
  response = @pdf_api.get_pdf_in_storage_to_pptx(file_name, opts)
3117
- assert(response, 'Filed to convert PDF to PPTX.')
3126
+ assert(response, 'Failed to convert PDF to PPTX.')
3118
3127
  end
3119
3128
 
3120
3129
  def test_put_pdf_in_storage_to_pptx
3121
3130
  file_name = '4pages.pdf'
3122
3131
  upload_file(file_name)
3123
3132
  res_file = 'result.pptx'
3124
-
3125
3133
  opts = {
3126
3134
  :folder => @temp_folder
3127
3135
  }
3128
3136
  response = @pdf_api.put_pdf_in_storage_to_pptx(file_name, @temp_folder + '/' + res_file, opts)
3129
- assert(response, 'Filed to convert PDF to PPTX.')
3137
+ assert(response, 'Failed to convert PDF to PPTX.')
3130
3138
  end
3131
3139
 
3140
+ def test_put_pdf_in_storage_to_pptx_with_password
3141
+ file_name = '4pagesEncrypted.pdf'
3142
+ upload_file(file_name)
3143
+ res_file = 'result.pptx'
3144
+ opts = {
3145
+ :folder => @temp_folder,
3146
+ :password => Base64.encode64('user $^Password!&')
3147
+ }
3148
+ response = @pdf_api.put_pdf_in_storage_to_pptx(file_name, @temp_folder + '/' + res_file, opts)
3149
+ assert(response, 'Failed to convert PDF to PPTX.')
3150
+ end
3132
3151
 
3133
3152
  def test_put_pdf_in_request_to_pptx
3134
3153
  file_name = '4pages.pdf'
3135
-
3136
3154
  res_file = 'result.pptx'
3137
-
3138
3155
  opts = {
3139
3156
  :file => ::File.open(@test_data_folder + file_name, 'r') { |io| io.read(io.size) }
3140
3157
  }
3141
3158
  response = @pdf_api.put_pdf_in_request_to_pptx(@temp_folder + '/' + res_file, opts)
3142
- assert(response, 'Filed to convert PDF to PPTX.')
3159
+ assert(response, 'Failed to convert PDF to PPTX.')
3160
+ end
3161
+
3162
+ def test_put_pdf_in_request_to_pptx_with_password
3163
+ file_name = '4pagesEncrypted.pdf'
3164
+ res_file = 'result.pptx'
3165
+ opts = {
3166
+ :file => ::File.open(@test_data_folder + file_name, 'r') { |io| io.read(io.size) },
3167
+ :password => Base64.encode64('user $^Password!&')
3168
+ }
3169
+ response = @pdf_api.put_pdf_in_request_to_pptx(@temp_folder + '/' + res_file, opts)
3170
+ assert(response, 'Failed to convert PDF to PPTX.')
3143
3171
  end
3144
3172
 
3145
3173
  def test_get_pdf_in_storage_to_te_x
@@ -3151,7 +3179,7 @@ class PdfTests < Minitest::Test
3151
3179
  }
3152
3180
 
3153
3181
  response = @pdf_api.get_pdf_in_storage_to_te_x(file_name, opts)
3154
- assert(response, 'Filed to convert PDF to Tex.')
3182
+ assert(response, 'Failed to convert PDF to Tex.')
3155
3183
  end
3156
3184
 
3157
3185
  def test_put_pdf_in_storage_to_te_x
@@ -3163,7 +3191,7 @@ class PdfTests < Minitest::Test
3163
3191
  :folder => @temp_folder
3164
3192
  }
3165
3193
  response = @pdf_api.put_pdf_in_storage_to_te_x(file_name, @temp_folder + '/' + res_file, opts)
3166
- assert(response, 'Filed to convert PDF to TeX.')
3194
+ assert(response, 'Failed to convert PDF to TeX.')
3167
3195
  end
3168
3196
 
3169
3197
 
@@ -3176,7 +3204,7 @@ class PdfTests < Minitest::Test
3176
3204
  :file => ::File.open(@test_data_folder + file_name, 'r') { |io| io.read(io.size) }
3177
3205
  }
3178
3206
  response = @pdf_api.put_pdf_in_request_to_te_x(@temp_folder + '/' + res_file, opts)
3179
- assert(response, 'Filed to convert PDF to TeX.')
3207
+ assert(response, 'Failed to convert PDF to TeX.')
3180
3208
  end
3181
3209
 
3182
3210
  def test_get_pdf_in_storage_to_mobi_xml
@@ -3188,7 +3216,7 @@ class PdfTests < Minitest::Test
3188
3216
  }
3189
3217
 
3190
3218
  response = @pdf_api.get_pdf_in_storage_to_mobi_xml(file_name, opts)
3191
- assert(response, 'Filed to convert PDF to Moby Xml.')
3219
+ assert(response, 'Failed to convert PDF to Moby Xml.')
3192
3220
  end
3193
3221
 
3194
3222
  def test_put_pdf_in_storage_to_mobi_xml
@@ -3200,7 +3228,7 @@ class PdfTests < Minitest::Test
3200
3228
  :folder => @temp_folder
3201
3229
  }
3202
3230
  response = @pdf_api.put_pdf_in_storage_to_mobi_xml(file_name, @temp_folder + '/' + res_file, opts)
3203
- assert(response, 'Filed to convert PDF to Moby Xml.')
3231
+ assert(response, 'Failed to convert PDF to Moby Xml.')
3204
3232
  end
3205
3233
 
3206
3234
 
@@ -3213,7 +3241,7 @@ class PdfTests < Minitest::Test
3213
3241
  :file => ::File.open(@test_data_folder + file_name, 'r') { |io| io.read(io.size) }
3214
3242
  }
3215
3243
  response = @pdf_api.put_pdf_in_request_to_mobi_xml(@temp_folder + '/' + res_file, opts)
3216
- assert(response, 'Filed to convert PDF to Moby Xml.')
3244
+ assert(response, 'Failed to convert PDF to Moby Xml.')
3217
3245
  end
3218
3246
 
3219
3247
  def test_get_xfa_pdf_in_storage_to_acro_form
@@ -3225,7 +3253,7 @@ class PdfTests < Minitest::Test
3225
3253
  }
3226
3254
 
3227
3255
  response = @pdf_api.get_xfa_pdf_in_storage_to_acro_form(file_name, opts)
3228
- assert(response, 'Filed to convert Xfa PDF to Acro form.')
3256
+ assert(response, 'Failed to convert Xfa PDF to Acro form.')
3229
3257
  end
3230
3258
 
3231
3259
  def test_put_xfa_pdf_in_storage_to_acro_form
@@ -3237,7 +3265,7 @@ class PdfTests < Minitest::Test
3237
3265
  :folder => @temp_folder
3238
3266
  }
3239
3267
  response = @pdf_api.put_xfa_pdf_in_storage_to_acro_form(file_name, @temp_folder + '/' + res_file, opts)
3240
- assert(response, 'Filed to convert Xfa PDF to Acro form.')
3268
+ assert(response, 'Failed to convert Xfa PDF to Acro form.')
3241
3269
  end
3242
3270
 
3243
3271
 
@@ -3250,7 +3278,7 @@ class PdfTests < Minitest::Test
3250
3278
  :file => ::File.open(@test_data_folder + file_name, 'r') { |io| io.read(io.size) }
3251
3279
  }
3252
3280
  response = @pdf_api.put_xfa_pdf_in_request_to_acro_form(@temp_folder + '/' + res_file, opts)
3253
- assert(response, 'Filed to convert Xfa PDF to Acro form.')
3281
+ assert(response, 'Failed to convert Xfa PDF to Acro form.')
3254
3282
  end
3255
3283
 
3256
3284
 
@@ -3263,7 +3291,7 @@ class PdfTests < Minitest::Test
3263
3291
  }
3264
3292
 
3265
3293
  response = @pdf_api.get_pdf_in_storage_to_xml(file_name, opts)
3266
- assert(response, 'Filed to convert PDF to Xml.')
3294
+ assert(response, 'Failed to convert PDF to Xml.')
3267
3295
  end
3268
3296
 
3269
3297
  def test_put_pdf_in_storage_to_xml
@@ -3275,7 +3303,7 @@ class PdfTests < Minitest::Test
3275
3303
  :folder => @temp_folder
3276
3304
  }
3277
3305
  response = @pdf_api.put_pdf_in_storage_to_xml(file_name, @temp_folder + '/' + res_file, opts)
3278
- assert(response, 'Filed to convert PDF to Xml.')
3306
+ assert(response, 'Failed to convert PDF to Xml.')
3279
3307
  end
3280
3308
 
3281
3309
 
@@ -3288,7 +3316,7 @@ class PdfTests < Minitest::Test
3288
3316
  :file => ::File.open(@test_data_folder + file_name, 'r') { |io| io.read(io.size) }
3289
3317
  }
3290
3318
  response = @pdf_api.put_pdf_in_request_to_xml(@temp_folder + '/' + res_file, opts)
3291
- assert(response, 'Filed to convert PDF to Xml.')
3319
+ assert(response, 'Failed to convert PDF to Xml.')
3292
3320
  end
3293
3321
 
3294
3322
  def test_get_pdf_in_storage_to_xlsx
@@ -3300,7 +3328,7 @@ class PdfTests < Minitest::Test
3300
3328
  }
3301
3329
 
3302
3330
  response = @pdf_api.get_pdf_in_storage_to_xlsx(file_name, opts)
3303
- assert(response, 'Filed to convert PDF to XLS.')
3331
+ assert(response, 'Failed to convert PDF to XLS.')
3304
3332
  end
3305
3333
 
3306
3334
  def test_put_pdf_in_storage_to_xlsx
@@ -3312,7 +3340,7 @@ class PdfTests < Minitest::Test
3312
3340
  :folder => @temp_folder
3313
3341
  }
3314
3342
  response = @pdf_api.put_pdf_in_storage_to_xlsx(file_name, @temp_folder + '/' + res_file, opts)
3315
- assert(response, 'Filed to convert PDF to XLS.')
3343
+ assert(response, 'Failed to convert PDF to XLS.')
3316
3344
  end
3317
3345
 
3318
3346
  def test_put_pdf_in_request_to_xlsx
@@ -3324,7 +3352,7 @@ class PdfTests < Minitest::Test
3324
3352
  :file => ::File.open(@test_data_folder + file_name, 'r') { |io| io.read(io.size) }
3325
3353
  }
3326
3354
  response = @pdf_api.put_pdf_in_request_to_xlsx(@temp_folder + '/' + res_file, opts)
3327
- assert(response, 'Filed to convert PDF to XLS.')
3355
+ assert(response, 'Failed to convert PDF to XLS.')
3328
3356
  end
3329
3357
 
3330
3358
  # Convert to PDF Tests
@@ -5276,7 +5304,7 @@ class PdfTests < Minitest::Test
5276
5304
  }
5277
5305
 
5278
5306
  response = @pdf_api.put_searchable_document(file_name, opts)
5279
- assert(response, 'Filed to make document searchable')
5307
+ assert(response, 'Failed to make document searchable')
5280
5308
  end
5281
5309
 
5282
5310
 
@@ -5289,7 +5317,7 @@ class PdfTests < Minitest::Test
5289
5317
  }
5290
5318
 
5291
5319
  response = @pdf_api.put_searchable_document(file_name, opts)
5292
- assert(response, 'Filed to make document searchable.')
5320
+ assert(response, 'Failed to make document searchable.')
5293
5321
  end
5294
5322
 
5295
5323
 
@@ -5860,7 +5888,7 @@ class PdfTests < Minitest::Test
5860
5888
  }
5861
5889
 
5862
5890
  response = @pdf_api.post_document_text_replace(file_name, text_replace_list, opts)
5863
- assert(response, 'Filed to replace document text by rect.')
5891
+ assert(response, 'Failed to replace document text by rect.')
5864
5892
  end
5865
5893
 
5866
5894
 
@@ -5891,7 +5919,7 @@ class PdfTests < Minitest::Test
5891
5919
  }
5892
5920
 
5893
5921
  response = @pdf_api.post_page_text_replace(file_name, page_number, text_replace_list, opts)
5894
- assert(response, 'Filed to replace page text by rect.')
5922
+ assert(response, 'Failed to replace page text by rect.')
5895
5923
  end
5896
5924
 
5897
5925
 
@@ -5910,7 +5938,7 @@ class PdfTests < Minitest::Test
5910
5938
  }
5911
5939
 
5912
5940
  response = @pdf_api.get_text(file_name, llx, lly, urx, ury, opts)
5913
- assert(response, 'Filed to get document text.')
5941
+ assert(response, 'Failed to get document text.')
5914
5942
  end
5915
5943
 
5916
5944
  def test_get_page_text_by_two_text_on_page
@@ -5929,7 +5957,7 @@ class PdfTests < Minitest::Test
5929
5957
  }
5930
5958
 
5931
5959
  response = @pdf_api.get_page_text(file_name, page_number, llx, lly, urx, ury, opts)
5932
- assert(response, 'Filed to get document text.')
5960
+ assert(response, 'Failed to get document text.')
5933
5961
  end
5934
5962
 
5935
5963
  def test_put_add_text
@@ -6113,7 +6141,7 @@ class PdfTests < Minitest::Test
6113
6141
  }
6114
6142
 
6115
6143
  response = @pdf_api.get_document_bookmarks(file_name, opts)
6116
- assert(response, 'Filed to get all document bookmarks.')
6144
+ assert(response, 'Failed to get all document bookmarks.')
6117
6145
  end
6118
6146
 
6119
6147
  def test_get_bookmarks
@@ -6127,7 +6155,7 @@ class PdfTests < Minitest::Test
6127
6155
  }
6128
6156
 
6129
6157
  response = @pdf_api.get_bookmarks(file_name, path, opts)
6130
- assert(response, 'Filed to get all node bookmarks.')
6158
+ assert(response, 'Failed to get all node bookmarks.')
6131
6159
  end
6132
6160
 
6133
6161
  def test_get_bookmark
@@ -6141,7 +6169,7 @@ class PdfTests < Minitest::Test
6141
6169
  }
6142
6170
 
6143
6171
  response = @pdf_api.get_bookmark(file_name, path, opts)
6144
- assert(response, 'Filed to get bookmark by path.')
6172
+ assert(response, 'Failed to get bookmark by path.')
6145
6173
  end
6146
6174
 
6147
6175
  def test_delete_document_bookmarks
@@ -6153,7 +6181,7 @@ class PdfTests < Minitest::Test
6153
6181
  }
6154
6182
 
6155
6183
  response = @pdf_api.delete_document_bookmarks(file_name, opts)
6156
- assert(response, 'Filed to delete all document bookmarks.')
6184
+ assert(response, 'Failed to delete all document bookmarks.')
6157
6185
  end
6158
6186
 
6159
6187
  def test_delete_bookmark
@@ -6167,7 +6195,7 @@ class PdfTests < Minitest::Test
6167
6195
  }
6168
6196
 
6169
6197
  response = @pdf_api.delete_bookmark(file_name, path, opts)
6170
- assert(response, 'Filed to delete bookmark by path.')
6198
+ assert(response, 'Failed to delete bookmark by path.')
6171
6199
  end
6172
6200
 
6173
6201
  def test_post_bookmarks
@@ -6201,7 +6229,7 @@ class PdfTests < Minitest::Test
6201
6229
  }
6202
6230
 
6203
6231
  response = @pdf_api.post_bookmark(file_name, path, [bookmark], opts)
6204
- assert(response, 'Filed to post bookmark.')
6232
+ assert(response, 'Failed to post bookmark.')
6205
6233
  end
6206
6234
 
6207
6235
  def test_put_bookmark
@@ -6235,7 +6263,7 @@ class PdfTests < Minitest::Test
6235
6263
  }
6236
6264
 
6237
6265
  response = @pdf_api.put_bookmark(file_name, path, bookmark, opts)
6238
- assert(response, 'Filed to update bookmark.')
6266
+ assert(response, 'Failed to update bookmark.')
6239
6267
  end
6240
6268
 
6241
6269
  # Import Export Tests
@@ -6249,7 +6277,7 @@ class PdfTests < Minitest::Test
6249
6277
  }
6250
6278
 
6251
6279
  response = @pdf_api.get_export_fields_from_pdf_to_xml_in_storage(file_name, opts)
6252
- assert(response, 'Filed to export fields to xml.')
6280
+ assert(response, 'Failed to export fields to xml.')
6253
6281
  end
6254
6282
 
6255
6283
  def test_get_export_fields_from_pdf_to_fdf_in_storage
@@ -6261,7 +6289,7 @@ class PdfTests < Minitest::Test
6261
6289
  }
6262
6290
 
6263
6291
  response = @pdf_api.get_export_fields_from_pdf_to_fdf_in_storage(file_name, opts)
6264
- assert(response, 'Filed to export fields to fdf.')
6292
+ assert(response, 'Failed to export fields to fdf.')
6265
6293
  end
6266
6294
 
6267
6295
  def test_get_export_fields_from_pdf_to_xfdf_in_storage
@@ -6273,7 +6301,7 @@ class PdfTests < Minitest::Test
6273
6301
  }
6274
6302
 
6275
6303
  response = @pdf_api.get_export_fields_from_pdf_to_xfdf_in_storage(file_name, opts)
6276
- assert(response, 'Filed to export fields to xfdf.')
6304
+ assert(response, 'Failed to export fields to xfdf.')
6277
6305
  end
6278
6306
 
6279
6307
  def test_put_export_fields_from_pdf_to_xml_in_storage
@@ -6287,7 +6315,7 @@ class PdfTests < Minitest::Test
6287
6315
  }
6288
6316
 
6289
6317
  response = @pdf_api.put_export_fields_from_pdf_to_xml_in_storage(file_name, out_path, opts)
6290
- assert(response, 'Filed to export fields to xml.')
6318
+ assert(response, 'Failed to export fields to xml.')
6291
6319
  end
6292
6320
 
6293
6321
  def test_put_export_fields_from_pdf_to_fdf_in_storage
@@ -6301,7 +6329,7 @@ class PdfTests < Minitest::Test
6301
6329
  }
6302
6330
 
6303
6331
  response = @pdf_api.put_export_fields_from_pdf_to_fdf_in_storage(file_name, out_path, opts)
6304
- assert(response, 'Filed to export fields to fdf.')
6332
+ assert(response, 'Failed to export fields to fdf.')
6305
6333
  end
6306
6334
 
6307
6335
  def test_put_export_fields_from_pdf_to_xfdf_in_storage
@@ -6315,7 +6343,7 @@ class PdfTests < Minitest::Test
6315
6343
  }
6316
6344
 
6317
6345
  response = @pdf_api.put_export_fields_from_pdf_to_xfdf_in_storage(file_name, out_path, opts)
6318
- assert(response, 'Filed to export fields to xfdf.')
6346
+ assert(response, 'Failed to export fields to xfdf.')
6319
6347
  end
6320
6348
 
6321
6349
 
@@ -6333,7 +6361,7 @@ class PdfTests < Minitest::Test
6333
6361
  }
6334
6362
 
6335
6363
  response = @pdf_api.get_import_fields_from_fdf_in_storage(file_name, data_file_path, opts)
6336
- assert(response, 'Filed to import fields from fdf.')
6364
+ assert(response, 'Failed to import fields from fdf.')
6337
6365
  end
6338
6366
 
6339
6367
  def test_get_import_fields_from_xfdf_in_storage
@@ -6350,7 +6378,7 @@ class PdfTests < Minitest::Test
6350
6378
  }
6351
6379
 
6352
6380
  response = @pdf_api.get_import_fields_from_xfdf_in_storage(file_name, data_file_path, opts)
6353
- assert(response, 'Filed to import fields from xfdf.')
6381
+ assert(response, 'Failed to import fields from xfdf.')
6354
6382
  end
6355
6383
 
6356
6384
  def test_get_import_fields_from_xml_in_storage
@@ -6367,7 +6395,7 @@ class PdfTests < Minitest::Test
6367
6395
  }
6368
6396
 
6369
6397
  response = @pdf_api.get_import_fields_from_xml_in_storage(file_name, data_file_path, opts)
6370
- assert(response, 'Filed to import fields from xml.')
6398
+ assert(response, 'Failed to import fields from xml.')
6371
6399
  end
6372
6400
 
6373
6401
  def test_put_import_fields_from_fdf_in_storage
@@ -6384,7 +6412,7 @@ class PdfTests < Minitest::Test
6384
6412
  }
6385
6413
 
6386
6414
  response = @pdf_api.put_import_fields_from_fdf_in_storage(file_name, data_file_path, opts)
6387
- assert(response, 'Filed to import fields from fdf.')
6415
+ assert(response, 'Failed to import fields from fdf.')
6388
6416
  end
6389
6417
 
6390
6418
  def test_put_import_fields_from_xfdf_in_storage
@@ -6401,7 +6429,7 @@ class PdfTests < Minitest::Test
6401
6429
  }
6402
6430
 
6403
6431
  response = @pdf_api.put_import_fields_from_xfdf_in_storage(file_name, data_file_path, opts)
6404
- assert(response, 'Filed to import fields from xfdf.')
6432
+ assert(response, 'Failed to import fields from xfdf.')
6405
6433
  end
6406
6434
 
6407
6435
  def test_put_import_fields_from_xml_in_storage
@@ -6418,7 +6446,7 @@ class PdfTests < Minitest::Test
6418
6446
  }
6419
6447
 
6420
6448
  response = @pdf_api.put_import_fields_from_xml_in_storage(file_name, data_file_path, opts)
6421
- assert(response, 'Filed to import fields from xml.')
6449
+ assert(response, 'Failed to import fields from xml.')
6422
6450
  end
6423
6451
 
6424
6452
  def test_post_import_fields_from_fdf
@@ -6433,7 +6461,7 @@ class PdfTests < Minitest::Test
6433
6461
  }
6434
6462
 
6435
6463
  response = @pdf_api.post_import_fields_from_fdf(file_name, opts)
6436
- assert(response, 'Filed to import fields from fdf.')
6464
+ assert(response, 'Failed to import fields from fdf.')
6437
6465
  end
6438
6466
 
6439
6467
  def test_post_import_fields_from_xfdf
@@ -6448,7 +6476,7 @@ class PdfTests < Minitest::Test
6448
6476
  }
6449
6477
 
6450
6478
  response = @pdf_api.post_import_fields_from_xfdf(file_name, opts)
6451
- assert(response, 'Filed to import fields from xfdf.')
6479
+ assert(response, 'Failed to import fields from xfdf.')
6452
6480
  end
6453
6481
 
6454
6482
  def test_post_import_fields_from_xml
@@ -6463,6 +6491,6 @@ class PdfTests < Minitest::Test
6463
6491
  }
6464
6492
 
6465
6493
  response = @pdf_api.post_import_fields_from_xml(file_name, opts)
6466
- assert(response, 'Filed to import fields from xml.')
6494
+ assert(response, 'Failed to import fields from xml.')
6467
6495
  end
6468
6496
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_pdf_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 23.5.0
4
+ version: 23.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aspose PDF Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-25 00:00:00.000000000 Z
11
+ date: 2023-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json