aspose_slides_cloud 1.0.2 → 1.0.3
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb8ac1591a2d086634c3d2362b257cd2b4fa2486
|
4
|
+
data.tar.gz: 2d17eb23972c1a59d54eb8b0dcfffb36a798df74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5755dea08af1b2bec7a869b5050c2c65558900c87bee58c91022fe6e1a3c379b70224c18d606d34930b869c90bc4d57b372e61b36f815085002d46b17cbb0a7f
|
7
|
+
data.tar.gz: a4971b1d61527ca332328afa87746a18e5ff457cac5110e6776b3063bf69235ea8552d01b6928dc6745882d9f147e38cdda2cb3eaa433110abed8d98c3baf9e0
|
@@ -15,10 +15,11 @@ module AsposeSlidesCloud
|
|
15
15
|
# @option opts [String] :password The document password.
|
16
16
|
# @option opts [String] :format The format.
|
17
17
|
# @option opts [String] :out_path Path to save result
|
18
|
+
# @option opts [String] :fonts_folder The optional custom fonts folder.
|
18
19
|
# @return [File]
|
19
20
|
def put_slides_convert(file, opts = {})
|
20
21
|
if Configuration.debugging
|
21
|
-
Configuration.
|
22
|
+
Configuration.debugging "Calling API: SlidesApi#put_slides_convert ..."
|
22
23
|
end
|
23
24
|
|
24
25
|
# verify the required parameter 'file' is set
|
@@ -32,6 +33,7 @@ module AsposeSlidesCloud
|
|
32
33
|
query_params[:'password'] = opts[:'password'] if opts[:'password']
|
33
34
|
query_params[:'format'] = opts[:'format'] if opts[:'format']
|
34
35
|
query_params[:'outPath'] = opts[:'out_path'] if opts[:'out_path']
|
36
|
+
query_params[:'fontsFolder'] = opts[:'fonts_folder'] if opts[:'fonts_folder']
|
35
37
|
|
36
38
|
# header parameters
|
37
39
|
header_params = {}
|
@@ -53,17 +55,11 @@ module AsposeSlidesCloud
|
|
53
55
|
|
54
56
|
|
55
57
|
auth_names = []
|
56
|
-
result = @api_client.call_api(:PUT, path,
|
57
|
-
:header_params => header_params,
|
58
|
-
:query_params => query_params,
|
59
|
-
:form_params => form_params,
|
60
|
-
:body => post_body,
|
61
|
-
:auth_names => auth_names,
|
62
|
-
:return_type => 'File')
|
58
|
+
result = @api_client.call_api(:PUT, path, :query_params => query_params, :header_params => header_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'File')
|
63
59
|
if Configuration.debugging
|
64
60
|
Configuration.logger.debug "API called: SlidesApi#put_slides_convert. Result: #{result.inspect}"
|
65
61
|
end
|
66
|
-
|
62
|
+
result
|
67
63
|
end
|
68
64
|
|
69
65
|
# Get slides document in specified format
|
data/test/slides_tests.rb
CHANGED
@@ -24,12 +24,22 @@ class SlidesTests < Minitest::Test
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def test_put_slides_convert
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
file_name = "sample.pptx"
|
28
|
+
convert_to_format = "pdf"
|
29
|
+
|
30
|
+
response = @slides_api.put_slides_convert(File.open("../../../data/" << file_name,"r") { |io| io.read }, {format: convert_to_format})
|
30
31
|
assert(response, message="Failed to convert presentation from request content to format specified.")
|
31
32
|
end
|
32
33
|
|
34
|
+
def test_using_fontsLocation_parameter_to_specify_custom_fonts
|
35
|
+
file_name = "sample.pptx"
|
36
|
+
convert_to_format = "pdf"
|
37
|
+
fonts_folder = "fonts";
|
38
|
+
|
39
|
+
response = @slides_api.put_slides_convert(File.open("../../../data/" << file_name,"r") { |io| io.read }, {format: convert_to_format, fonts_folder: fonts_folder})
|
40
|
+
assert(response, message="Failed to convert presentation from request content to format specified using custom fonts.")
|
41
|
+
end
|
42
|
+
|
33
43
|
def test_get_slides_document_with_format
|
34
44
|
file_name = "sample.pptx"
|
35
45
|
upload_file(file_name)
|
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: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- M. Sohail Ismail
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
182
|
rubyforge_project:
|
183
|
-
rubygems_version: 2.6.
|
183
|
+
rubygems_version: 2.6.12
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: Aspose.Slides for Cloud
|