aspose_slides_cloud 24.4.0 → 24.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: e61ff5f495cbe4c321307a13c5c809dcdfb96c8eda780b87a3776a971360e23d
4
- data.tar.gz: 1044e26b099bf029fa81156fbbe1800768c14be8db6fec2e847c425746abc73b
3
+ metadata.gz: cdaa6c040b21535ad5fb6e5e9ab483cb9017cb461bd319de7a94da9cf91cf2bd
4
+ data.tar.gz: 3b2d955cba1a5433759fa911557165644022e5308324e91c31c9f8ab09ca7511
5
5
  SHA512:
6
- metadata.gz: 2aff2c067a72c77db7f8265ad0d1ab92658e3723873bfe9736d11c6ba03de8fdf40bd335fd56ebc1fe886987f928b8147c0669c220e9014c6bcf4f2f16031831
7
- data.tar.gz: ce6ddfc3d81ceb952f95f933a7cd179bf099bf7ca5c20e1906f5bf1e9ab5b4e362b2db1cfd1e101fda63ec98ff02ba4ccc2018d32eb071c50e0d7acbe7dfdcd9
6
+ metadata.gz: 9f86c0854b86e037a9b70b205541e7fcf16e43b6106e32a308462a0f22447e944cba2a13c59b8b3f23d2066502cb2a3f5326867f463830c4b253f93349f4e18c
7
+ data.tar.gz: e6e119d7abb5fe4ff63ef8d7ae3c05257f66d5666ca5b9c270798a1c8a9fd1d67f29c4ceca1bfbf4a7c1c1d32ded111f3a813d2cbe94d6d63c9d9c2fb17f7f55
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.6.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)
@@ -11,8 +11,8 @@ GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
13
  ZenTest (4.12.1)
14
- addressable (2.8.6)
15
- public_suffix (>= 2.0.2, < 6.0)
14
+ addressable (2.8.7)
15
+ public_suffix (>= 2.0.2, < 7.0)
16
16
  autotest (4.4.6)
17
17
  ZenTest (>= 4.4.1)
18
18
  autotest-growl (0.2.16)
@@ -49,19 +49,20 @@ GEM
49
49
  httpclient (2.8.3)
50
50
  json (2.7.2)
51
51
  multipart-post (2.4.1)
52
- public_suffix (5.0.5)
52
+ public_suffix (6.0.0)
53
53
  rake (12.3.3)
54
- rexml (3.2.6)
54
+ rexml (3.3.1)
55
+ strscan
55
56
  rspec (3.13.0)
56
57
  rspec-core (~> 3.13.0)
57
58
  rspec-expectations (~> 3.13.0)
58
59
  rspec-mocks (~> 3.13.0)
59
60
  rspec-core (3.13.0)
60
61
  rspec-support (~> 3.13.0)
61
- rspec-expectations (3.13.0)
62
+ rspec-expectations (3.13.1)
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,18 @@ 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.6
31
+
32
+ * Added **HideInk** and **InterpretMaskOpAsOpacity** properties to **PdfExportOptions** class.
33
+ * Removed **Enqueued** from the list of allowed values for **Operation.Status** property.
34
+
35
+ ## Enhancements in Version 24.5
36
+
37
+ * Added **options** parameter to **ImportFromPdf** method. You can specify **options.DetectTables** property to control import behavior.
38
+ * Added **Title** property to **Axis** class for charts.
39
+ * Added **X**, **Y**, **Width**, **Height**, **Overlay**, **FillFormat**, **EffectFormat** and **LineFormat** properties to **ChartTitle** class.
40
+ * Added **HasTitle** property to **Chart** class; removed **HasTitle** property from **ChartTitle** class.
41
+
30
42
  ## Enhancements in Version 24.4
31
43
 
32
44
  * 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 = []
@@ -57,7 +57,10 @@ module AsposeSlidesCloud
57
57
  def call_api(http_method, path, opts = {})
58
58
  response = call_api_method(http_method, path, opts)
59
59
  if @config.debugging
