aspose_slides_cloud 24.4.0 → 24.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e61ff5f495cbe4c321307a13c5c809dcdfb96c8eda780b87a3776a971360e23d
4
- data.tar.gz: 1044e26b099bf029fa81156fbbe1800768c14be8db6fec2e847c425746abc73b
3
+ metadata.gz: 1f2c3c4dc7ba7d83b153193a2445085d789bd89f26c3cbf377d72ca6e8b641a6
4
+ data.tar.gz: '029477b0ffe6a5fc1803bfdddb4b4e6db5ffb4ad417670d0faabc272dfce3110'
5
5
  SHA512:
6
- metadata.gz: 2aff2c067a72c77db7f8265ad0d1ab92658e3723873bfe9736d11c6ba03de8fdf40bd335fd56ebc1fe886987f928b8147c0669c220e9014c6bcf4f2f16031831
7
- data.tar.gz: ce6ddfc3d81ceb952f95f933a7cd179bf099bf7ca5c20e1906f5bf1e9ab5b4e362b2db1cfd1e101fda63ec98ff02ba4ccc2018d32eb071c50e0d7acbe7dfdcd9
6
+ metadata.gz: 589efeebfabe07b770aa6c8f48e48f87dfc77d6a32ebaccb0cd42665b82d82897a090b299dde3c145041aaf2a847cd08aa56549f687b375c08b25bb487b5e55a
7
+ data.tar.gz: a9fae3df76ac231de2b219f12b660bb5f4575d5f0fa227dc395a9afd0465d7ece84effcd09d22c552db14237af009eeadeb77bbafcced521feba53b1fd90ca91
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aspose_slides_cloud (24.4.0)
4
+ aspose_slides_cloud (24.5.0)
5
5
  faraday (~> 1.0, >= 1.0.0)
6
6
  faraday-httpclient (~> 1.0, >= 1.0.0)
7
7
  httpclient (~> 2.2, >= 2.2.0)
@@ -51,7 +51,8 @@ GEM
51
51
  multipart-post (2.4.1)
52
52
  public_suffix (5.0.5)
53
53
  rake (12.3.3)
54
- rexml (3.2.6)
54
+ rexml (3.2.8)
55
+ strscan (>= 3.0.9)
55
56
  rspec (3.13.0)
56
57
  rspec-core (~> 3.13.0)
57
58
  rspec-expectations (~> 3.13.0)
@@ -61,7 +62,7 @@ GEM
61
62
  rspec-expectations (3.13.0)
62
63
  diff-lcs (>= 1.2.0, < 2.0)
63
64
  rspec-support (~> 3.13.0)
64
- rspec-mocks (3.13.0)
65
+ rspec-mocks (3.13.1)
65
66
  diff-lcs (>= 1.2.0, < 2.0)
66
67
  rspec-support (~> 3.13.0)
67
68
  rspec-support (3.13.1)
@@ -69,6 +70,7 @@ GEM
69
70
  rspec-core (>= 2, < 4, != 2.12.0)
70
71
  ruby2_keywords (0.0.5)
71
72
  rubyzip (2.3.2)
73
+ strscan (3.1.0)
72
74
  vcr (3.0.3)
73
75
  webmock (1.24.6)
74
76
  addressable (>= 2.3.6)
