aspose_slides_cloud 22.7.0 → 22.8.0

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_utils.rb CHANGED
@@ -71,7 +71,11 @@ module AsposeSlidesCloud
71
71
  if method.casecmp("ImportFromPdf") == 0
72
72
  fileName = "test.pdf"
73
73
  elsif name.casecmp("Image") == 0
74
- fileName = "watermark.png"
74
+ if method.casecmp("ImportShapesFromSvg") == 0
75
+ fileName = "shapes.svg"
76
+ else
77
+ fileName = "watermark.png"
78
+ end
75
79
  end
76
80
  return File.binread(File.join(TEST_DATA_PATH, fileName))
77
81
  end
@@ -165,7 +165,7 @@ describe 'UseCases' do
165
165
  dto.read_password = "newPassword"
166
166
  source = File.binread("TestData/test.pptx")
167
167
  result = AsposeSlidesCloud::SpecUtils.api.set_protection_online(source, dto, "password")
168
- expect(result.size).not_to eq(source.size)
168
+ expect(result.size).to be > 0
169
169
  end
170
170
 
171
171
  it 'protection unprotect online' do
data/testRules.json CHANGED
@@ -132,6 +132,8 @@
132
132
  { "Value": 1, "InvalidValue": 593, "Parameter": "CloneFromPosition" },
133
133
  { "Value": null, "InvalidValue": 593, "Parameter": "From" },
134
134
  { "Value": null, "InvalidValue": 593, "Parameter": "To" },
135
+ { "Value": 1, "InvalidValue": 593, "Parameter": "X" },
136
+ { "Value": 1, "InvalidValue": 593, "Parameter": "Y" },
135
137
  { "Value": "4/shapes", "Parameter": "Path" },
136
138
  { "Value": "6/shapes", "Parameter": "Path", "Method": "CreateSpecialSlideSubshape" },
137
139
  { "Value": "6/shapes", "Parameter": "Path", "Method": "CreateSpecialSlideSubshapeParagraph" },
@@ -161,6 +163,9 @@
161
163
  { "Value": "TempSlidesSDK", "Parameter": "Path", "Method": "DeleteFolder" },
162
164
  { "Value": "testProperty", "Parameter": "PropertyName" },
163
165
  { "Value": null, "Parameter": "Author" },
166
+ { "Value": "Arial", "Parameter": "FontName" },
167
+ { "Value": "Calibri", "Parameter": "FontName", "Method": "SetEmbeddedFont" },
168
+ { "Value": "Calibri", "Parameter": "FontName", "Method": "SetEmbeddedFontOnline" },
164
169
  { "InvalidValue": null, "Parameter": "Stream" },
