aspose_slides_cloud 24.6.0 → 24.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -7
- data/README.md +20 -0
- data/TestData/pictureFrame.html +39 -0
- data/TestData/test.pptx +0 -0
- data/aspose_slides_cloud.gemspec +1 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +373 -210
- data/lib/aspose_slides_cloud/api/slides_async_api.rb +179 -8
- data/lib/aspose_slides_cloud/api_client.rb +3 -0
- data/lib/aspose_slides_cloud/models/document_property.rb +0 -5
- data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/export_options.rb +23 -1
- data/lib/aspose_slides_cloud/models/gif_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +0 -25
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +13 -2
- data/lib/aspose_slides_cloud/models/html_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/image_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/image_export_options_base.rb +2 -1
- data/lib/aspose_slides_cloud/models/markdown_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +0 -5
- data/lib/aspose_slides_cloud/models/operation.rb +3 -3
- data/lib/aspose_slides_cloud/models/operation_error.rb +121 -0
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +13 -2
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +26 -3
- data/lib/aspose_slides_cloud/models/protection_properties.rb +0 -10
- data/lib/aspose_slides_cloud/models/save.rb +2 -2
- data/lib/aspose_slides_cloud/models/save_slide.rb +2 -2
- data/lib/aspose_slides_cloud/models/slide.rb +0 -5
- data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/smart_art.rb +0 -5
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +0 -5
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/table.rb +12 -2
- data/lib/aspose_slides_cloud/models/table_cell.rb +11 -1
- data/lib/aspose_slides_cloud/models/table_cell_merge_options.rb +0 -5
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/video_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/xaml_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/type_registry.rb +1 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +1 -0
- data/spec/api/slides_api_spec.rb +1080 -757
- data/spec/api/slides_async_api_spec.rb +773 -0
- data/spec/use_cases/async_api_spec.rb +42 -0
- data/spec/use_cases/font_spec.rb +4 -4
- data/spec/use_cases/text_spec.rb +57 -9
- data/testRules.json +3 -0
- metadata +24 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e720369f0a944de500eaf21878cc35f1210b9de7a4e072c4ce889c4b41e22284
|
4
|
+
data.tar.gz: 62ac4b1964852dbf2b44480e75dba30e99b83c214a22d9eba36ddf0bc0742a31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ccbb6b1d18d40ef25da501d99710c4507fe17780bea0de697efb8097b6b0bda0d6072a1703a8b5f3e2f2c45bc2b0561a12a4e5fc422a01700ad96653e5b3b8b
|
7
|
+
data.tar.gz: 50dd76a96b948511e7ece0b6a609ccff79dc4170f5a5c4fc4a99185232a78bf43aabb1e8eead94c54684dfea1274aebf4981ce363c22307f7044ea4dff55a3eb
|
data/Gemfile.lock
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
aspose_slides_cloud (24.
|
4
|
+
aspose_slides_cloud (24.8.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)
|
8
8
|
json (~> 2.1, >= 2.1.0)
|
9
|
+
warning (~> 1.4, >= 1.4.0)
|
9
10
|
|
10
11
|
GEM
|
11
12
|
remote: https://rubygems.org/
|
12
13
|
specs:
|
13
|
-
ZenTest (4.12.
|
14
|
+
ZenTest (4.12.2)
|
14
15
|
addressable (2.8.7)
|
15
16
|
public_suffix (>= 2.0.2, < 7.0)
|
16
17
|
autotest (4.4.6)
|
@@ -40,18 +41,18 @@ GEM
|
|
40
41
|
faraday-httpclient (1.0.1)
|
41
42
|
faraday-multipart (1.0.4)
|
42
43
|
multipart-post (~> 2)
|
43
|
-
faraday-net_http (1.0.
|
44
|
+
faraday-net_http (1.0.2)
|
44
45
|
faraday-net_http_persistent (1.2.0)
|
45
46
|
faraday-patron (1.0.0)
|
46
47
|
faraday-rack (1.0.0)
|
47
48
|
faraday-retry (1.0.3)
|
48
|
-
hashdiff (1.1.
|
49
|
+
hashdiff (1.1.1)
|
49
50
|
httpclient (2.8.3)
|
50
51
|
json (2.7.2)
|
51
52
|
multipart-post (2.4.1)
|
52
|
-
public_suffix (6.0.
|
53
|
+
public_suffix (6.0.1)
|
53
54
|
rake (12.3.3)
|
54
|
-
rexml (3.3.
|
55
|
+
rexml (3.3.6)
|
55
56
|
strscan
|
56
57
|
rspec (3.13.0)
|
57
58
|
rspec-core (~> 3.13.0)
|
@@ -59,7 +60,7 @@ GEM
|
|
59
60
|
rspec-mocks (~> 3.13.0)
|
60
61
|
rspec-core (3.13.0)
|
61
62
|
rspec-support (~> 3.13.0)
|
62
|
-
rspec-expectations (3.13.
|
63
|
+
rspec-expectations (3.13.2)
|
63
64
|
diff-lcs (>= 1.2.0, < 2.0)
|
64
65
|
rspec-support (~> 3.13.0)
|
65
66
|
rspec-mocks (3.13.1)
|
@@ -72,6 +73,7 @@ GEM
|
|
72
73
|
rubyzip (2.3.2)
|
73
74
|
strscan (3.1.0)
|
74
75
|
vcr (3.0.3)
|
76
|
+
warning (1.4.0)
|
75
77
|
webmock (1.24.6)
|
76
78
|
addressable (>= 2.3.6)
|
77
79
|
crack (>= 0.3.2)
|
data/README.md
CHANGED
@@ -27,6 +27,26 @@ 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.8
|
31
|
+
|
32
|
+
* Added **StartSplit** and **StartUploadAndSplit** methods to async API.
|
33
|
+
* Added **ReplacePresentationRegex** and **ReplacePresentationRegexOnline** methods.
|
34
|
+
* Added **HighlightPresentationText** and **HighlightPresentationRegex** methods.
|
35
|
+
* Added **OperationError** class; changed **Operation**.**Error** property type from string to **OperationError**.
|
36
|
+
* Removed **wholeWordsOnly** parameter from **ReplaceShapeRegex** method.
|
37
|
+
|
38
|
+
## Enhancements in Version 24.7
|
39
|
+
|
40
|
+
* Added **TemplatesPath** property to **Html5ExportOptions** class. It enables using custom templates in conversion to Html5 format.
|
41
|
+
* Added **GetHtml5Templates** method to retrieve the list of default Html5 templates.
|
42
|
+
* Added **Xml** to the list of available export formats.
|
43
|
+
* Added **wholeWordsOnly** parameter to **ReplacePresentationText** and **ReplacePresentationTextOnline** methods.
|
44
|
+
* Added **GradientStyle** property to **ExportOptions** class.
|
45
|
+
* Added **ResterizeUnsupportedFontStyles** property to **PdfExportOptions** class.
|
46
|
+
* Added **Zip64Mode** property to **PptxExportOptions** class.
|
47
|
+
* Added **Transparency** property to **Table** and **TableCell** class.
|
48
|
+
* Removed obsolete **DownloadPortionsAsMathML**, **SavePortionsAsMathML** methods. Use **DownloadMathPortion** and **SaveMathPortion** methods to convert portions to math formats.
|
49
|
+
|
30
50
|
## Enhancements in Version 24.6
|
31
51
|
|
32
52
|
* Added **HideInk** and **InterpretMaskOpAsOpacity** properties to **PdfExportOptions** class.
|
@@ -0,0 +1,39 @@
|
|
1
|
+
@inherits RazorEngineCore.RazorEngineTemplateBase<TemplateContext<PictureFrame>>
|
2
|
+
|
3
|
+
@{
|
4
|
+
PictureFrame contextObject = Model.Object;
|
5
|
+
|
6
|
+
var origin = Model.Local.Get<Point>("origin");
|
7
|
+
|
8
|
+
string imgSrc = ImageHelper.GetImageURL(contextObject.PictureFormat.Picture.Image, Model);
|
9
|
+
imgSrc = ImageHelper.Crop(
|
10
|
+
imgSrc,
|
11
|
+
contextObject.PictureFormat.CropLeft,
|
12
|
+
contextObject.PictureFormat.CropTop,
|
13
|
+
contextObject.PictureFormat.CropRight,
|
14
|
+
contextObject.PictureFormat.CropBottom);
|
15
|
+
if (contextObject.PictureFormat.Picture.Image.ContentType == "image/tiff" && !Model.Global.Get<bool>("embedImages"))
|
16
|
+
{
|
17
|
+
ImageHelper.ConvertTiffToPng(contextObject.PictureFormat.Picture.Image, Model);
|
18
|
+
imgSrc += ".png";
|
19
|
+
}
|
20
|
+
|
21
|
+
string id = "slide-" + contextObject.Slide.SlideId + "-shape-" + contextObject.UniqueId;
|
22
|
+
string animationAttributes = "";
|
23
|
+
|
24
|
+
if (Model.Local.ContainsKey("animationAttributes"))
|
25
|
+
{
|
26
|
+
animationAttributes = Model.Local.Get<string>("animationAttributes");
|
27
|
+
}
|
28
|
+
string svgFilter = ImageHelper.CreateSvgFilter(contextObject, id + "-effect");
|
29
|
+
string filterStyle = string.IsNullOrEmpty(svgFilter) ? "" : "filter: url(#" + id + "-effect)";
|
30
|
+
}
|
31
|
+
@functions
|
32
|
+
{
|
33
|
+
string GetImagePositioningStyle(PictureFrame pictureFrame, Point origin)
|
34
|
+
{
|
35
|
+
return ImageHelper.GetImagePositioningStyle(pictureFrame, origin);
|
36
|
+
}
|
37
|
+
}
|
38
|
+
@Raw(svgFilter)
|
39
|
+
<img src="@imgSrc" id="@id" class="pictureframe" alt="@contextObject.AlternativeText" style="@GetImagePositioningStyle(contextObject, origin) @Raw(filterStyle)" @Raw(animationAttributes) />
|
data/TestData/test.pptx
CHANGED
Binary file
|
data/aspose_slides_cloud.gemspec
CHANGED
@@ -41,6 +41,7 @@ Gem::Specification.new do |s|
|
|
41
41
|
s.add_dependency 'faraday-httpclient', '~> 1.0', '>= 1.0.0'
|
42
42
|
s.add_dependency 'httpclient', '~> 2.2', '>= 2.2.0'
|
43
43
|
s.add_dependency 'json', '~> 2.1', '>= 2.1.0'
|
44
|
+
s.add_dependency 'warning', '~> 1.4', '>= 1.4.0'
|
44
45
|
|
45
46
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
46
47
|
s.add_development_dependency 'rspec_junit_formatter', '~> 0.5', '>= 0.5.1'
|