data/README.md CHANGED
@@ -27,6 +27,13 @@ You may want to check out Aspose free [Powerpoint to PDF](https://products.aspos
27
27
  **Web:** HTML/HTML5
28
28
  **Other:** MPEG4, SWF (export whole presentations)
29
29
 
30
+ ## Enhancements in Version 24.5
31
+
32
+ * Added **options** parameter to **ImportFromPdf** method. You can specify **options.DetectTables** property to control import behavior.
33
+ * Added **Title** property to **Axis** class for charts.
34
+ * Added **X**, **Y**, **Width**, **Height**, **Overlay**, **FillFormat**, **EffectFormat** and **LineFormat** properties to **ChartTitle** class.
35
+ * Added **HasTitle** property to **Chart** class; removed **HasTitle** property from **ChartTitle** class.
36
+
30
37
  ## Enhancements in Version 24.4
31
38
 
32
39
  * Added **DownloadMathPortion** and **SaveMathPortion** methods to convert math portions to math markup formats (MathML or LaTeX). See [documentation](https://docs.aspose.cloud/slides/export-a-math-formula/) for more info. **DownloadPortionAsMathML** and **SavePortionAsMathML** methods are deprecated and will be removed after 24.6.
@@ -13467,21 +13467,23 @@ module AsposeSlidesCloud
13467
13467
  # Create presentation document from pdf or append pdf to an existing presentation.
13468
13468
  # @param name Document name.
13469
13469
  # @param pdf PDF data.
13470
+ # @param options Import options.
13470
13471
  # @param password Document password.
13471
13472
  # @param folder Document folder.
13472
13473
  # @param storage Document storage.
13473
- def import_from_pdf(name, pdf, password = nil, folder = nil, storage = nil)
13474
- data, _status_code, _headers = import_from_pdf_with_http_info(name, pdf, password, folder, storage)
13474
+ def import_from_pdf(name, pdf, options = nil, password = nil, folder = nil, storage = nil)
13475
+ data, _status_code, _headers = import_from_pdf_with_http_info(name, pdf, options, password, folder, storage)
13475
13476
  data
13476
13477
  end
13477
13478
 
13478
13479
  # Create presentation document from pdf or append pdf to an existing presentation.
13479
13480
  # @param name Document name.
13480
13481
  # @param pdf PDF data.
13482
+ # @param options Import options.
13481
13483
  # @param password Document password.
13482
13484
  # @param folder Document folder.
13483
13485
  # @param storage Document storage.
13484
- def import_from_pdf_with_http_info(name, pdf, password = nil, folder = nil, storage = nil)
13486
+ def import_from_pdf_with_http_info(name, pdf, options = nil, password = nil, folder = nil, storage = nil)
13485
13487
  if @api_client.config.debugging
13486
13488
  @api_client.config.logger.debug 'Calling API: SlidesApi.import_from_pdf ...'
13487
13489
  end
@@ -13512,7 +13514,7 @@ module AsposeSlidesCloud
13512
13514
  header_params[:'password'] = password unless password.nil?
13513
13515
 
13514
13516
  # http body (model)
13515
- post_body = nil
13517
+ post_body = @api_client.object_to_http_body(options)
13516
13518
 
13517
13519
  # form parameters
13518
13520
  post_files = []
@@ -31,6 +31,9 @@ module AsposeSlidesCloud
31
31
  # True if the axis has a visible title
32
32
  attr_accessor :has_title
33
33
 
34
+ # Axis title
35
+ attr_accessor :title
36
+
34
37
  # Axis position
35
38
  attr_accessor :position
36
39
 
@@ -144,6 +147,7 @@ module AsposeSlidesCloud
144
147
  {
145
148
  :'is_visible' => :'IsVisible',
146
149
  :'has_title' => :'HasTitle',
150
+ :'title' => :'Title',
147
151
  :'position' => :'Position',
148
152
  :'display_unit' => :'DisplayUnit',
149
153
  :'base_unit_scale' => :'BaseUnitScale',
@@ -188,6 +192,7 @@ module AsposeSlidesCloud
188
192
  {
189
193
  :'is_visible' => :'BOOLEAN',
190
194
  :'has_title' => :'BOOLEAN',
195
+ :'title' => :'ChartTitle',
191
196
  :'position' => :'String',
192
197
  :'display_unit' => :'String',
193
198
  :'base_unit_scale' => :'String',
@@ -243,6 +248,10 @@ module AsposeSlidesCloud
243
248
  self.has_title = attributes[:'HasTitle']
244
249
  end
245
250
 
251
+ if attributes.has_key?(:'Title')
252
+ self.title = attributes[:'Title']
253
+ end
254
+
246
255
  if attributes.has_key?(:'Position')
247
256
  self.position = attributes[:'Position']
248
257
  end
@@ -528,6 +537,7 @@ module AsposeSlidesCloud
528
537
  self.class == o.class &&
529
538
  is_visible == o.is_visible &&
530
539
  has_title == o.has_title &&
540
+ title == o.title &&
531
541
  position == o.position &&
532
542
  display_unit == o.display_unit &&
533
543
  base_unit_scale == o.base_unit_scale &&
@@ -575,7 +585,7 @@ module AsposeSlidesCloud
575
585
  # Calculates hash code according to all attributes.
576
586
  # @return [Fixnum] Hash code
577
587
  def hash
578
- [is_visible, has_title, position, display_unit, base_unit_scale, is_automatic_major_unit, major_unit, major_unit_scale, major_tick_mark, is_automatic_minor_unit, minor_unit, minor_unit_scale, minor_tick_mark, is_automatic_max_value, max_value, is_automatic_min_value, min_value, is_logarithmic, log_base, category_axis_type, axis_between_categories, label_offset, is_plot_order_reversed, is_number_format_linked_to_source, number_format, cross_type, cross_at, is_automatic_tick_marks_spacing, tick_marks_spacing, is_automatic_tick_label_spacing, tick_label_spacing, tick_label_position, tick_label_rotation_angle, fill_format, effect_format, line_format, major_grid_lines_format, minor_grid_lines_format].hash
588
+ [is_visible, has_title, title, position, display_unit, base_unit_scale, is_automatic_major_unit, major_unit, major_unit_scale, major_tick_mark, is_automatic_minor_unit, minor_unit, minor_unit_scale, minor_tick_mark, is_automatic_max_value, max_value, is_automatic_min_value, min_value, is_logarithmic, log_base, category_axis_type, axis_between_categories, label_offset, is_plot_order_reversed, is_number_format_linked_to_source, number_format, cross_type, cross_at, is_automatic_tick_marks_spacing, tick_marks_spacing, is_automatic_tick_label_spacing, tick_label_spacing, tick_label_position, tick_label_rotation_angle, fill_format, effect_format, line_format, major_grid_lines_format, minor_grid_lines_format].hash
579
589
  end
580
590
  end
581
591
  end
@@ -40,6 +40,9 @@ module AsposeSlidesCloud
40
40
  # Data source type for categories.
41
41
  attr_accessor :data_source_for_categories
42
42
 
43
+ # True if the chart has a title.
44
+ attr_accessor :has_title
45
+
43
46
  # Gets or sets the title.
44
47
  attr_accessor :title
45
48
 
@@ -75,6 +78,7 @@ module AsposeSlidesCloud
75
78
  :'series' => :'Series',
76
79
  :'categories' => :'Categories',
77
80
  :'data_source_for_categories' => :'DataSourceForCategories',
81
+ :'has_title' => :'HasTitle',
78
82
  :'title' => :'Title',
79
83
  :'back_wall' => :'BackWall',
80
84
  :'side_wall' => :'SideWall',
@@ -95,6 +99,7 @@ module AsposeSlidesCloud
95
99
  :'series' => :'Array<Series>',
96
100
  :'categories' => :'Array<ChartCategory>',
97
101
  :'data_source_for_categories' => :'DataSource',
102
+ :'has_title' => :'BOOLEAN',
98
103
  :'title' => :'ChartTitle',
99
104
  :'back_wall' => :'ChartWall',
100
105
  :'side_wall' => :'ChartWall',
@@ -136,6 +141,10 @@ module AsposeSlidesCloud
136
141
  self.data_source_for_categories = attributes[:'DataSourceForCategories']
137
142
  end
138
143
 
144
+ if attributes.has_key?(:'HasTitle')
145
+ self.has_title = attributes[:'HasTitle']
146
+ end
147
+
139
148
  if attributes.has_key?(:'Title')
140
149
  self.title = attributes[:'Title']
141
150
  end
@@ -236,6 +245,7 @@ module AsposeSlidesCloud
236
245
  series == o.series &&
237
246
  categories == o.categories &&
238
247
  data_source_for_categories == o.data_source_for_categories &&
248
+ has_title == o.has_title &&
239
249
  title == o.title &&
240
250
  back_wall == o.back_wall &&
241
251
  side_wall == o.side_wall &&
@@ -256,7 +266,7 @@ module AsposeSlidesCloud
256
266
  # Calculates hash code according to all attributes.
257
267
  # @return [Fixnum] Hash code
258
268
  def hash
259
- [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, is_decorative, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, chart_type, show_data_labels_over_maximum, series, categories, data_source_for_categories, title, back_wall, side_wall, floor, legend, axes, plot_area, has_rounded_corners, series_groups].hash
269
+ [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, is_decorative, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, chart_type, show_data_labels_over_maximum, series, categories, data_source_for_categories, has_title, title, back_wall, side_wall, floor, legend, axes, plot_area, has_rounded_corners, series_groups].hash
260
270
  end
261
271
  end
262
272
  end
@@ -28,14 +28,42 @@ module AsposeSlidesCloud
28
28
  # Get or sets the text.
29
29
  attr_accessor :text
30
30
 
31
- # Get or sets value determines visibility of title
32
- attr_accessor :has_title
31
+ # the X location
32
+ attr_accessor :x
33
+
34
+ # the Y location
35
+ attr_accessor :y
36
+
37
+ # Width
38
+ attr_accessor :width
39
+
40
+ # Height
41
+ attr_accessor :height
42
+
43
+ # true if other elements are allowed to overlay the legend
44
+ attr_accessor :overlay
45
+
46
+ # Get or sets the fill format.
47
+ attr_accessor :fill_format
48
+
49
+ # Get or sets the effect format.
50
+ attr_accessor :effect_format
51
+
52
+ # Get or sets the line format.
53
+ attr_accessor :line_format
33
54
 
34
55
  # Attribute mapping from ruby-style variable name to JSON key.
35
56
  def self.attribute_map
36
57
  {
37
58
  :'text' => :'Text',
38
- :'has_title' => :'HasTitle',
59
+ :'x' => :'X',
60
+ :'y' => :'Y',
61
+ :'width' => :'Width',
62
+ :'height' => :'Height',
63
+ :'overlay' => :'Overlay',
64
+ :'fill_format' => :'FillFormat',
65
+ :'effect_format' => :'EffectFormat',
66
+ :'line_format' => :'LineFormat',
39
67
  }
40
68
  end
41
69
 
@@ -43,7 +71,14 @@ module AsposeSlidesCloud
43
71
  def self.swagger_types
44
72
  {
45
73
  :'text' => :'String',
46
- :'has_title' => :'BOOLEAN',
74
+ :'x' => :'Float',
75
+ :'y' => :'Float',
76
+ :'width' => :'Float',
77
+ :'height' => :'Float',
78
+ :'overlay' => :'BOOLEAN',
79
+ :'fill_format' => :'FillFormat',
80
+ :'effect_format' => :'EffectFormat',
81
+ :'line_format' => :'LineFormat',
47
82
  }
48
83
  end
49
84
 
@@ -59,8 +94,36 @@ module AsposeSlidesCloud
59
94
  self.text = attributes[:'Text']
60
95
  end
61
96
 
62
- if attributes.has_key?(:'HasTitle')
63
- self.has_title = attributes[:'HasTitle']
97
+ if attributes.has_key?(:'X')
98
+ self.x = attributes[:'X']
99
+ end
100
+
101
+ if attributes.has_key?(:'Y')
102
+ self.y = attributes[:'Y']
103
+ end
104
+
105
+ if attributes.has_key?(:'Width')
106
+ self.width = attributes[:'Width']
107
+ end
108
+
109
+ if attributes.has_key?(:'Height')
110
+ self.height = attributes[:'Height']
111
+ end
112
+
113
+ if attributes.has_key?(:'Overlay')
114
+ self.overlay = attributes[:'Overlay']
115
+ end
116
+
117
+ if attributes.has_key?(:'FillFormat')
118
+ self.fill_format = attributes[:'FillFormat']
119
+ end
120
+
121
+ if attributes.has_key?(:'EffectFormat')
122
+ self.effect_format = attributes[:'EffectFormat']
123
+ end
124
+
125
+ if attributes.has_key?(:'LineFormat')
126
+ self.line_format = attributes[:'LineFormat']
64
127
  end
65
128
  end
66
129
 
@@ -68,17 +131,12 @@ module AsposeSlidesCloud
68
131
  # @return Array for valid properties with the reasons
69
132
  def list_invalid_properties
70
133
  invalid_properties = Array.new
71
- if @has_title.nil?
72
- invalid_properties.push('invalid value for "has_title", has_title cannot be nil.')
73
- end
74
-
75
134
  invalid_properties
76
135
  end
77
136
 
78
137
  # Check to see if the all the properties in the model are valid
79
138
  # @return true if the model is valid
80
139
  def valid?
81
- return false if @has_title.nil?
82
140
  true
83
141
  end
84
142
 
@@ -88,7 +146,14 @@ module AsposeSlidesCloud
88
146
  return true if self.equal?(o)
89
147
  self.class == o.class &&
90
148
  text == o.text &&
91
- has_title == o.has_title
149
+ x == o.x &&
150
+ y == o.y &&
151
+ width == o.width &&
152
+ height == o.height &&
153
+ overlay == o.overlay &&
154
+ fill_format == o.fill_format &&
155
+ effect_format == o.effect_format &&
156
+ line_format == o.line_format
92
157
  end
93
158
 
94
159
  # @see the `==` method
@@ -100,7 +165,7 @@ module AsposeSlidesCloud
100
165
  # Calculates hash code according to all attributes.
101
166
  # @return [Fixnum] Hash code
102
167
  def hash
103
- [text, has_title].hash
168
+ [text, x, y, width, height, overlay, fill_format, effect_format, line_format].hash
104
169
  end
105
170
  end
106
171
  end
@@ -0,0 +1,96 @@
1
+ =begin
2
+ Copyright (c) 2019 Aspose Pty Ltd
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeSlidesCloud
26
+ # PDF import options.
27
+ class PdfImportOptions < BaseObject
28
+ # True to detect tables.
29
+ attr_accessor :detect_tables
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'detect_tables' => :'DetectTables',
35
+ }
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.swagger_types
40
+ {
41
+ :'detect_tables' => :'BOOLEAN',
42
+ }
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ return unless attributes.is_a?(Hash)
49
+
50
+ # convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
52
+
53
+ if attributes.has_key?(:'DetectTables')
54
+ self.detect_tables = attributes[:'DetectTables']
55
+ end
56
+ end
57
+
58
+ # Show invalid properties with the reasons. Usually used together with valid?
59
+ # @return Array for valid properties with the reasons
60
+ def list_invalid_properties
61
+ invalid_properties = Array.new
62
+ if @detect_tables.nil?
63
+ invalid_properties.push('invalid value for "detect_tables", detect_tables cannot be nil.')
64
+ end
65
+
66
+ invalid_properties
67
+ end
68
+
69
+ # Check to see if the all the properties in the model are valid
70
+ # @return true if the model is valid
71
+ def valid?
72
+ return false if @detect_tables.nil?
73
+ true
74
+ end
75
+
76
+ # Checks equality by comparing each attribute.
77
+ # @param [Object] Object to be compared
78
+ def ==(o)
79
+ return true if self.equal?(o)
80
+ self.class == o.class &&
81
+ detect_tables == o.detect_tables
82
+ end
83
+
84
+ # @see the `==` method
85
+ # @param [Object] Object to be compared
86
+ def eql?(o)
87
+ self == o
88
+ end
89
+
90
+ # Calculates hash code according to all attributes.
91
+ # @return [Fixnum] Hash code
92
+ def hash
93
+ [detect_tables].hash
94
+ end
95
+ end
96
+ end
@@ -395,6 +395,7 @@ module AsposeSlidesCloud
395
395
  :'PathOutputFile' => { :'Type' => 'Path', },
396
396
  :'PatternFill' => { :'Type' => 'Pattern', },
397
397
  :'PdfExportOptions' => { :'Format' => 'pdf', },
398
+ :'PdfImportOptions' => { },
398
399
  :'PictureFill' => { :'Type' => 'Picture', },
399
400
  :'PictureFrame' => { :'Type' => 'PictureFrame', },
400
401
  :'Pipeline' => { },
@@ -21,5 +21,5 @@ SOFTWARE.
21
21
  =end
22
22
 
23
23
  module AsposeSlidesCloud
24
- VERSION = '24.4.0'
24
+ VERSION = '24.5.0'
25
25
  end
@@ -190,6 +190,7 @@ require 'aspose_slides_cloud/models/path_input_file'
190
190
  require 'aspose_slides_cloud/models/path_output_file'
191
191
  require 'aspose_slides_cloud/models/pattern_fill'
192
192
  require 'aspose_slides_cloud/models/pdf_export_options'
193
+ require 'aspose_slides_cloud/models/pdf_import_options'
193
194
  require 'aspose_slides_cloud/models/picture_fill'
194
195
  require 'aspose_slides_cloud/models/picture_frame'
195
196
  require 'aspose_slides_cloud/models/pipeline'
@@ -35775,6 +35775,7 @@ describe 'SlidesApi' do
35775
35775
  # @param name Document name.
35776
35776
  # @param pdf PDF data.
35777
35777
  # @param [Hash] opts the optional parameters
35778
+ # @option opts [PdfImportOptions] :options Import options.
35778
35779
  # @option opts [String] :password Document password.
35779
35780
  # @option opts [String] :folder Document folder.
35780
35781
  # @option opts [String] :storage Document storage.
@@ -35783,26 +35784,27 @@ describe 'SlidesApi' do
35783
35784
  it 'should work' do
35784
35785
  paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ImportFromPdf', 'String')
35785
35786
  parampdf = AsposeSlidesCloud::SpecUtils.get_param_value('pdf', 'ImportFromPdf', 'File')
35787
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'ImportFromPdf', 'PdfImportOptions')
35786
35788
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ImportFromPdf', 'String')
35787
35789
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ImportFromPdf', 'String')
35788
35790
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ImportFromPdf', 'String')
35789
35791
  AsposeSlidesCloud::SpecUtils.initialize('ImportFromPdf', nil, nil)
35790
- o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, parampassword, paramfolder, paramstorage)
35792
+ o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, paramoptions, parampassword, paramfolder, paramstorage)
35791
35793
  code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ImportFromPdf', nil, nil, nil)
