groupdocs_conversion_cloud 23.2 → 23.4
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 +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
|
# 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.
|
@@ -51,13 +51,13 @@ require_relative 'groupdocs_conversion_cloud/models/watermark_options'
|
|
51
51
|
require_relative 'groupdocs_conversion_cloud/models/cad_load_options'
|
52
52
|
require_relative 'groupdocs_conversion_cloud/models/csv_load_options'
|
53
53
|
require_relative 'groupdocs_conversion_cloud/models/diagram_load_options'
|
54
|
+
require_relative 'groupdocs_conversion_cloud/models/e_book_convert_options'
|
54
55
|
require_relative 'groupdocs_conversion_cloud/models/email_load_options'
|
55
56
|
require_relative 'groupdocs_conversion_cloud/models/file_version'
|
56
|
-
require_relative 'groupdocs_conversion_cloud/models/html_convert_options'
|
57
|
-
require_relative 'groupdocs_conversion_cloud/models/html_load_options'
|
58
57
|
require_relative 'groupdocs_conversion_cloud/models/image_convert_options'
|
59
58
|
require_relative 'groupdocs_conversion_cloud/models/image_load_options'
|
60
59
|
require_relative 'groupdocs_conversion_cloud/models/one_load_options'
|
60
|
+
require_relative 'groupdocs_conversion_cloud/models/pdl_convert_options'
|
61
61
|
require_relative 'groupdocs_conversion_cloud/models/pdf_convert_options'
|
62
62
|
require_relative 'groupdocs_conversion_cloud/models/pdf_load_options'
|
63
63
|
require_relative 'groupdocs_conversion_cloud/models/personal_storage_load_options'
|
@@ -65,16 +65,15 @@ require_relative 'groupdocs_conversion_cloud/models/presentation_convert_options
|
|
65
65
|
require_relative 'groupdocs_conversion_cloud/models/presentation_load_options'
|
66
66
|
require_relative 'groupdocs_conversion_cloud/models/spreadsheet_convert_options'
|
67
67
|
require_relative 'groupdocs_conversion_cloud/models/spreadsheet_load_options'
|
68
|
-
require_relative 'groupdocs_conversion_cloud/models/svg_convert_options'
|
69
68
|
require_relative 'groupdocs_conversion_cloud/models/txt_convert_options'
|
70
69
|
require_relative 'groupdocs_conversion_cloud/models/txt_load_options'
|
70
|
+
require_relative 'groupdocs_conversion_cloud/models/web_convert_options'
|
71
|
+
require_relative 'groupdocs_conversion_cloud/models/web_load_options'
|
71
72
|
require_relative 'groupdocs_conversion_cloud/models/word_processing_convert_options'
|
72
73
|
require_relative 'groupdocs_conversion_cloud/models/word_processing_load_options'
|
73
74
|
require_relative 'groupdocs_conversion_cloud/models/xml_load_options'
|
74
|
-
require_relative 'groupdocs_conversion_cloud/models/xps_convert_options'
|
75
75
|
require_relative 'groupdocs_conversion_cloud/models/bmp_convert_options'
|
76
76
|
require_relative 'groupdocs_conversion_cloud/models/bmp_load_options'
|
77
|
-
require_relative 'groupdocs_conversion_cloud/models/cgm_convert_options'
|
78
77
|
require_relative 'groupdocs_conversion_cloud/models/dcm_convert_options'
|
79
78
|
require_relative 'groupdocs_conversion_cloud/models/dcm_load_options'
|
80
79
|
require_relative 'groupdocs_conversion_cloud/models/dgn_load_options'
|
@@ -100,7 +99,6 @@ require_relative 'groupdocs_conversion_cloud/models/emf_convert_options'
|
|
100
99
|
require_relative 'groupdocs_conversion_cloud/models/emf_load_options'
|
101
100
|
require_relative 'groupdocs_conversion_cloud/models/eml_load_options'
|
102
101
|
require_relative 'groupdocs_conversion_cloud/models/emlx_load_options'
|
103
|
-
require_relative 'groupdocs_conversion_cloud/models/epub_convert_options'
|
104
102
|
require_relative 'groupdocs_conversion_cloud/models/gif_convert_options'
|
105
103
|
require_relative 'groupdocs_conversion_cloud/models/gif_load_options'
|
106
104
|
require_relative 'groupdocs_conversion_cloud/models/ico_convert_options'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: groupdocs_conversion_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '23.
|
4
|
+
version: '23.4'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GroupDocs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -83,7 +83,6 @@ files:
|
|
83
83
|
- lib/groupdocs_conversion_cloud/models/bmp_convert_options.rb
|
84
84
|
- lib/groupdocs_conversion_cloud/models/bmp_load_options.rb
|
85
85
|
- lib/groupdocs_conversion_cloud/models/cad_load_options.rb
|
86
|
-
- lib/groupdocs_conversion_cloud/models/cgm_convert_options.rb
|
87
86
|
- lib/groupdocs_conversion_cloud/models/consumption_result.rb
|
88
87
|
- lib/groupdocs_conversion_cloud/models/convert_options.rb
|
89
88
|
- lib/groupdocs_conversion_cloud/models/convert_settings.rb
|
@@ -112,12 +111,12 @@ files:
|
|
112
111
|
- lib/groupdocs_conversion_cloud/models/dwf_load_options.rb
|
113
112
|
- lib/groupdocs_conversion_cloud/models/dwg_load_options.rb
|
114
113
|
- lib/groupdocs_conversion_cloud/models/dxf_load_options.rb
|
114
|
+
- lib/groupdocs_conversion_cloud/models/e_book_convert_options.rb
|
115
115
|
- lib/groupdocs_conversion_cloud/models/email_load_options.rb
|
116
116
|
- lib/groupdocs_conversion_cloud/models/emf_convert_options.rb
|
117
117
|
- lib/groupdocs_conversion_cloud/models/emf_load_options.rb
|
118
118
|
- lib/groupdocs_conversion_cloud/models/eml_load_options.rb
|
119
119
|
- lib/groupdocs_conversion_cloud/models/emlx_load_options.rb
|
120
|
-
- lib/groupdocs_conversion_cloud/models/epub_convert_options.rb
|
121
120
|
- lib/groupdocs_conversion_cloud/models/error.rb
|
122
121
|
- lib/groupdocs_conversion_cloud/models/error_details.rb
|
123
122
|
- lib/groupdocs_conversion_cloud/models/field_label.rb
|
@@ -127,8 +126,6 @@ files:
|
|
127
126
|
- lib/groupdocs_conversion_cloud/models/files_upload_result.rb
|
128
127
|
- lib/groupdocs_conversion_cloud/models/gif_convert_options.rb
|
129
128
|
- lib/groupdocs_conversion_cloud/models/gif_load_options.rb
|
130
|
-
- lib/groupdocs_conversion_cloud/models/html_convert_options.rb
|
131
|
-
- lib/groupdocs_conversion_cloud/models/html_load_options.rb
|
132
129
|
- lib/groupdocs_conversion_cloud/models/ico_convert_options.rb
|
133
130
|
- lib/groupdocs_conversion_cloud/models/ico_load_options.rb
|
134
131
|
- lib/groupdocs_conversion_cloud/models/ifc_load_options.rb
|
@@ -174,6 +171,7 @@ files:
|
|
174
171
|
- lib/groupdocs_conversion_cloud/models/ott_load_options.rb
|
175
172
|
- lib/groupdocs_conversion_cloud/models/pdf_convert_options.rb
|
176
173
|
- lib/groupdocs_conversion_cloud/models/pdf_load_options.rb
|
174
|
+
- lib/groupdocs_conversion_cloud/models/pdl_convert_options.rb
|
177
175
|
- lib/groupdocs_conversion_cloud/models/personal_storage_load_options.rb
|
178
176
|
- lib/groupdocs_conversion_cloud/models/plt_load_options.rb
|
179
177
|
- lib/groupdocs_conversion_cloud/models/png_convert_options.rb
|
@@ -207,7 +205,6 @@ files:
|
|
207
205
|
- lib/groupdocs_conversion_cloud/models/storage_file.rb
|
208
206
|
- lib/groupdocs_conversion_cloud/models/stored_converted_result.rb
|
209
207
|
- lib/groupdocs_conversion_cloud/models/supported_format.rb
|
210
|
-
- lib/groupdocs_conversion_cloud/models/svg_convert_options.rb
|
211
208
|
- lib/groupdocs_conversion_cloud/models/tif_convert_options.rb
|
212
209
|
- lib/groupdocs_conversion_cloud/models/tif_load_options.rb
|
213
210
|
- lib/groupdocs_conversion_cloud/models/tiff_convert_options.rb
|
@@ -230,6 +227,8 @@ files:
|
|
230
227
|
- lib/groupdocs_conversion_cloud/models/vsx_load_options.rb
|
231
228
|
- lib/groupdocs_conversion_cloud/models/vtx_load_options.rb
|
232
229
|
- lib/groupdocs_conversion_cloud/models/watermark_options.rb
|
230
|
+
- lib/groupdocs_conversion_cloud/models/web_convert_options.rb
|
231
|
+
- lib/groupdocs_conversion_cloud/models/web_load_options.rb
|
233
232
|
- lib/groupdocs_conversion_cloud/models/webp_convert_options.rb
|
234
233
|
- lib/groupdocs_conversion_cloud/models/webp_load_options.rb
|
235
234
|
- lib/groupdocs_conversion_cloud/models/wmf_convert_options.rb
|
@@ -251,7 +250,6 @@ files:
|
|
251
250
|
- lib/groupdocs_conversion_cloud/models/xltx_convert_options.rb
|
252
251
|
- lib/groupdocs_conversion_cloud/models/xltx_load_options.rb
|
253
252
|
- lib/groupdocs_conversion_cloud/models/xml_load_options.rb
|
254
|
-
- lib/groupdocs_conversion_cloud/models/xps_convert_options.rb
|
255
253
|
- lib/groupdocs_conversion_cloud/version.rb
|
256
254
|
homepage: https://products.groupdocs.cloud/conversion/ruby
|
257
255
|
licenses:
|
@@ -1,458 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# --------------------------------------------------------------------------------------------------------------------
|
3
|
-
# <copyright company="Aspose Pty Ltd" file="cgm_convert_options.rb">
|
4
|
-
# Copyright (c) 2003-2023 Aspose Pty Ltd
|
5
|
-
# </copyright>
|
6
|
-
# <summary>
|
7
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
-
# of this software and associated documentation files (the "Software"), to deal
|
9
|
-
# in the Software without restriction, including without limitation the rights
|
10
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
-
# copies of the Software, and to permit persons to whom the Software is
|
12
|
-
# furnished to do so, subject to the following conditions:
|
13
|
-
#
|
14
|
-
# The above copyright notice and this permission notice shall be included in all
|
15
|
-
# copies or substantial portions of the Software.
|
16
|
-
#
|
17
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
-
# SOFTWARE.
|
24
|
-
# </summary>
|
25
|
-
# --------------------------------------------------------------------------------------------------------------------
|
26
|
-
#
|
27
|
-
|
28
|
-
require 'date'
|
29
|
-
|
30
|
-
module GroupDocsConversionCloud
|
31
|
-
# Cgm convert options
|
32
|
-
class CgmConvertOptions
|
33
|
-
|
34
|
-
# Start conversion from FromPage page
|
35
|
-
attr_accessor :from_page
|
36
|
-
|
37
|
-
# Number of pages to convert
|
38
|
-
attr_accessor :pages_count
|
39
|
-
|
40
|
-
# Convert specific pages. The list contains the page indexes of the pages to be converted
|
41
|
-
attr_accessor :pages
|
42
|
-
|
43
|
-
# Desired image width after conversion
|
44
|
-
attr_accessor :width
|
45
|
-
|
46
|
-
# Desired image height after conversion
|
47
|
-
attr_accessor :height
|
48
|
-
|
49
|
-
# Desired image horizontal resolution after conversion. The default resolution is the resolution of the input file or 96dpi
|
50
|
-
attr_accessor :horizontal_resolution
|
51
|
-
|
52
|
-
# Desired image vertical resolution after conversion. The default resolution is the resolution of the input file or 96dpi
|
53
|
-
attr_accessor :vertical_resolution
|
54
|
-
|
55
|
-
# Convert to grayscale image
|
56
|
-
attr_accessor :grayscale
|
57
|
-
|
58
|
-
# Image rotation angle
|
59
|
-
attr_accessor :rotate_angle
|
60
|
-
|
61
|
-
# If true, the input firstly is converted to PDF and after that to desired format
|
62
|
-
attr_accessor :use_pdf
|
63
|
-
|
64
|
-
# Watermark specific options
|
65
|
-
attr_accessor :watermark_options
|
66
|
-
|
67
|
-
# Adjust image brightness
|
68
|
-
attr_accessor :brightness
|
69
|
-
|
70
|
-
# Adjust image contrast
|
71
|
-
attr_accessor :contrast
|
72
|
-
|
73
|
-
# Adjust image gamma
|
74
|
-
attr_accessor :gamma
|
75
|
-
|
76
|
-
# Image flip mode
|
77
|
-
attr_accessor :flip_mode
|
78
|
-
class EnumAttributeValidator
|
79
|
-
attr_reader :datatype
|
80
|
-
attr_reader :allowable_values
|
81
|
-
|
82
|
-
def initialize(datatype, allowable_values)
|
83
|
-
@allowable_values = allowable_values.map do |value|
|
84
|
-
case datatype.to_s
|
85
|
-
when /Integer/i
|
86
|
-
value.to_i
|
87
|
-
when /Float/i
|
88
|
-
value.to_f
|
89
|
-
else
|
90
|
-
value
|
91
|
-
end
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
def valid?(value)
|
96
|
-
!value || allowable_values.include?(value)
|
97
|
-
end
|
98
|
-
end
|
99
|
-
|
100
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
101
|
-
def self.attribute_map
|
102
|
-
{
|
103
|
-
:'from_page' => :'FromPage',
|
104
|
-
:'pages_count' => :'PagesCount',
|
105
|
-
:'pages' => :'Pages',
|
106
|
-
:'width' => :'Width',
|
107
|
-
:'height' => :'Height',
|
108
|
-
:'horizontal_resolution' => :'HorizontalResolution',
|
109
|
-
:'vertical_resolution' => :'VerticalResolution',
|
110
|
-
:'grayscale' => :'Grayscale',
|
111
|
-
:'rotate_angle' => :'RotateAngle',
|
112
|
-
:'use_pdf' => :'UsePdf',
|
113
|
-
:'watermark_options' => :'WatermarkOptions',
|
114
|
-
:'brightness' => :'Brightness',
|
115
|
-
:'contrast' => :'Contrast',
|
116
|
-
:'gamma' => :'Gamma',
|
117
|
-
:'flip_mode' => :'FlipMode'
|
118
|
-
}
|
119
|
-
end
|
120
|
-
|
121
|
-
# Attribute type mapping.
|
122
|
-
def self.swagger_types
|
123
|
-
{
|
124
|
-
:'from_page' => :'Integer',
|
125
|
-
:'pages_count' => :'Integer',
|
126
|
-
:'pages' => :'Array<Integer>',
|
127
|
-
:'width' => :'Integer',
|
128
|
-
:'height' => :'Integer',
|
129
|
-
:'horizontal_resolution' => :'Integer',
|
130
|
-
:'vertical_resolution' => :'Integer',
|
131
|
-
:'grayscale' => :'BOOLEAN',
|
132
|
-
:'rotate_angle' => :'Integer',
|
133
|
-
:'use_pdf' => :'BOOLEAN',
|
134
|
-
:'watermark_options' => :'WatermarkOptions',
|
135
|
-
:'brightness' => :'Integer',
|
136
|
-
:'contrast' => :'Integer',
|
137
|
-
:'gamma' => :'Float',
|
138
|
-
:'flip_mode' => :'String'
|
139
|
-
}
|
140
|
-
end
|
141
|
-
|
142
|
-
# Initializes the object
|
143
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
144
|
-
def initialize(attributes = {})
|
145
|
-
return unless attributes.is_a?(Hash)
|
146
|
-
|
147
|
-
# convert string to symbol for hash key
|
148
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
149
|
-
|
150
|
-
if attributes.key?(:'FromPage')
|
151
|
-
self.from_page = attributes[:'FromPage']
|
152
|
-
end
|
153
|
-
|
154
|
-
if attributes.key?(:'PagesCount')
|
155
|
-
self.pages_count = attributes[:'PagesCount']
|
156
|
-
end
|
157
|
-
|
158
|
-
if attributes.key?(:'Pages')
|
159
|
-
if (value = attributes[:'Pages']).is_a?(Array)
|
160
|
-
self.pages = value
|
161
|
-
end
|
162
|
-
end
|
163
|
-
|
164
|
-
if attributes.key?(:'Width')
|
165
|
-
self.width = attributes[:'Width']
|
166
|
-
end
|
167
|
-
|
168
|
-
if attributes.key?(:'Height')
|
169
|
-
self.height = attributes[:'Height']
|
170
|
-
end
|
171
|
-
|
172
|
-
if attributes.key?(:'HorizontalResolution')
|
173
|
-
self.horizontal_resolution = attributes[:'HorizontalResolution']
|
174
|
-
end
|
175
|
-
|
176
|
-
if attributes.key?(:'VerticalResolution')
|
177
|
-
self.vertical_resolution = attributes[:'VerticalResolution']
|
178
|
-
end
|
179
|
-
|
180
|
-
if attributes.key?(:'Grayscale')
|
181
|
-
self.grayscale = attributes[:'Grayscale']
|
182
|
-
end
|
183
|
-
|
184
|
-
if attributes.key?(:'RotateAngle')
|
185
|
-
self.rotate_angle = attributes[:'RotateAngle']
|
186
|
-
end
|
187
|
-
|
188
|
-
if attributes.key?(:'UsePdf')
|
189
|
-
self.use_pdf = attributes[:'UsePdf']
|
190
|
-
end
|
191
|
-
|
192
|
-
if attributes.key?(:'WatermarkOptions')
|
193
|
-
self.watermark_options = attributes[:'WatermarkOptions']
|
194
|
-
end
|
195
|
-
|
196
|
-
if attributes.key?(:'Brightness')
|
197
|
-
self.brightness = attributes[:'Brightness']
|
198
|
-
end
|
199
|
-
|
200
|
-
if attributes.key?(:'Contrast')
|
201
|
-
self.contrast = attributes[:'Contrast']
|
202
|
-
end
|
203
|
-
|
204
|
-
if attributes.key?(:'Gamma')
|
205
|
-
self.gamma = attributes[:'Gamma']
|
206
|
-
end
|
207
|
-
|
208
|
-
if attributes.key?(:'FlipMode')
|
209
|
-
self.flip_mode = attributes[:'FlipMode']
|
210
|
-
end
|
211
|
-
|
212
|
-
end
|
213
|
-
|
214
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
215
|
-
# @return Array for valid properies with the reasons
|
216
|
-
def list_invalid_properties
|
217
|
-
invalid_properties = []
|
218
|
-
if @from_page.nil?
|
219
|
-
invalid_properties.push("invalid value for 'from_page', from_page cannot be nil.")
|
220
|
-
end
|
221
|
-
|
222
|
-
if @pages_count.nil?
|
223
|
-
invalid_properties.push("invalid value for 'pages_count', pages_count cannot be nil.")
|
224
|
-
end
|
225
|
-
|
226
|
-
if @width.nil?
|
227
|
-
invalid_properties.push("invalid value for 'width', width cannot be nil.")
|
228
|
-
end
|
229
|
-
|
230
|
-
if @height.nil?
|
231
|
-
invalid_properties.push("invalid value for 'height', height cannot be nil.")
|
232
|
-
end
|
233
|
-
|
234
|
-
if @horizontal_resolution.nil?
|
235
|
-
invalid_properties.push("invalid value for 'horizontal_resolution', horizontal_resolution cannot be nil.")
|
236
|
-
end
|
237
|
-
|
238
|
-
if @vertical_resolution.nil?
|
239
|
-
invalid_properties.push("invalid value for 'vertical_resolution', vertical_resolution cannot be nil.")
|
240
|
-
end
|
241
|
-
|
242
|
-
if @grayscale.nil?
|
243
|
-
invalid_properties.push("invalid value for 'grayscale', grayscale cannot be nil.")
|
244
|
-
end
|
245
|
-
|
246
|
-
if @rotate_angle.nil?
|
247
|
-
invalid_properties.push("invalid value for 'rotate_angle', rotate_angle cannot be nil.")
|
248
|
-
end
|
249
|
-
|
250
|
-
if @use_pdf.nil?
|
251
|
-
invalid_properties.push("invalid value for 'use_pdf', use_pdf cannot be nil.")
|
252
|
-
end
|
253
|
-
|
254
|
-
if @brightness.nil?
|
255
|
-
invalid_properties.push("invalid value for 'brightness', brightness cannot be nil.")
|
256
|
-
end
|
257
|
-
|
258
|
-
if @contrast.nil?
|
259
|
-
invalid_properties.push("invalid value for 'contrast', contrast cannot be nil.")
|
260
|
-
end
|
261
|
-
|
262
|
-
if @gamma.nil?
|
263
|
-
invalid_properties.push("invalid value for 'gamma', gamma cannot be nil.")
|
264
|
-
end
|
265
|
-
|
266
|
-
if @flip_mode.nil?
|
267
|
-
invalid_properties.push("invalid value for 'flip_mode', flip_mode cannot be nil.")
|
268
|
-
end
|
269
|
-
|
270
|
-
return invalid_properties
|
271
|
-
end
|
272
|
-
|
273
|
-
# Check to see if the all the properties in the model are valid
|
274
|
-
# @return true if the model is valid
|
275
|
-
def valid?
|
276
|
-
return false if @from_page.nil?
|
277
|
-
return false if @pages_count.nil?
|
278
|
-
return false if @width.nil?
|
279
|
-
return false if @height.nil?
|
280
|
-
return false if @horizontal_resolution.nil?
|
281
|
-
return false if @vertical_resolution.nil?
|
282
|
-
return false if @grayscale.nil?
|
283
|
-
return false if @rotate_angle.nil?
|
284
|
-
return false if @use_pdf.nil?
|
285
|
-
return false if @brightness.nil?
|
286
|
-
return false if @contrast.nil?
|
287
|
-
return false if @gamma.nil?
|
288
|
-
return false if @flip_mode.nil?
|
289
|
-
flip_mode_validator = EnumAttributeValidator.new('String', ["None", "FlipX", "FlipY", "FlipXY"])
|
290
|
-
return false unless flip_mode_validator.valid?(@flip_mode)
|
291
|
-
return true
|
292
|
-
end
|
293
|
-
|
294
|
-
# Custom attribute writer method checking allowed values (enum).
|
295
|
-
# @param [Object] flip_mode Object to be assigned
|
296
|
-
def flip_mode=(flip_mode)
|
297
|
-
validator = EnumAttributeValidator.new('String', ["None", "FlipX", "FlipY", "FlipXY"])
|
298
|
-
if flip_mode.to_i == 0
|
299
|
-
unless validator.valid?(flip_mode)
|
300
|
-
raise ArgumentError, "invalid value for 'flip_mode', must be one of #{validator.allowable_values}."
|
301
|
-
end
|
302
|
-
@flip_mode = flip_mode
|
303
|
-
else
|
304
|
-
@flip_mode = validator.allowable_values[flip_mode.to_i]
|
305
|
-
end
|
306
|
-
end
|
307
|
-
|
308
|
-
# Checks equality by comparing each attribute.
|
309
|
-
# @param [Object] Object to be compared
|
310
|
-
def ==(other)
|
311
|
-
return true if self.equal?(other)
|
312
|
-
self.class == other.class &&
|
313
|
-
from_page == other.from_page &&
|
314
|
-
pages_count == other.pages_count &&
|
315
|
-
pages == other.pages &&
|
316
|
-
width == other.width &&
|
317
|
-
height == other.height &&
|
318
|
-
horizontal_resolution == other.horizontal_resolution &&
|
319
|
-
vertical_resolution == other.vertical_resolution &&
|
320
|
-
grayscale == other.grayscale &&
|
321
|
-
rotate_angle == other.rotate_angle &&
|
322
|
-
use_pdf == other.use_pdf &&
|
323
|
-
watermark_options == other.watermark_options &&
|
324
|
-
brightness == other.brightness &&
|
325
|
-
contrast == other.contrast &&
|
326
|
-
gamma == other.gamma &&
|
327
|
-
flip_mode == other.flip_mode
|
328
|
-
end
|
329
|
-
|
330
|
-
# @see the `==` method
|
331
|
-
# @param [Object] Object to be compared
|
332
|
-
def eql?(other)
|
333
|
-
self == other
|
334
|
-
end
|
335
|
-
|
336
|
-
# Calculates hash code according to all attributes.
|
337
|
-
# @return [Fixnum] Hash code
|
338
|
-
def hash
|
339
|
-
[from_page, pages_count, pages, width, height, horizontal_resolution, vertical_resolution, grayscale, rotate_angle, use_pdf, watermark_options, brightness, contrast, gamma, flip_mode].hash
|
340
|
-
end
|
341
|
-
|
342
|
-
# Downcases first letter.
|
343
|
-
# @return downcased string
|
344
|
-
def uncap(str)
|
345
|
-
str[0, 1].downcase + str[1..-1]
|
346
|
-
end
|
347
|
-
|
348
|
-
# Builds the object from hash
|
349
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
350
|
-
# @return [Object] Returns the model itself
|
351
|
-
def build_from_hash(attributes)
|
352
|
-
return nil unless attributes.is_a?(Hash)
|
353
|
-
self.class.swagger_types.each_pair do |key, type|
|
354
|
-
pname = uncap(self.class.attribute_map[key]).intern
|
355
|
-
value = attributes[pname]
|
356
|
-
if type =~ /\AArray<(.*)>/i
|
357
|
-
# check to ensure the input is an array given that the the attribute
|
358
|
-
# is documented as an array but the input is not
|
359
|
-
if value.is_a?(Array)
|
360
|
-
self.send("#{key}=", value.map { |v| _deserialize($1, v) })
|
361
|
-
end
|
362
|
-
elsif !value.nil?
|
363
|
-
self.send("#{key}=", _deserialize(type, value))
|
364
|
-
end
|
365
|
-
# or else data not found in attributes(hash), not an issue as the data can be optional
|
366
|
-
end
|
367
|
-
|
368
|
-
self
|
369
|
-
end
|
370
|
-
|
371
|
-
# Deserializes the data based on type
|
372
|
-
# @param string type Data type
|
373
|
-
# @param string value Value to be deserialized
|
374
|
-
# @return [Object] Deserialized data
|
375
|
-
def _deserialize(type, value)
|
376
|
-
case type.to_sym
|
377
|
-
when :DateTime
|
378
|
-
Date.parse value
|
379
|
-
when :Date
|
380
|
-
Date.parse value
|
381
|
-
when :String
|
382
|
-
value.to_s
|
383
|
-
when :Integer
|
384
|
-
value.to_i
|
385
|
-
when :Float
|
386
|
-
value.to_f
|
387
|
-
when :BOOLEAN
|
388
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
389
|
-
true
|
390
|
-
else
|
391
|
-
false
|
392
|
-
end
|
393
|
-
when :Object
|
394
|
-
# generic object (usually a Hash), return directly
|
395
|
-
value
|
396
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
397
|
-
inner_type = Regexp.last_match[:inner_type]
|
398
|
-
value.map { |v| _deserialize(inner_type, v) }
|
399
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
400
|
-
k_type = Regexp.last_match[:k_type]
|
401
|
-
v_type = Regexp.last_match[:v_type]
|
402
|
-
{}.tap do |hash|
|
403
|
-
value.each do |k, v|
|
404
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
405
|
-
end
|
406
|
-
end
|
407
|
-
else
|
408
|
-
# model
|
409
|
-
temp_model = GroupDocsConversionCloud.const_get(type).new
|
410
|
-
temp_model.build_from_hash(value)
|
411
|
-
end
|
412
|
-
end
|
413
|
-
|
414
|
-
# Returns the string representation of the object
|
415
|
-
# @return [String] String presentation of the object
|
416
|
-
def to_s
|
417
|
-
to_hash.to_s
|
418
|
-
end
|
419
|
-
|
420
|
-
# to_body is an alias to to_hash (backward compatibility)
|
421
|
-
# @return [Hash] Returns the object in the form of hash
|
422
|
-
def to_body
|
423
|
-
to_hash
|
424
|
-
end
|
425
|
-
|
426
|
-
# Returns the object in the form of hash
|
427
|
-
# @return [Hash] Returns the object in the form of hash
|
428
|
-
def to_hash
|
429
|
-
hash = {}
|
430
|
-
self.class.attribute_map.each_pair do |attr, param|
|
431
|
-
value = self.send(attr)
|
432
|
-
next if value.nil?
|
433
|
-
hash[param] = _to_hash(value)
|
434
|
-
end
|
435
|
-
hash
|
436
|
-
end
|
437
|
-
|
438
|
-
# Outputs non-array value in the form of hash
|
439
|
-
# For object, use to_hash. Otherwise, just return the value
|
440
|
-
# @param [Object] value Any valid value
|
441
|
-
# @return [Hash] Returns the value in the form of hash
|
442
|
-
def _to_hash(value)
|
443
|
-
if value.is_a?(Array)
|
444
|
-
value.compact.map { |v| _to_hash(v) }
|
445
|
-
elsif value.is_a?(Hash)
|
446
|
-
{}.tap do |hash|
|
447
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
448
|
-
end
|
449
|
-
elsif value.respond_to? :to_hash
|
450
|
-
value.to_hash
|
451
|
-
else
|
452
|
-
value
|
453
|
-
end
|
454
|
-
end
|
455
|
-
|
456
|
-
end
|
457
|
-
|
458
|
-
end
|