groupdocs_conversion_cloud 23.2 → 23.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/groupdocs_conversion_cloud/models/bmp_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/convert_options.rb +14 -4
- data/lib/groupdocs_conversion_cloud/models/dcm_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/djvu_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/dng_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/doc_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/docm_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/docx_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/dot_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/dotm_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/dotx_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/{xps_convert_options.rb → e_book_convert_options.rb} +84 -131
- data/lib/groupdocs_conversion_cloud/models/emf_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/gif_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/ico_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/image_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/j2c_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/j2k_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/jp2_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/jpeg_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/jpf_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/jpg_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/jpm_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/jpx_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/odg_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/odp_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/ods_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/odt_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/otp_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/ots_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/ott_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/pdf_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/{svg_convert_options.rb → pdl_convert_options.rb} +4 -79
- data/lib/groupdocs_conversion_cloud/models/png_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/potm_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/potx_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/pps_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/ppsm_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/ppsx_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/ppt_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/pptm_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/pptx_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/presentation_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/psd_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/rtf_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/spreadsheet_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/tif_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/tiff_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/tsv_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/txt_convert_options.rb +14 -4
- data/lib/groupdocs_conversion_cloud/models/{html_convert_options.rb → web_convert_options.rb} +16 -16
- data/lib/groupdocs_conversion_cloud/models/{html_load_options.rb → web_load_options.rb} +2 -2
- data/lib/groupdocs_conversion_cloud/models/webp_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/wmf_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/word_processing_convert_options.rb +11 -11
- data/lib/groupdocs_conversion_cloud/models/xls2003_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/xls_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/xlsb_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/xlsm_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/xlsx_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/xltm_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/models/xltx_convert_options.rb +14 -14
- data/lib/groupdocs_conversion_cloud/version.rb +1 -1
- data/lib/groupdocs_conversion_cloud.rb +4 -6
- metadata +6 -8
- data/lib/groupdocs_conversion_cloud/models/cgm_convert_options.rb +0 -458
- data/lib/groupdocs_conversion_cloud/models/epub_convert_options.rb +0 -386
@@ -40,6 +40,9 @@ module GroupDocsConversionCloud
|
|
40
40
|
# Convert specific pages. The list contains the page indexes of the pages to be converted
|
41
41
|
attr_accessor :pages
|
42
42
|
|
43
|
+
# Watermark specific options
|
44
|
+
attr_accessor :watermark_options
|
45
|
+
|
43
46
|
# Desired image width after conversion
|
44
47
|
attr_accessor :width
|
45
48
|
|
@@ -61,9 +64,6 @@ module GroupDocsConversionCloud
|
|
61
64
|
# If true, the input firstly is converted to PDF and after that to desired format
|
62
65
|
attr_accessor :use_pdf
|
63
66
|
|
64
|
-
# Watermark specific options
|
65
|
-
attr_accessor :watermark_options
|
66
|
-
|
67
67
|
# Adjust image brightness
|
68
68
|
attr_accessor :brightness
|
69
69
|
|
@@ -106,6 +106,7 @@ module GroupDocsConversionCloud
|
|
106
106
|
:'from_page' => :'FromPage',
|
107
107
|
:'pages_count' => :'PagesCount',
|
108
108
|
:'pages' => :'Pages',
|
109
|
+
:'watermark_options' => :'WatermarkOptions',
|
109
110
|
:'width' => :'Width',
|
110
111
|
:'height' => :'Height',
|
111
112
|
:'horizontal_resolution' => :'HorizontalResolution',
|
@@ -113,7 +114,6 @@ module GroupDocsConversionCloud
|
|
113
114
|
:'grayscale' => :'Grayscale',
|
114
115
|
:'rotate_angle' => :'RotateAngle',
|
115
116
|
:'use_pdf' => :'UsePdf',
|
116
|
-
:'watermark_options' => :'WatermarkOptions',
|
117
117
|
:'brightness' => :'Brightness',
|
118
118
|
:'contrast' => :'Contrast',
|
119
119
|
:'gamma' => :'Gamma',
|
@@ -128,6 +128,7 @@ module GroupDocsConversionCloud
|
|
128
128
|
:'from_page' => :'Integer',
|
129
129
|
:'pages_count' => :'Integer',
|
130
130
|
:'pages' => :'Array<Integer>',
|
131
|
+
:'watermark_options' => :'WatermarkOptions',
|
131
132
|
:'width' => :'Integer',
|
132
133
|
:'height' => :'Integer',
|
133
134
|
:'horizontal_resolution' => :'Integer',
|
@@ -135,7 +136,6 @@ module GroupDocsConversionCloud
|
|
135
136
|
:'grayscale' => :'BOOLEAN',
|
136
137
|
:'rotate_angle' => :'Integer',
|
137
138
|
:'use_pdf' => :'BOOLEAN',
|
138
|
-
:'watermark_options' => :'WatermarkOptions',
|
139
139
|
:'brightness' => :'Integer',
|
140
140
|
:'contrast' => :'Integer',
|
141
141
|
:'gamma' => :'Float',
|
@@ -166,6 +166,10 @@ module GroupDocsConversionCloud
|
|
166
166
|
end
|
167
167
|
end
|
168
168
|
|
169
|
+
if attributes.key?(:'WatermarkOptions')
|
170
|
+
self.watermark_options = attributes[:'WatermarkOptions']
|
171
|
+
end
|
172
|
+
|
169
173
|
if attributes.key?(:'Width')
|
170
174
|
self.width = attributes[:'Width']
|
171
175
|
end
|
@@ -194,10 +198,6 @@ module GroupDocsConversionCloud
|
|
194
198
|
self.use_pdf = attributes[:'UsePdf']
|
195
199
|
end
|
196
200
|
|
197
|
-
if attributes.key?(:'WatermarkOptions')
|
198
|
-
self.watermark_options = attributes[:'WatermarkOptions']
|
199
|
-
end
|
200
|
-
|
201
201
|
if attributes.key?(:'Brightness')
|
202
202
|
self.brightness = attributes[:'Brightness']
|
203
203
|
end
|
@@ -338,6 +338,7 @@ module GroupDocsConversionCloud
|
|
338
338
|
from_page == other.from_page &&
|
339
339
|
pages_count == other.pages_count &&
|
340
340
|
pages == other.pages &&
|
341
|
+
watermark_options == other.watermark_options &&
|
341
342
|
width == other.width &&
|
342
343
|
height == other.height &&
|
343
344
|
horizontal_resolution == other.horizontal_resolution &&
|
@@ -345,7 +346,6 @@ module GroupDocsConversionCloud
|
|
345
346
|
grayscale == other.grayscale &&
|
346
347
|
rotate_angle == other.rotate_angle &&
|
347
348
|
use_pdf == other.use_pdf &&
|
348
|
-
watermark_options == other.watermark_options &&
|
349
349
|
brightness == other.brightness &&
|
350
350
|
contrast == other.contrast &&
|
351
351
|
gamma == other.gamma &&
|
@@ -362,7 +362,7 @@ module GroupDocsConversionCloud
|
|
362
362
|
# Calculates hash code according to all attributes.
|
363
363
|
# @return [Fixnum] Hash code
|
364
364
|
def hash
|
365
|
-
[from_page, pages_count, pages, width, height, horizontal_resolution, vertical_resolution, grayscale, rotate_angle, use_pdf,
|
365
|
+
[from_page, pages_count, pages, watermark_options, width, height, horizontal_resolution, vertical_resolution, grayscale, rotate_angle, use_pdf, brightness, contrast, gamma, flip_mode, compression].hash
|
366
366
|
end
|
367
367
|
|
368
368
|
# Downcases first letter.
|
@@ -40,6 +40,9 @@ module GroupDocsConversionCloud
|
|
40
40
|
# Convert specific pages. The list contains the page indexes of the pages to be converted
|
41
41
|
attr_accessor :pages
|
42
42
|
|
43
|
+
# Watermark specific options
|
44
|
+
attr_accessor :watermark_options
|
45
|
+
|
43
46
|
# Desired image width after conversion
|
44
47
|
attr_accessor :width
|
45
48
|
|
@@ -61,9 +64,6 @@ module GroupDocsConversionCloud
|
|
61
64
|
# If true, the input firstly is converted to PDF and after that to desired format
|
62
65
|
attr_accessor :use_pdf
|
63
66
|
|
64
|
-
# Watermark specific options
|
65
|
-
attr_accessor :watermark_options
|
66
|
-
|
67
67
|
# Adjust image brightness
|
68
68
|
attr_accessor :brightness
|
69
69
|
|
@@ -106,6 +106,7 @@ module GroupDocsConversionCloud
|
|
106
106
|
:'from_page' => :'FromPage',
|
107
107
|
:'pages_count' => :'PagesCount',
|
108
108
|
:'pages' => :'Pages',
|
109
|
+
:'watermark_options' => :'WatermarkOptions',
|
109
110
|
:'width' => :'Width',
|
110
111
|
:'height' => :'Height',
|
111
112
|
:'horizontal_resolution' => :'HorizontalResolution',
|
@@ -113,7 +114,6 @@ module GroupDocsConversionCloud
|
|
113
114
|
:'grayscale' => :'Grayscale',
|
114
115
|
:'rotate_angle' => :'RotateAngle',
|
115
116
|
:'use_pdf' => :'UsePdf',
|
116
|
-
:'watermark_options' => :'WatermarkOptions',
|
117
117
|
:'brightness' => :'Brightness',
|
118
118
|
:'contrast' => :'Contrast',
|
119
119
|
:'gamma' => :'Gamma',
|
@@ -128,6 +128,7 @@ module GroupDocsConversionCloud
|
|
128
128
|
:'from_page' => :'Integer',
|
129
129
|
:'pages_count' => :'Integer',
|
130
130
|
:'pages' => :'Array<Integer>',
|
131
|
+
:'watermark_options' => :'WatermarkOptions',
|
131
132
|
:'width' => :'Integer',
|
132
133
|
:'height' => :'Integer',
|
133
134
|
:'horizontal_resolution' => :'Integer',
|
@@ -135,7 +136,6 @@ module GroupDocsConversionCloud
|
|
135
136
|
:'grayscale' => :'BOOLEAN',
|
136
137
|
:'rotate_angle' => :'Integer',
|
137
138
|
:'use_pdf' => :'BOOLEAN',
|
138
|
-
:'watermark_options' => :'WatermarkOptions',
|
139
139
|
:'brightness' => :'Integer',
|
140
140
|
:'contrast' => :'Integer',
|
141
141
|
:'gamma' => :'Float',
|
@@ -166,6 +166,10 @@ module GroupDocsConversionCloud
|
|
166
166
|
end
|
167
167
|
end
|
168
168
|
|
169
|
+
if attributes.key?(:'WatermarkOptions')
|
170
|
+
self.watermark_options = attributes[:'WatermarkOptions']
|
171
|
+
end
|
172
|
+
|
169
173
|
if attributes.key?(:'Width')
|
170
174
|
self.width = attributes[:'Width']
|
171
175
|
end
|
@@ -194,10 +198,6 @@ module GroupDocsConversionCloud
|
|
194
198
|
self.use_pdf = attributes[:'UsePdf']
|
195
199
|
end
|
196
200
|
|
197
|
-
if attributes.key?(:'WatermarkOptions')
|
198
|
-
self.watermark_options = attributes[:'WatermarkOptions']
|
199
|
-
end
|
200
|
-
|
201
201
|
if attributes.key?(:'Brightness')
|
202
202
|
self.brightness = attributes[:'Brightness']
|
203
203
|
end
|
@@ -338,6 +338,7 @@ module GroupDocsConversionCloud
|
|
338
338
|
from_page == other.from_page &&
|
339
339
|
pages_count == other.pages_count &&
|
340
340
|
pages == other.pages &&
|
341
|
+
watermark_options == other.watermark_options &&
|
341
342
|
width == other.width &&
|
342
343
|
height == other.height &&
|
343
344
|
horizontal_resolution == other.horizontal_resolution &&
|
@@ -345,7 +346,6 @@ module GroupDocsConversionCloud
|
|
345
346
|
grayscale == other.grayscale &&
|
346
347
|
rotate_angle == other.rotate_angle &&
|
347
348
|
use_pdf == other.use_pdf &&
|
348
|
-
watermark_options == other.watermark_options &&
|
349
349
|
brightness == other.brightness &&
|
350
350
|
contrast == other.contrast &&
|
351
351
|
gamma == other.gamma &&
|
@@ -362,7 +362,7 @@ module GroupDocsConversionCloud
|
|
362
362
|
# Calculates hash code according to all attributes.
|
363
363
|
# @return [Fixnum] Hash code
|
364
364
|
def hash
|
365
|
-
[from_page, pages_count, pages, width, height, horizontal_resolution, vertical_resolution, grayscale, rotate_angle, use_pdf,
|
365
|
+
[from_page, pages_count, pages, watermark_options, width, height, horizontal_resolution, vertical_resolution, grayscale, rotate_angle, use_pdf, brightness, contrast, gamma, flip_mode, compression].hash
|
366
366
|
end
|
367
367
|
|
368
368
|
# Downcases first letter.
|
@@ -40,6 +40,9 @@ module GroupDocsConversionCloud
|
|
40
40
|
# Convert specific pages. The list contains the page indexes of the pages to be converted
|
41
41
|
attr_accessor :pages
|
42
42
|
|
43
|
+
# Watermark specific options
|
44
|
+
attr_accessor :watermark_options
|
45
|
+
|
43
46
|
# Set this property if you want to protect the converted document with a password
|
44
47
|
attr_accessor :password
|
45
48
|
|
@@ -49,19 +52,16 @@ module GroupDocsConversionCloud
|
|
49
52
|
# If true, the input firstly is converted to PDF and after that to desired format
|
50
53
|
attr_accessor :use_pdf
|
51
54
|
|
52
|
-
# Watermark specific options
|
53
|
-
attr_accessor :watermark_options
|
54
|
-
|
55
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
56
56
|
def self.attribute_map
|
57
57
|
{
|
58
58
|
:'from_page' => :'FromPage',
|
59
59
|
:'pages_count' => :'PagesCount',
|
60
60
|
:'pages' => :'Pages',
|
61
|
+
:'watermark_options' => :'WatermarkOptions',
|
61
62
|
:'password' => :'Password',
|
62
63
|
:'zoom' => :'Zoom',
|
63
|
-
:'use_pdf' => :'UsePdf'
|
64
|
-
:'watermark_options' => :'WatermarkOptions'
|
64
|
+
:'use_pdf' => :'UsePdf'
|
65
65
|
}
|
66
66
|
end
|
67
67
|
|
@@ -71,10 +71,10 @@ module GroupDocsConversionCloud
|
|
71
71
|
:'from_page' => :'Integer',
|
72
72
|
:'pages_count' => :'Integer',
|
73
73
|
:'pages' => :'Array<Integer>',
|
74
|
+
:'watermark_options' => :'WatermarkOptions',
|
74
75
|
:'password' => :'String',
|
75
76
|
:'zoom' => :'Integer',
|
76
|
-
:'use_pdf' => :'BOOLEAN'
|
77
|
-
:'watermark_options' => :'WatermarkOptions'
|
77
|
+
:'use_pdf' => :'BOOLEAN'
|
78
78
|
}
|
79
79
|
end
|
80
80
|
|
@@ -100,6 +100,10 @@ module GroupDocsConversionCloud
|
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
103
|
+
if attributes.key?(:'WatermarkOptions')
|
104
|
+
self.watermark_options = attributes[:'WatermarkOptions']
|
105
|
+
end
|
106
|
+
|
103
107
|
if attributes.key?(:'Password')
|
104
108
|
self.password = attributes[:'Password']
|
105
109
|
end
|
@@ -112,10 +116,6 @@ module GroupDocsConversionCloud
|
|
112
116
|
self.use_pdf = attributes[:'UsePdf']
|
113
117
|
end
|
114
118
|
|
115
|
-
if attributes.key?(:'WatermarkOptions')
|
116
|
-
self.watermark_options = attributes[:'WatermarkOptions']
|
117
|
-
end
|
118
|
-
|
119
119
|
end
|
120
120
|
|
121
121
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -159,10 +159,10 @@ module GroupDocsConversionCloud
|
|
159
159
|
from_page == other.from_page &&
|
160
160
|
pages_count == other.pages_count &&
|
161
161
|
pages == other.pages &&
|
162
|
+
watermark_options == other.watermark_options &&
|
162
163
|
password == other.password &&
|
163
164
|
zoom == other.zoom &&
|
164
|
-
use_pdf == other.use_pdf
|
165
|
-
watermark_options == other.watermark_options
|
165
|
+
use_pdf == other.use_pdf
|
166
166
|
end
|
167
167
|
|
168
168
|
# @see the `==` method
|
@@ -174,7 +174,7 @@ module GroupDocsConversionCloud
|
|
174
174
|
# Calculates hash code according to all attributes.
|
175
175
|
# @return [Fixnum] Hash code
|
176
176
|
def hash
|
177
|
-
[from_page, pages_count, pages, password, zoom, use_pdf
|
177
|
+
[from_page, pages_count, pages, watermark_options, password, zoom, use_pdf].hash
|
178
178
|
end
|
179
179
|
|
180
180
|
# Downcases first letter.
|
@@ -40,12 +40,16 @@ module GroupDocsConversionCloud
|
|
40
40
|
# Convert specific pages. The list contains the page indexes of the pages to be converted
|
41
41
|
attr_accessor :pages
|
42
42
|
|
43
|
+
# Watermark specific options
|
44
|
+
attr_accessor :watermark_options
|
45
|
+
|
43
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
47
|
def self.attribute_map
|
45
48
|
{
|
46
49
|
:'from_page' => :'FromPage',
|
47
50
|
:'pages_count' => :'PagesCount',
|
48
|
-
:'pages' => :'Pages'
|
51
|
+
:'pages' => :'Pages',
|
52
|
+
:'watermark_options' => :'WatermarkOptions'
|
49
53
|
}
|
50
54
|
end
|
51
55
|
|
@@ -54,7 +58,8 @@ module GroupDocsConversionCloud
|
|
54
58
|
{
|
55
59
|
:'from_page' => :'Integer',
|
56
60
|
:'pages_count' => :'Integer',
|
57
|
-
:'pages' => :'Array<Integer>'
|
61
|
+
:'pages' => :'Array<Integer>',
|
62
|
+
:'watermark_options' => :'WatermarkOptions'
|
58
63
|
}
|
59
64
|
end
|
60
65
|
|
@@ -80,6 +85,10 @@ module GroupDocsConversionCloud
|
|
80
85
|
end
|
81
86
|
end
|
82
87
|
|
88
|
+
if attributes.key?(:'WatermarkOptions')
|
89
|
+
self.watermark_options = attributes[:'WatermarkOptions']
|
90
|
+
end
|
91
|
+
|
83
92
|
end
|
84
93
|
|
85
94
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -112,7 +121,8 @@ module GroupDocsConversionCloud
|
|
112
121
|
self.class == other.class &&
|
113
122
|
from_page == other.from_page &&
|
114
123
|
pages_count == other.pages_count &&
|
115
|
-
pages == other.pages
|
124
|
+
pages == other.pages &&
|
125
|
+
watermark_options == other.watermark_options
|
116
126
|
end
|
117
127
|
|
118
128
|
# @see the `==` method
|
@@ -124,7 +134,7 @@ module GroupDocsConversionCloud
|
|
124
134
|
# Calculates hash code according to all attributes.
|
125
135
|
# @return [Fixnum] Hash code
|
126
136
|
def hash
|
127
|
-
[from_page, pages_count, pages].hash
|
137
|
+
[from_page, pages_count, pages, watermark_options].hash
|
128
138
|
end
|
129
139
|
|
130
140
|
# Downcases first letter.
|
data/lib/groupdocs_conversion_cloud/models/{html_convert_options.rb → web_convert_options.rb}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
|
-
# <copyright company="Aspose Pty Ltd" file="
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="web_convert_options.rb">
|
4
4
|
# Copyright (c) 2003-2023 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
@@ -29,7 +29,7 @@ require 'date'
|
|
29
29
|
|
30
30
|
module GroupDocsConversionCloud
|
31
31
|
# Options for to Html conversion
|
32
|
-
class
|
32
|
+
class WebConvertOptions
|
33
33
|
|
34
34
|
# Start conversion from FromPage page
|
35
35
|
attr_accessor :from_page
|
@@ -40,6 +40,9 @@ module GroupDocsConversionCloud
|
|
40
40
|
# Convert specific pages. The list contains the page indexes of the pages to be converted
|
41
41
|
attr_accessor :pages
|
42
42
|
|
43
|
+
# Watermark specific options
|
44
|
+
attr_accessor :watermark_options
|
45
|
+
|
43
46
|
# If true, the input firstly is converted to PDF and after that to desired format
|
44
47
|
attr_accessor :use_pdf
|
45
48
|
|
@@ -52,20 +55,17 @@ module GroupDocsConversionCloud
|
|
52
55
|
# Specifies the zoom level in percentage. Default is 100.
|
53
56
|
attr_accessor :zoom
|
54
57
|
|
55
|
-
# Watermark specific options
|
56
|
-
attr_accessor :watermark_options
|
57
|
-
|
58
58
|
# Attribute mapping from ruby-style variable name to JSON key.
|
59
59
|
def self.attribute_map
|
60
60
|
{
|
61
61
|
:'from_page' => :'FromPage',
|
62
62
|
:'pages_count' => :'PagesCount',
|
63
63
|
:'pages' => :'Pages',
|
64
|
+
:'watermark_options' => :'WatermarkOptions',
|
64
65
|
:'use_pdf' => :'UsePdf',
|
65
66
|
:'fixed_layout' => :'FixedLayout',
|
66
67
|
:'fixed_layout_show_borders' => :'FixedLayoutShowBorders',
|
67
|
-
:'zoom' => :'Zoom'
|
68
|
-
:'watermark_options' => :'WatermarkOptions'
|
68
|
+
:'zoom' => :'Zoom'
|
69
69
|
}
|
70
70
|
end
|
71
71
|
|
@@ -75,11 +75,11 @@ module GroupDocsConversionCloud
|
|
75
75
|
:'from_page' => :'Integer',
|
76
76
|
:'pages_count' => :'Integer',
|
77
77
|
:'pages' => :'Array<Integer>',
|
78
|
+
:'watermark_options' => :'WatermarkOptions',
|
78
79
|
:'use_pdf' => :'BOOLEAN',
|
79
80
|
:'fixed_layout' => :'BOOLEAN',
|
80
81
|
:'fixed_layout_show_borders' => :'BOOLEAN',
|
81
|
-
:'zoom' => :'Integer'
|
82
|
-
:'watermark_options' => :'WatermarkOptions'
|
82
|
+
:'zoom' => :'Integer'
|
83
83
|
}
|
84
84
|
end
|
85
85
|
|
@@ -105,6 +105,10 @@ module GroupDocsConversionCloud
|
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
108
|
+
if attributes.key?(:'WatermarkOptions')
|
109
|
+
self.watermark_options = attributes[:'WatermarkOptions']
|
110
|
+
end
|
111
|
+
|
108
112
|
if attributes.key?(:'UsePdf')
|
109
113
|
self.use_pdf = attributes[:'UsePdf']
|
110
114
|
end
|
@@ -121,10 +125,6 @@ module GroupDocsConversionCloud
|
|
121
125
|
self.zoom = attributes[:'Zoom']
|
122
126
|
end
|
123
127
|
|
124
|
-
if attributes.key?(:'WatermarkOptions')
|
125
|
-
self.watermark_options = attributes[:'WatermarkOptions']
|
126
|
-
end
|
127
|
-
|
128
128
|
end
|
129
129
|
|
130
130
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -178,11 +178,11 @@ module GroupDocsConversionCloud
|
|
178
178
|
from_page == other.from_page &&
|
179
179
|
pages_count == other.pages_count &&
|
180
180
|
pages == other.pages &&
|
181
|
+
watermark_options == other.watermark_options &&
|
181
182
|
use_pdf == other.use_pdf &&
|
182
183
|
fixed_layout == other.fixed_layout &&
|
183
184
|
fixed_layout_show_borders == other.fixed_layout_show_borders &&
|
184
|
-
zoom == other.zoom
|
185
|
-
watermark_options == other.watermark_options
|
185
|
+
zoom == other.zoom
|
186
186
|
end
|
187
187
|
|
188
188
|
# @see the `==` method
|
@@ -194,7 +194,7 @@ module GroupDocsConversionCloud
|
|
194
194
|
# Calculates hash code according to all attributes.
|
195
195
|
# @return [Fixnum] Hash code
|
196
196
|
def hash
|
197
|
-
[from_page, pages_count, pages, use_pdf, fixed_layout, fixed_layout_show_borders, zoom
|
197
|
+
[from_page, pages_count, pages, watermark_options, use_pdf, fixed_layout, fixed_layout_show_borders, zoom].hash
|
198
198
|
end
|
199
199
|
|
200
200
|
# Downcases first letter.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
|
-
# <copyright company="Aspose Pty Ltd" file="
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="web_load_options.rb">
|
4
4
|
# Copyright (c) 2003-2023 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
@@ -29,7 +29,7 @@ require 'date'
|
|
29
29
|
|
30
30
|
module GroupDocsConversionCloud
|
31
31
|
# Html document load options
|
32
|
-
class
|
32
|
+
class WebLoadOptions
|
33
33
|
|
34
34
|
# The format of input file, (\"docx\", for example). This field must be filled with correct input file format when using ConvertDirect method, which accept input file as binary stream, and, because of that, API can correctly handle LoadOptions. In regular conversion, the input file format taken from the input file name and this field ignored.
|
35
35
|
attr_accessor :format
|
@@ -40,6 +40,9 @@ module GroupDocsConversionCloud
|
|
40
40
|
# Convert specific pages. The list contains the page indexes of the pages to be converted
|
41
41
|
attr_accessor :pages
|
42
42
|
|
43
|
+
# Watermark specific options
|
44
|
+
attr_accessor :watermark_options
|
45
|
+
|
43
46
|
# Desired image width after conversion
|
44
47
|
attr_accessor :width
|
45
48
|
|
@@ -61,9 +64,6 @@ module GroupDocsConversionCloud
|
|
61
64
|
# If true, the input firstly is converted to PDF and after that to desired format
|
62
65
|
attr_accessor :use_pdf
|
63
66
|
|
64
|
-
# Watermark specific options
|
65
|
-
attr_accessor :watermark_options
|
66
|
-
|
67
67
|
# Adjust image brightness
|
68
68
|
attr_accessor :brightness
|
69
69
|
|
@@ -106,6 +106,7 @@ module GroupDocsConversionCloud
|
|
106
106
|
:'from_page' => :'FromPage',
|
107
107
|
:'pages_count' => :'PagesCount',
|
108
108
|
:'pages' => :'Pages',
|
109
|
+
:'watermark_options' => :'WatermarkOptions',
|
109
110
|
:'width' => :'Width',
|
110
111
|
:'height' => :'Height',
|
111
112
|
:'horizontal_resolution' => :'HorizontalResolution',
|
@@ -113,7 +114,6 @@ module GroupDocsConversionCloud
|
|
113
114
|
:'grayscale' => :'Grayscale',
|
114
115
|
:'rotate_angle' => :'RotateAngle',
|
115
116
|
:'use_pdf' => :'UsePdf',
|
116
|
-
:'watermark_options' => :'WatermarkOptions',
|
117
117
|
:'brightness' => :'Brightness',
|
118
118
|
:'contrast' => :'Contrast',
|
119
119
|
:'gamma' => :'Gamma',
|
@@ -128,6 +128,7 @@ module GroupDocsConversionCloud
|
|
128
128
|
:'from_page' => :'Integer',
|
129
129
|
:'pages_count' => :'Integer',
|
130
130
|
:'pages' => :'Array<Integer>',
|
131
|
+
:'watermark_options' => :'WatermarkOptions',
|
131
132
|
:'width' => :'Integer',
|
132
133
|
:'height' => :'Integer',
|
133
134
|
:'horizontal_resolution' => :'Integer',
|
@@ -135,7 +136,6 @@ module GroupDocsConversionCloud
|
|
135
136
|
:'grayscale' => :'BOOLEAN',
|
136
137
|
:'rotate_angle' => :'Integer',
|
137
138
|
:'use_pdf' => :'BOOLEAN',
|
138
|
-
:'watermark_options' => :'WatermarkOptions',
|
139
139
|
:'brightness' => :'Integer',
|
140
140
|
:'contrast' => :'Integer',
|
141
141
|
:'gamma' => :'Float',
|
@@ -166,6 +166,10 @@ module GroupDocsConversionCloud
|
|
166
166
|
end
|
167
167
|
end
|
168
168
|
|
169
|
+
if attributes.key?(:'WatermarkOptions')
|
170
|
+
self.watermark_options = attributes[:'WatermarkOptions']
|
171
|
+
end
|
172
|
+
|
169
173
|
if attributes.key?(:'Width')
|
170
174
|
self.width = attributes[:'Width']
|
171
175
|
end
|
@@ -194,10 +198,6 @@ module GroupDocsConversionCloud
|
|
194
198
|
self.use_pdf = attributes[:'UsePdf']
|
195
199
|
end
|
196
200
|
|
197
|
-
if attributes.key?(:'WatermarkOptions')
|
198
|
-
self.watermark_options = attributes[:'WatermarkOptions']
|
199
|
-
end
|
200
|
-
|
201
201
|
if attributes.key?(:'Brightness')
|
202
202
|
self.brightness = attributes[:'Brightness']
|
203
203
|
end
|
@@ -327,6 +327,7 @@ module GroupDocsConversionCloud
|
|
327
327
|
from_page == other.from_page &&
|
328
328
|
pages_count == other.pages_count &&
|
329
329
|
pages == other.pages &&
|
330
|
+
watermark_options == other.watermark_options &&
|
330
331
|
width == other.width &&
|
331
332
|
height == other.height &&
|
332
333
|
horizontal_resolution == other.horizontal_resolution &&
|
@@ -334,7 +335,6 @@ module GroupDocsConversionCloud
|
|
334
335
|
grayscale == other.grayscale &&
|
335
336
|
rotate_angle == other.rotate_angle &&
|
336
337
|
use_pdf == other.use_pdf &&
|
337
|
-
watermark_options == other.watermark_options &&
|
338
338
|
brightness == other.brightness &&
|
339
339
|
contrast == other.contrast &&
|
340
340
|
gamma == other.gamma &&
|
@@ -351,7 +351,7 @@ module GroupDocsConversionCloud
|
|
351
351
|
# Calculates hash code according to all attributes.
|
352
352
|
# @return [Fixnum] Hash code
|
353
353
|
def hash
|
354
|
-
[from_page, pages_count, pages, width, height, horizontal_resolution, vertical_resolution, grayscale, rotate_angle, use_pdf,
|
354
|
+
[from_page, pages_count, pages, watermark_options, width, height, horizontal_resolution, vertical_resolution, grayscale, rotate_angle, use_pdf, brightness, contrast, gamma, flip_mode, lossless].hash
|
355
355
|
end
|
356
356
|
|
357
357
|
# Downcases first letter.
|
@@ -40,6 +40,9 @@ module GroupDocsConversionCloud
|
|
40
40
|
# Convert specific pages. The list contains the page indexes of the pages to be converted
|
41
41
|
attr_accessor :pages
|
42
42
|
|
43
|
+
# Watermark specific options
|
44
|
+
attr_accessor :watermark_options
|
45
|
+
|
43
46
|
# Desired image width after conversion
|
44
47
|
attr_accessor :width
|
45
48
|
|
@@ -61,9 +64,6 @@ module GroupDocsConversionCloud
|
|
61
64
|
# If true, the input firstly is converted to PDF and after that to desired format
|
62
65
|
attr_accessor :use_pdf
|
63
66
|
|
64
|
-
# Watermark specific options
|
65
|
-
attr_accessor :watermark_options
|
66
|
-
|
67
67
|
# Adjust image brightness
|
68
68
|
attr_accessor :brightness
|
69
69
|
|
@@ -103,6 +103,7 @@ module GroupDocsConversionCloud
|
|
103
103
|
:'from_page' => :'FromPage',
|
104
104
|
:'pages_count' => :'PagesCount',
|
105
105
|
:'pages' => :'Pages',
|
106
|
+
:'watermark_options' => :'WatermarkOptions',
|
106
107
|
:'width' => :'Width',
|
107
108
|
:'height' => :'Height',
|
108
109
|
:'horizontal_resolution' => :'HorizontalResolution',
|
@@ -110,7 +111,6 @@ module GroupDocsConversionCloud
|
|
110
111
|
:'grayscale' => :'Grayscale',
|
111
112
|
:'rotate_angle' => :'RotateAngle',
|
112
113
|
:'use_pdf' => :'UsePdf',
|
113
|
-
:'watermark_options' => :'WatermarkOptions',
|
114
114
|
:'brightness' => :'Brightness',
|
115
115
|
:'contrast' => :'Contrast',
|
116
116
|
:'gamma' => :'Gamma',
|
@@ -124,6 +124,7 @@ module GroupDocsConversionCloud
|
|
124
124
|
:'from_page' => :'Integer',
|
125
125
|
:'pages_count' => :'Integer',
|
126
126
|
:'pages' => :'Array<Integer>',
|
127
|
+
:'watermark_options' => :'WatermarkOptions',
|
127
128
|
:'width' => :'Integer',
|
128
129
|
:'height' => :'Integer',
|
129
130
|
:'horizontal_resolution' => :'Integer',
|
@@ -131,7 +132,6 @@ module GroupDocsConversionCloud
|
|
131
132
|
:'grayscale' => :'BOOLEAN',
|
132
133
|
:'rotate_angle' => :'Integer',
|
133
134
|
:'use_pdf' => :'BOOLEAN',
|
134
|
-
:'watermark_options' => :'WatermarkOptions',
|
135
135
|
:'brightness' => :'Integer',
|
136
136
|
:'contrast' => :'Integer',
|
137
137
|
:'gamma' => :'Float',
|
@@ -161,6 +161,10 @@ module GroupDocsConversionCloud
|
|
161
161
|
end
|
162
162
|
end
|
163
163
|
|
164
|
+
if attributes.key?(:'WatermarkOptions')
|
165
|
+
self.watermark_options = attributes[:'WatermarkOptions']
|
166
|
+
end
|
167
|
+
|
164
168
|
if attributes.key?(:'Width')
|
165
169
|
self.width = attributes[:'Width']
|
166
170
|
end
|
@@ -189,10 +193,6 @@ module GroupDocsConversionCloud
|
|
189
193
|
self.use_pdf = attributes[:'UsePdf']
|
190
194
|
end
|
191
195
|
|
192
|
-
if attributes.key?(:'WatermarkOptions')
|
193
|
-
self.watermark_options = attributes[:'WatermarkOptions']
|
194
|
-
end
|
195
|
-
|
196
196
|
if attributes.key?(:'Brightness')
|
197
197
|
self.brightness = attributes[:'Brightness']
|
198
198
|
end
|
@@ -313,6 +313,7 @@ module GroupDocsConversionCloud
|
|
313
313
|
from_page == other.from_page &&
|
314
314
|
pages_count == other.pages_count &&
|
315
315
|
pages == other.pages &&
|
316
|
+
watermark_options == other.watermark_options &&
|
316
317
|
width == other.width &&
|
317
318
|
height == other.height &&
|
318
319
|
horizontal_resolution == other.horizontal_resolution &&
|
@@ -320,7 +321,6 @@ module GroupDocsConversionCloud
|
|
320
321
|
grayscale == other.grayscale &&
|
321
322
|
rotate_angle == other.rotate_angle &&
|
322
323
|
use_pdf == other.use_pdf &&
|
323
|
-
watermark_options == other.watermark_options &&
|
324
324
|
brightness == other.brightness &&
|
325
325
|
contrast == other.contrast &&
|
326
326
|
gamma == other.gamma &&
|
@@ -336,7 +336,7 @@ module GroupDocsConversionCloud
|
|
336
336
|
# Calculates hash code according to all attributes.
|
337
337
|
# @return [Fixnum] Hash code
|
338
338
|
def hash
|
339
|
-
[from_page, pages_count, pages, width, height, horizontal_resolution, vertical_resolution, grayscale, rotate_angle, use_pdf,
|
339
|
+
[from_page, pages_count, pages, watermark_options, width, height, horizontal_resolution, vertical_resolution, grayscale, rotate_angle, use_pdf, brightness, contrast, gamma, flip_mode].hash
|
340
340
|
end
|
341
341
|
|
342
342
|
# Downcases first letter.
|