35792
35794
  expect(c).to eq(code)
35793
- expect(o).not_to be_nil
35794
35795
  end
35795
35796
 
35796
35797
  it 'invalid name' do
35797
35798
  paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ImportFromPdf', 'String')
35798
35799
  parampdf = AsposeSlidesCloud::SpecUtils.get_param_value('pdf', 'ImportFromPdf', 'File')
35800
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'ImportFromPdf', 'PdfImportOptions')
35799
35801
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ImportFromPdf', 'String')
35800
35802
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ImportFromPdf', 'String')
35801
35803
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ImportFromPdf', 'String')
35802
35804
  paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'ImportFromPdf', paramname, 'String')
35803
35805
  AsposeSlidesCloud::SpecUtils.initialize('ImportFromPdf', 'name', paramname)
35804
35806
  begin
35805
- AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, parampassword, paramfolder, paramstorage)
35807
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, paramoptions, parampassword, paramfolder, paramstorage)
35806
35808
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ImportFromPdf', 'name')
35807
35809
  fail "An exception expected"
35808
35810
  end
@@ -35820,13 +35822,14 @@ describe 'SlidesApi' do
35820
35822
  it 'invalid pdf' do
35821
35823
  paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ImportFromPdf', 'String')
35822
35824
  parampdf = AsposeSlidesCloud::SpecUtils.get_param_value('pdf', 'ImportFromPdf', 'File')