60
- @config.logger.debug "HTTP response\nHeaders: #{response.headers}\nStatus: #{response.status}\nBody: #{response.body}\n"
60
+ @config.logger.debug "HTTP response\nHeaders: #{response.headers}\nStatus: #{response.status}\n"
61
+ if response.headers.has_key?("Content-Type") && (response.headers["Content-Type"].include?("text") || response.headers["Content-Type"].include?("json"))
62
+ @config.logger.debug "Body: #{response.body}\n"
63
+ end
61
64
  end
62
65
 
63
66
  if (response.status == 401 || (response.status == 500 && response.body.length == 0)) and @config.access_token
@@ -75,7 +78,10 @@ module AsposeSlidesCloud
75
78
  def repeat_call_api(http_method, path, opts = {})
76
79
  response = call_api_method(http_method, path, opts)
77
80
  if @config.debugging
78
- @config.logger.debug "HTTP response\nHeaders: #{response.headers}\nStatus: #{response.status}\nBody: #{response.body}\n"
81
+ @config.logger.debug "HTTP response\nHeaders: #{response.headers}\nStatus: #{response.status}\n"
82
+ if response.headers.has_key?("Content-Type") && (response.headers["Content-Type"].include?("text") || response.headers["Content-Type"].include?("json"))
83
+ @config.logger.debug "Body: #{response.body}\n"
84
+ end
79
85
  end
80
86
 
81
87
  return process_response(response, opts)
@@ -157,7 +163,10 @@ module AsposeSlidesCloud
157
163
  req.body = build_request_body(req.headers, opts[:body], opts[:files])
158
164
  set_headers(req.headers)
159
165
  if @config.debugging
160
- @config.logger.debug "HTTP request\nMethod: #{req.method}\nPath: #{req.path}\nParams: #{req.params}\nHeaders: #{req.headers}\nBody: #{req.body}\n"
166
+ @config.logger.debug "HTTP request\nMethod: #{req.method}\nPath: #{req.path}\nParams: #{req.params}\nHeaders: #{req.headers}\n"
167
+ if (!req.headers.has_key?("Content-Type") || !req.headers["Content-Type"].include?("multipart")) && req.body
168
+ @config.logger.debug "Body: #{req.body}\n"
169
+ end
161
170
  end
162
171
  end
163
172
 
@@ -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
@@ -34,8 +34,6 @@ module AsposeSlidesCloud
34
34
 
35
35
  attr_accessor :created
36
36
 
37
- attr_accessor :enqueued
38
-
39
37
  attr_accessor :started
40
38
 
41
39
  attr_accessor :failed
@@ -54,7 +52,6 @@ module AsposeSlidesCloud
54
52
  :'status' => :'Status',
55
53
  :'progress' => :'Progress',
56
54
  :'created' => :'Created',
57
- :'enqueued' => :'Enqueued',
58
55
  :'started' => :'Started',
59
56
  :'failed' => :'Failed',
60
57
  :'canceled' => :'Canceled',
@@ -71,7 +68,6 @@ module AsposeSlidesCloud
71
68
  :'status' => :'String',
72
69
  :'progress' => :'OperationProgress',
73
70
  :'created' => :'DateTime',
74
- :'enqueued' => :'DateTime',
75
71
  :'started' => :'DateTime',
76
72
  :'failed' => :'DateTime',
77
73
  :'canceled' => :'DateTime',
@@ -108,10 +104,6 @@ module AsposeSlidesCloud
108
104
  self.created = attributes[:'Created']
109
105
  end
110
106
 
111
- if attributes.has_key?(:'Enqueued')
112
- self.enqueued = attributes[:'Enqueued']
113
- end
114
-
115
107
  if attributes.has_key?(:'Started')
116
108
  self.started = attributes[:'Started']
117
109
  end
@@ -195,7 +187,6 @@ module AsposeSlidesCloud
195
187
  status == o.status &&
196
188
  progress == o.progress &&
197
189
  created == o.created &&
198
- enqueued == o.enqueued &&
199
190
  started == o.started &&
200
191
  failed == o.failed &&
201
192
  canceled == o.canceled &&
@@ -212,7 +203,7 @@ module AsposeSlidesCloud
212
203
  # Calculates hash code according to all attributes.
213
204
  # @return [Fixnum] Hash code
214
205
  def hash
