aspose_html_cloud 22.9.1 → 22.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aspose_html_cloud/api/html_api.rb +42 -49
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b84dff5e029232e46970d82ad5f3802ec49e338808ce8ba822668cc6a00fbacf
|
4
|
+
data.tar.gz: 475b5eaa882a5b97c44053f9d98853c6d49af395acedeee9dd96976499bfe81c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ab8fe2f13529a99780fb5f144f469232e6088019a1001f1f3b207a541091abbc82222b3ed1fc91ee28915349baef88568f4560a295d63af4ff8e63b26872024
|
7
|
+
data.tar.gz: fb4ba274dff2bc84934e3f6c9680e94fe94f2c71f3e6cdb9dc0e5ed7dbebf377c01cc442e544b5e92df76039ea6a2bd6002a633dca5cb78cf502e744d1d329a7
|
@@ -44,13 +44,12 @@ module AsposeHtml
|
|
44
44
|
# @param src Full path to source file.
|
45
45
|
# @param dst Full path to a result file (pdf, xps, docx, md, mhtml, jpeg, png, bmp, tiff, gif).
|
46
46
|
# @param [Hash] options the optional parameters
|
47
|
-
# @option options [
|
48
|
-
# @option
|
49
|
-
# @option
|
50
|
-
# @option
|
51
|
-
# @option
|
52
|
-
# @option
|
53
|
-
# @option opts [Integer] :resolution Resolution of resulting image.
|
47
|
+
# @option options [Double] :width Resulting width. For images in pixels, for PDF, XPS, DOCX in inches.
|
48
|
+
# @option options [Double] :height Resulting height. For images in pixels, for PDF, XPS, DOCX in inches.
|
49
|
+
# @option options [Double] :left_margin Left resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
50
|
+
# @option options [Double] :right_margin Right resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
51
|
+
# @option options [Double] :top_margin Top resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
52
|
+
# @option options [Double] :bottom_margin Bottom resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
54
53
|
# @return [ConversionResult] Result of conversion. See ConversionResult object.
|
55
54
|
def convert_local_to_local(src, dst, options = nil)
|
56
55
|
return convert(src, dst, true, true, false, options)
|
@@ -62,13 +61,12 @@ module AsposeHtml
|
|
62
61
|
# @param dst Full path to a result file (pdf, xps, docx, md, mhtml, jpeg, png, bmp, tiff, gif).
|
63
62
|
# @param storage Storage name. Default storage is nil.
|
64
63
|
# @param [Hash] options the optional parameters
|
65
|
-
# @option options [
|
66
|
-
# @option
|
67
|
-
# @option
|
68
|
-
# @option
|
69
|
-
# @option
|
70
|
-
# @option
|
71
|
-
# @option opts [Integer] :resolution Resolution of resulting image.
|
64
|
+
# @option options [Double] :width Resulting width. For images in pixels, for PDF, XPS, DOCX in inches.
|
65
|
+
# @option options [Double] :height Resulting height. For images in pixels, for PDF, XPS, DOCX in inches.
|
66
|
+
# @option options [Double] :left_margin Left resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
67
|
+
# @option options [Double] :right_margin Right resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
68
|
+
# @option options [Double] :top_margin Top resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
69
|
+
# @option options [Double] :bottom_margin Bottom resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
72
70
|
# @return [ConversionResult] Result of conversion. See ConversionResult object.
|
73
71
|
def convert_local_to_storage(src, dst, storage, options=nil)
|
74
72
|
return convert(src, dst, true, false, false, options, storage)
|
@@ -80,13 +78,12 @@ module AsposeHtml
|
|
80
78
|
# @param dst Full path to a result file (pdf, xps, docx, md, mhtml, jpeg, png, bmp, tiff, gif).
|
81
79
|
# @param storage Storage name. Default storage is nil.
|
82
80
|
# @param [Hash] options the optional parameters
|
83
|
-
# @option options [
|
84
|
-
# @option
|
85
|
-
# @option
|
86
|
-
# @option
|
87
|
-
# @option
|
88
|
-
# @option
|
89
|
-
# @option opts [Integer] :resolution Resolution of resulting image.
|
81
|
+
# @option options [Double] :width Resulting width. For images in pixels, for PDF, XPS, DOCX in inches.
|
82
|
+
# @option options [Double] :height Resulting height. For images in pixels, for PDF, XPS, DOCX in inches.
|
83
|
+
# @option options [Double] :left_margin Left resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
84
|
+
# @option options [Double] :right_margin Right resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
85
|
+
# @option options [Double] :top_margin Top resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
86
|
+
# @option options [Double] :bottom_margin Bottom resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
90
87
|
# @return [ConversionResult] Result of conversion. See ConversionResult object.
|
91
88
|
def convert_storage_to_local(src, dst, storage, options=nil)
|
92
89
|
return convert(src, dst, false, true, false, options, storage)
|
@@ -98,13 +95,12 @@ module AsposeHtml
|
|
98
95
|
# @param dst Full path to a result file (pdf, xps, docx, md, mhtml, jpeg, png, bmp, tiff, gif).
|
99
96
|
# @param storage Storage name. Default storage is nil.
|
100
97
|
# @param [Hash] options the optional parameters
|
101
|
-
# @option options [
|
102
|
-
# @option
|
103
|
-
# @option
|
104
|
-
# @option
|
105
|
-
# @option
|
106
|
-
# @option
|
107
|
-
# @option opts [Integer] :resolution Resolution of resulting image.
|
98
|
+
# @option options [Double] :width Resulting width. For images in pixels, for PDF, XPS, DOCX in inches.
|
99
|
+
# @option options [Double] :height Resulting height. For images in pixels, for PDF, XPS, DOCX in inches.
|
100
|
+
# @option options [Double] :left_margin Left resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
101
|
+
# @option options [Double] :right_margin Right resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
102
|
+
# @option options [Double] :top_margin Top resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
103
|
+
# @option options [Double] :bottom_margin Bottom resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
108
104
|
# @return [ConversionResult] Result of conversion. See ConversionResult object.
|
109
105
|
def convert_storage_to_storage(src, dst, storage, options=nil)
|
110
106
|
return convert(src, dst, false, false, false, options, storage)
|
@@ -115,13 +111,12 @@ module AsposeHtml
|
|
115
111
|
# @param src URI of the website.
|
116
112
|
# @param dst Full path to a result file (pdf, xps, docx, md, mhtml, jpeg, png, bmp, tiff, gif).
|
117
113
|
# @param [Hash] options the optional parameters
|
118
|
-
# @option options [
|
119
|
-
# @option
|
120
|
-
# @option
|
121
|
-
# @option
|
122
|
-
# @option
|
123
|
-
# @option
|
124
|
-
# @option opts [Integer] :resolution Resolution of resulting image.
|
114
|
+
# @option options [Double] :width Resulting width. For images in pixels, for PDF, XPS, DOCX in inches.
|
115
|
+
# @option options [Double] :height Resulting height. For images in pixels, for PDF, XPS, DOCX in inches.
|
116
|
+
# @option options [Double] :left_margin Left resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
117
|
+
# @option options [Double] :right_margin Right resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
118
|
+
# @option options [Double] :top_margin Top resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
119
|
+
# @option options [Double] :bottom_margin Bottom resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
125
120
|
# @return [ConversionResult] Result of conversion. See ConversionResult object.
|
126
121
|
def convert_url_to_local(src, dst, options=nil)
|
127
122
|
return convert(src, dst, false, true, true, options)
|
@@ -133,13 +128,12 @@ module AsposeHtml
|
|
133
128
|
# @param dst Full path to a result file (pdf, xps, docx, md, mhtml, jpeg, png, bmp, tiff, gif).
|
134
129
|
# @param storage Storage name. Default storage is nil.
|
135
130
|
# @param [Hash] options the optional parameters
|
136
|
-
# @option options [
|
137
|
-
# @option
|
138
|
-
# @option
|
139
|
-
# @option
|
140
|
-
# @option
|
141
|
-
# @option
|
142
|
-
# @option opts [Integer] :resolution Resolution of resulting image.
|
131
|
+
# @option options [Double] :width Resulting width. For images in pixels, for PDF, XPS, DOCX in inches.
|
132
|
+
# @option options [Double] :height Resulting height. For images in pixels, for PDF, XPS, DOCX in inches.
|
133
|
+
# @option options [Double] :left_margin Left resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
134
|
+
# @option options [Double] :right_margin Right resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
135
|
+
# @option options [Double] :top_margin Top resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
136
|
+
# @option options [Double] :bottom_margin Bottom resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
143
137
|
# @return [ConversionResult] Result of conversion. See ConversionResult object.
|
144
138
|
def convert_url_to_storage(src, dst, storage, options=nil)
|
145
139
|
return convert(src, dst, false, false, true, options, storage)
|
@@ -153,13 +147,12 @@ module AsposeHtml
|
|
153
147
|
# @param dst_in_local Flag, true if result in the local file.
|
154
148
|
# @param is_url Flag, true if source is website.
|
155
149
|
# @param [Hash] options the optional parameters
|
156
|
-
# @option options [
|
157
|
-
# @option
|
158
|
-
# @option
|
159
|
-
# @option
|
160
|
-
# @option
|
161
|
-
# @option
|
162
|
-
# @option opts [Integer] :resolution Resolution of resulting image.
|
150
|
+
# @option options [Double] :width Resulting width. For images in pixels, for PDF, XPS, DOCX in inches.
|
151
|
+
# @option options [Double] :height Resulting height. For images in pixels, for PDF, XPS, DOCX in inches.
|
152
|
+
# @option options [Double] :left_margin Left resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
153
|
+
# @option options [Double] :right_margin Right resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
154
|
+
# @option options [Double] :top_margin Top resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
155
|
+
# @option options [Double] :bottom_margin Bottom resulting margin. For images in pixels, for PDF, XPS, DOCX in inches.
|
163
156
|
# @param storage_name Storage name. Default storage is nil.
|
164
157
|
# @return [ConversionResult] Result of conversion. See ConversionResult object.
|
165
158
|
def convert(src, dst, src_in_local, dst_in_local, is_url, options=nil, storage_name=nil)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspose_html_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 22.
|
4
|
+
version: 22.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Makogon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|