35825
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'ImportFromPdf', 'PdfImportOptions')
35823
35826
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ImportFromPdf', 'String')
35824
35827
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ImportFromPdf', 'String')
35825
35828
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ImportFromPdf', 'String')
35826
35829
  parampdf = AsposeSlidesCloud::SpecUtils.invalidize_param_value('pdf', 'ImportFromPdf', parampdf, 'File')
35827
35830
  AsposeSlidesCloud::SpecUtils.initialize('ImportFromPdf', 'pdf', parampdf)
35828
35831
  begin
35829
- AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, parampassword, paramfolder, paramstorage)
35832
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, paramoptions, parampassword, paramfolder, paramstorage)
35830
35833
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ImportFromPdf', 'pdf')
35831
35834
  fail "An exception expected"
35832
35835
  end
@@ -35841,16 +35844,42 @@ describe 'SlidesApi' do
35841
35844
  end
35842
35845
  end
35843
35846
 
35847
+ it 'invalid options' do
35848
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ImportFromPdf', 'String')
35849
+ parampdf = AsposeSlidesCloud::SpecUtils.get_param_value('pdf', 'ImportFromPdf', 'File')
35850
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'ImportFromPdf', 'PdfImportOptions')
35851
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ImportFromPdf', 'String')
35852
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ImportFromPdf', 'String')
35853
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ImportFromPdf', 'String')
35854
+ paramoptions = AsposeSlidesCloud::SpecUtils.invalidize_param_value('options', 'ImportFromPdf', paramoptions, 'PdfImportOptions')
35855
+ AsposeSlidesCloud::SpecUtils.initialize('ImportFromPdf', 'options', paramoptions)
35856
+ begin
35857
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, paramoptions, parampassword, paramfolder, paramstorage)
35858
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ImportFromPdf', 'options')
35859
+ fail "An exception expected"
35860
+ end
35861
+ rescue AsposeSlidesCloud::ApiError => e
35862
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ImportFromPdf', 'options', paramoptions, 'PdfImportOptions')
35863
+ expect(e.code).to eq(code)
35864
+ expect(e.response_body).to include(message)
35865
+ rescue ArgumentError => e
35866
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ImportFromPdf', 'options', paramoptions, 'PdfImportOptions')
35867
+ expect(400).to eq(code)
35868
+ expect(e.message).to include(message)
35869
+ end
35870
+ end
35871
+
35844
35872
  it 'invalid password' do