215
- [id, method, status, progress, created, enqueued, started, failed, canceled, finished, error].hash
206
+ [id, method, status, progress, created, started, failed, canceled, finished, error].hash
216
207
  end
217
208
  end
218
209
  end
@@ -70,6 +70,12 @@ module AsposeSlidesCloud
70
70
  # Access permissions that should be granted when the document is opened with user access. Default is AccessPermissions.None.
71
71
  attr_accessor :access_permissions
72
72
 
73
+ # True to hide Ink elements in exported document.
74
+ attr_accessor :hide_ink
75
+
76
+ # True to use ROP operation or Opacity for rendering brush.
77
+ attr_accessor :interpret_mask_op_as_opacity
78
+
73
79
  # Attribute mapping from ruby-style variable name to JSON key.
74
80
  def self.attribute_map
75
81
  super.merge({
@@ -88,6 +94,8 @@ module AsposeSlidesCloud
88
94
  :'image_transparent_color' => :'ImageTransparentColor',
89
95
  :'apply_image_transparent' => :'ApplyImageTransparent',
90
96
  :'access_permissions' => :'AccessPermissions',
97
+ :'hide_ink' => :'HideInk',
98
+ :'interpret_mask_op_as_opacity' => :'InterpretMaskOpAsOpacity',
91
99
  })
92
100
  end
93
101
 
@@ -109,6 +117,8 @@ module AsposeSlidesCloud
109
117
  :'image_transparent_color' => :'String',
110
118
  :'apply_image_transparent' => :'BOOLEAN',
111
119
  :'access_permissions' => :'AccessPermissions',
120
+ :'hide_ink' => :'BOOLEAN',
121
+ :'interpret_mask_op_as_opacity' => :'BOOLEAN',
112
122
  })
113
123
  end
114
124
 
@@ -178,6 +188,14 @@ module AsposeSlidesCloud
178
188
  if attributes.has_key?(:'AccessPermissions')
179
189
  self.access_permissions = attributes[:'AccessPermissions']
180
190
  end
191
+
192
+ if attributes.has_key?(:'HideInk')
193
+ self.hide_ink = attributes[:'HideInk']
194
+ end
195
+
196
+ if attributes.has_key?(:'InterpretMaskOpAsOpacity')
197
+ self.interpret_mask_op_as_opacity = attributes[:'InterpretMaskOpAsOpacity']
198
+ end
181
199
  self.format = 'pdf'
182
200
  end
183
201
 
@@ -242,7 +260,9 @@ module AsposeSlidesCloud
242
260
  slides_layout_options == o.slides_layout_options &&
243
261
  image_transparent_color == o.image_transparent_color &&
244
262
  apply_image_transparent == o.apply_image_transparent &&
245
- access_permissions == o.access_permissions
263
+ access_permissions == o.access_permissions &&
264
+ hide_ink == o.hide_ink &&
265
+ interpret_mask_op_as_opacity == o.interpret_mask_op_as_opacity
246
266
  end
247
267
 
248
268
  # @see the `==` method
@@ -254,7 +274,7 @@ module AsposeSlidesCloud
254
274
  # Calculates hash code according to all attributes.
255
275
  # @return [Fixnum] Hash code
256
276
  def hash
257
- [default_regular_font, font_fallback_rules, font_subst_rules, format, text_compression, embed_full_fonts, compliance, sufficient_resolution, jpeg_quality, draw_slides_frame, show_hidden_slides, save_metafiles_as_png, password, embed_true_type_fonts_for_ascii, additional_common_font_families, slides_layout_options, image_transparent_color, apply_image_transparent, access_permissions].hash
277
+ [default_regular_font, font_fallback_rules, font_subst_rules, format, text_compression, embed_full_fonts, compliance, sufficient_resolution, jpeg_quality, draw_slides_frame, show_hidden_slides, save_metafiles_as_png, password, embed_true_type_fonts_for_ascii, additional_common_font_families, slides_layout_options, image_transparent_color, apply_image_transparent, access_permissions, hide_ink, interpret_mask_op_as_opacity].hash
258
278
  end
259
279
  end
260
280
  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.6.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.6.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-06-25 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