165
170
  {
166
171
  "Value": "<staff><person><name>John Doe</name><address><line1>10 Downing Street</line1><line2>London</line2></address><phone>+457 123456</phone><bio>Hi, I'm John and this is my CV</bio><skills><skill><title>C#</title><level>Excellent</level></skill><skill><title>C++</title><level>Good</level></skill><skill><title>Java</title><level>Average</level></skill></skills></person></staff>",
@@ -266,6 +271,7 @@
266
271
  { "Value": null, "InvalidValue": false, "Parameter": "WithSlides" },
267
272
  { "Value": null, "InvalidValue": false, "Parameter": "AlignToSlide" },
268
273
  { "Value": null, "InvalidValue": false, "Parameter": "IgnorePreserveField" },
274
+ { "Value": null, "InvalidValue": false, "Parameter": "OnlyUsed" },
269
275
  { "Value": null, "InvalidValue": 593, "Parameter": "JpegQuality" },
270
276
  { "Value": null, "InvalidValue": 593.5, "Parameter": "ScaleX" },
271
277
  { "Value": null, "InvalidValue": 593.5, "Parameter": "ScaleY" },
@@ -281,6 +287,8 @@
281
287
  { "Parameter": "Height" },
282
288
  { "Parameter": "From" },
283
289
  { "Parameter": "To" },
290
+ { "Parameter": "X" },
291
+ { "Parameter": "Y" },
284
292
  { "Parameter": "PropertyName" },
285
293
  { "Parameter": "ScaleType" },
286
294
  { "Parameter": "SizeType" },
@@ -351,6 +359,9 @@
351
359
  { "Parameter": "Folder", "Method": "CreatePresentationFromSource" },
352
360
  { "Parameter": "Folder", "Method": "CreatePresentationFromTemplate" },
353
361
  { "Parameter": "Password", "Method": "CreatePresentation" },
362
+ { "Parameter": "Password", "Method": "CreateSlide" },
363
+ { "Parameter": "Password", "Method": "UpdateSlide" },
364
+ { "Parameter": "Password", "Method": "DeleteSlides" },
354
365
  { "Parameter": "Password", "Method": "ImportFromHtml" },
355
366
  { "Parameter": "Password", "Method": "CreatePresentationFromSource" },
356
367
  { "Parameter": "Password", "Method": "CreatePresentationFromTemplate" },
@@ -363,6 +374,7 @@
363
374
  { "Parameter": "AxisType" },
364
375
  { "Parameter": "ChartWallType" },
365
376
  { "Parameter": "AlignToSlide" },
377
+ { "Parameter": "OnlyUsed" },
366
378
  { "Method": "GetDiscUsage" },
367
379
  { "Method": "GetFilesList" },
368
380
  { "Method": "GetFileVersions" },
@@ -424,6 +436,7 @@
424
436
  { "Code": 404, "Message": "The storage %v was not found or is not associated with the application.", "Parameter": "TemplateStorage" },
425
437
  { "Code": 404, "Message": "The storage %v was not found or is not associated with the application.", "Parameter": "SourceStorage" },
426
438
  { "Code": 404, "Message": "Author with name %v not found", "Parameter": "Author" },
439
+ { "Message": " is not found ", "Parameter": "FontName" },
427
440
  { "Message": "Invalid password.", "Parameter": "Password" },
428
441
  { "Message": "Invalid password.", "Parameter": "CloneFromPassword" },
429
442
  { "Message": "Invalid password.", "Parameter": "SourcePassword" },
@@ -532,7 +545,9 @@
532
545
  { "Message": " required parameter", "Parameter": "Pdf" },
533
546
  { "Message": "Failed to load the presentation", "Parameter": "Request", "Method": "MergeOnline" },
534
547
  { "Message": "Failed to load the presentation", "Parameter": "Request", "Method": "MergeAndSaveOnline" },
535
- { "Message": "Image data is not found", "Parameter": "Image" },
548
+ { "Message": "The input data is not valid", "Parameter": "Image" },
549
+ { "Message": " required parameter", "Parameter": "Image", "Method": "ImportShapesFromSvg" },
550
+ { "Message": "Image expected", "Parameter": "Image", "Method": "CreateImageWatermark", "Language": "Python" },
536
551
  { "Message": " is out of bounds. Valid index range is between ", "Parameter": "Sections", "Method": "DeleteSections" },
537
552
  { "Message": "Layout slide DTO must be not null and contain", "Parameter": "SlideDTO", "Language": "Swift" },
538
553
  { "Message": "Object reference not set to an instance of an object.", "Parameter": "Bounds" },
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: 22.7.0
4
+ version: 22.8.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: 2022-07-29 00:00:00.000000000 Z
11
+ date: 2022-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -246,6 +246,7 @@ files:
246
246
  - TestData/TemplateCV.pptx
247
247
  - TestData/TemplatingCVDataWithBase64.xml
248
248
  - TestData/oleObject.xlsx
249
+ - TestData/shapes.svg
249
250
  - TestData/test-unprotected.pptx
250
251
  - TestData/test.pdf
251
252
  - TestData/test.pptx
@@ -326,9 +327,11 @@ files:
326
327
  - lib/aspose_slides_cloud/models/fill_format.rb
327
328
  - lib/aspose_slides_cloud/models/fill_overlay_effect.rb
328
329
  - lib/aspose_slides_cloud/models/fill_overlay_image_effect.rb
330
+ - lib/aspose_slides_cloud/models/font_data.rb
329
331
  - lib/aspose_slides_cloud/models/font_fallback_rule.rb
330
332
  - lib/aspose_slides_cloud/models/font_scheme.rb
331
333
  - lib/aspose_slides_cloud/models/font_set.rb
334
+ - lib/aspose_slides_cloud/models/fonts_data.rb
332
335
  - lib/aspose_slides_cloud/models/format_scheme.rb
333
336
  - lib/aspose_slides_cloud/models/fraction_element.rb
334
337
  - lib/aspose_slides_cloud/models/function_element.rb