35845
35873
  paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ImportFromPdf', 'String')
35846
35874
  parampdf = AsposeSlidesCloud::SpecUtils.get_param_value('pdf', 'ImportFromPdf', 'File')
35875
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'ImportFromPdf', 'PdfImportOptions')
35847
35876
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ImportFromPdf', 'String')
35848
35877
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ImportFromPdf', 'String')
35849
35878
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ImportFromPdf', 'String')
35850
35879
  parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'ImportFromPdf', parampassword, 'String')
35851
35880
  AsposeSlidesCloud::SpecUtils.initialize('ImportFromPdf', 'password', parampassword)
35852
35881
  begin
35853
- AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, parampassword, paramfolder, paramstorage)
35882
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, paramoptions, parampassword, paramfolder, paramstorage)
35854
35883
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ImportFromPdf', 'password')
35855
35884
  fail "An exception expected"
35856
35885
  end
@@ -35868,13 +35897,14 @@ describe 'SlidesApi' do
35868
35897
  it 'invalid folder' do
35869
35898
  paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ImportFromPdf', 'String')
35870
35899
  parampdf = AsposeSlidesCloud::SpecUtils.get_param_value('pdf', 'ImportFromPdf', 'File')
35900
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'ImportFromPdf', 'PdfImportOptions')
35871
35901
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ImportFromPdf', 'String')
35872
35902
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ImportFromPdf', 'String')
35873
35903
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ImportFromPdf', 'String')
35874
35904
  paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'ImportFromPdf', paramfolder, 'String')
35875
35905
  AsposeSlidesCloud::SpecUtils.initialize('ImportFromPdf', 'folder', paramfolder)
35876
35906
  begin
35877
- AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, parampassword, paramfolder, paramstorage)
35907
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, paramoptions, parampassword, paramfolder, paramstorage)
35878
35908
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ImportFromPdf', 'folder')
35879
35909
  fail "An exception expected"
35880
35910
  end
@@ -35892,13 +35922,14 @@ describe 'SlidesApi' do
35892
35922
  it 'invalid storage' do
35893
35923
  paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ImportFromPdf', 'String')
35894
35924
  parampdf = AsposeSlidesCloud::SpecUtils.get_param_value('pdf', 'ImportFromPdf', 'File')
35925
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'ImportFromPdf', 'PdfImportOptions')
35895
35926
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ImportFromPdf', 'String')
35896
35927
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ImportFromPdf', 'String')
35897
35928
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ImportFromPdf', 'String')
35898
35929
  paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'ImportFromPdf', paramstorage, 'String')
35899
35930
  AsposeSlidesCloud::SpecUtils.initialize('ImportFromPdf', 'storage', paramstorage)
35900
35931
  begin
35901
- AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, parampassword, paramfolder, paramstorage)
35932
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf_with_http_info(paramname, parampdf, paramoptions, parampassword, paramfolder, paramstorage)
35902
35933
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ImportFromPdf', 'storage')
35903
35934
  fail "An exception expected"
35904
35935
  end
@@ -32,6 +32,7 @@ describe 'UseCases' do
32
32
  configuration.app_sid = config["ClientId"]
33
33
  configuration.app_key = config["ClientSecret"]
34
34
  configuration.debugging = config["Debug"]
35
+ configuration.verify_ssl = !config["AllowInsecureRequests"]
35
36
  api = AsposeSlidesCloud::SlidesApi.new(configuration)
36
37
  o, c, _h = api.get_api_info_with_http_info
37
38
  expect(c).to eq(200)
@@ -46,6 +47,7 @@ describe 'UseCases' do
46
47
  configuration.app_sid = "invalid"
47
48
  configuration.app_key = config["ClientSecret"]
48
49
  configuration.debugging = config["Debug"]
50
+ configuration.verify_ssl = !config["AllowInsecureRequests"]
49
51
  api = AsposeSlidesCloud::SlidesApi.new(configuration)
50
52
  begin
51
53
  o, c, _h = api.get_api_info_with_http_info
@@ -64,6 +66,7 @@ describe 'UseCases' do
64
66
  configuration.app_sid = config["ClientId"]
65
67
  configuration.app_key = config["ClientSecret"]
66
68
  configuration.debugging = config["Debug"]
69
+ configuration.verify_ssl = !config["AllowInsecureRequests"]
67
70
  api = AsposeSlidesCloud::SlidesApi.new(configuration)
68
71
  api.get_api_info_with_http_info
69
72
  configuration.app_sid = "invalid"
@@ -82,6 +85,7 @@ describe 'UseCases' do
82
85
  configuration.app_key = config["ClientSecret"]
83
86
  configuration.access_token = "expired.token"
84
87
  configuration.debugging = config["Debug"]
88
+ configuration.verify_ssl = !config["AllowInsecureRequests"]
85
89
  api = AsposeSlidesCloud::SlidesApi.new(configuration)
86
90
  o, c, _h = api.get_api_info_with_http_info
87
91
  expect(c).to eq(200)
@@ -97,6 +101,7 @@ describe 'UseCases' do
97
101
  configuration.app_key = config["ClientSecret"]
98
102
  configuration.access_token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE2ODYzMzI5ODAsImV4cCI6MTY4NjQxOTM4MCwiaXNzIjoiaHR0cHM6Ly9hcGkuYXNwb3NlLmNsb3VkIiwiYXVkIjpbImh0dHBzOi8vYXBpLmFzcG9zZS5jbG91ZC9yZXNvdXJjZXMiLCJhcGkuYmlsbGluZyIsImFwaS5pZGVudGl0eSIsImFwaS5wcm9kdWN0cyIsImFwaS5zdG9yYWdlIl0sImNsaWVudF9pZCI6ImVhMTFkNzAwLWE3YjAtNDgwMi05YjFjLWRmYWVhNGI2OTA0YSIsImNsaWVudF9kZWZhdWx0X3N0b3JhZ2UiOiIyNDc5NjRmYy04MjIyLTQ4M2EtYmZmMS1kNTYxYzM5MjQ3ZWIiLCJjbGllbnRfaWRlbnRpdHlfdXNlcl9pZCI6Ijc2MjY4MiIsInNjb3BlIjpbImFwaS5iaWxsaW5nIiwiYXBpLmlkZW50aXR5IiwiYXBpLnByb2R1Y3RzIiwiYXBpLnN0b3JhZ2UiXX0.qGRwbpVQNJ7k09FF81bfknBd_9bERkProMukobxkAEzwIhIRSwCDvzgVhhUcA-OMr8s-49XLYtFb6ZtuDT2r3xDsYXWxwjYekFk4MZhEFKeIqLyI9-kSxanL7w4WoKkE_OAXHquChRJcsqz5vhKOOJ9swu4PS0TSRYHfkLFsLpZLXIV4X53Ear8vDosOfeZONq9QPCfikCi1ruSMa3OddD2WE17_V3FzzyuC7d3FQxRznFJhyWoKI2jvOw7a92KatWVt3I78fOl9M-3MkkHR1ip5CXp3arnn139i73D-TfXeRNcAU5UpAGfuYPbIDpTkJ-DirqYWO6I5S7JmchPl1A"
99
103
  configuration.debugging = config["Debug"]
104
+ configuration.verify_ssl = !config["AllowInsecureRequests"]
100
105
  api = AsposeSlidesCloud::SlidesApi.new(configuration)
101
106
  o, c, _h = api.get_api_info_with_http_info
102
107
  expect(c).to eq(200)
@@ -83,7 +83,7 @@ describe 'UseCases' do
83
83
  file_name = "test.pptx"
84
84
  AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_file(folder_name + "/" + file_name)
85
85
  source = File.binread("TestData/test.pdf")
86
- AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf(file_name, source, nil, folder_name)
86
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf(file_name, source, nil, nil, folder_name)
87
87
  end
88
88
 
89
89
  it 'append from PDF' do
@@ -93,7 +93,9 @@ describe 'UseCases' do
93
93
  AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
94
94
  slide_count = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_slides(file_name, password, folder_name).slide_list.length
95
95
  source = File.binread("TestData/test.pdf")
96
- AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf(file_name, source, password, folder_name)
96
+ options = AsposeSlidesCloud::PdfImportOptions.new
97
+ options.detect_tables = false
98
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf(file_name, source, options, password, folder_name)
97
99
  new_slide_count = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_slides(file_name, password, folder_name).slide_list.length
98
100
  expect(new_slide_count).to eq(slide_count + 4)
99
101
  end
@@ -39,8 +39,8 @@ describe 'UseCases' do
39
39
  dto.chart_type = "Line"
40
40
  dto.width = 400.0
41
41
  dto.height = 300.0
42
+ dto.has_title = true
42
43
  dto.title = AsposeSlidesCloud::ChartTitle.new
43
- dto.title.has_title = true
44
44
  dto.title.text = "MyTitle"
45
45
 
46
46
  category1 = AsposeSlidesCloud::ChartCategory.new
data/testConfig.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "BaseUrl" : "@base_url@",
5
5
  "AsyncBaseUrl" : "@async_base_url@",
6
6
  "AuthBaseUrl" : "@base_auth_url@",
7
- "Debug" : false
7
+ "Debug" : false,
8
+ "AllowInsecureRequests" : true
8
9
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_slides_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 24.4.0
4
+ version: 24.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Putrov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-07 00:00:00.000000000 Z
11
+ date: 2024-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -435,6 +435,7 @@ files:
435
435
  - lib/aspose_slides_cloud/models/path_segment.rb
436
436
  - lib/aspose_slides_cloud/models/pattern_fill.rb
437
437
  - lib/aspose_slides_cloud/models/pdf_export_options.rb
438
+ - lib/aspose_slides_cloud/models/pdf_import_options.rb
438
439
  - lib/aspose_slides_cloud/models/picture_fill.rb
439
440
  - lib/aspose_slides_cloud/models/picture_frame.rb
440
441
  - lib/aspose_slides_cloud/models/pipeline.rb