groupdocs_viewer_cloud 19.5 → 20.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 +4 -4
- data/lib/groupdocs_viewer_cloud.rb +19 -2
- data/lib/groupdocs_viewer_cloud/api/file_api.rb +7 -7
- data/lib/groupdocs_viewer_cloud/api/folder_api.rb +7 -7
- data/lib/groupdocs_viewer_cloud/api/info_api.rb +2 -2
- data/lib/groupdocs_viewer_cloud/api/storage_api.rb +5 -5
- data/lib/groupdocs_viewer_cloud/api/view_api.rb +3 -3
- data/lib/groupdocs_viewer_cloud/api_client.rb +1 -1
- data/lib/groupdocs_viewer_cloud/api_error.rb +7 -4
- data/lib/groupdocs_viewer_cloud/configuration.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/archive_options.rb +214 -0
- data/lib/groupdocs_viewer_cloud/models/archive_view_info.rb +216 -0
- data/lib/groupdocs_viewer_cloud/models/attachment_info.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/attachment_view.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/cad_options.rb +54 -5
- data/lib/groupdocs_viewer_cloud/models/cad_view_info.rb +228 -0
- data/lib/groupdocs_viewer_cloud/models/character.rb +274 -0
- data/lib/groupdocs_viewer_cloud/models/delete_view_options.rb +15 -5
- data/lib/groupdocs_viewer_cloud/models/disc_usage.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/email_options.rb +44 -2
- data/lib/groupdocs_viewer_cloud/models/error.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/error_details.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/field_label.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/file_info.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/file_version.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/file_versions.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/files_list.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/files_upload_result.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/format.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/formats_result.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/html_options.rb +131 -10
- data/lib/groupdocs_viewer_cloud/models/html_resource.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/image_options.rb +86 -7
- data/lib/groupdocs_viewer_cloud/models/info_result.rb +75 -5
- data/lib/groupdocs_viewer_cloud/models/layer.rb +229 -0
- data/lib/groupdocs_viewer_cloud/models/layout.rb +244 -0
- data/lib/groupdocs_viewer_cloud/models/{row.rb → line.rb} +60 -72
- data/lib/groupdocs_viewer_cloud/models/object_exist.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/outlook_options.rb +249 -0
- data/lib/groupdocs_viewer_cloud/models/outlook_view_info.rb +216 -0
- data/lib/groupdocs_viewer_cloud/models/page_info.rb +28 -13
- data/lib/groupdocs_viewer_cloud/models/page_rotation.rb +271 -0
- data/lib/groupdocs_viewer_cloud/models/page_view.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/pdf_document_options.rb +316 -0
- data/lib/groupdocs_viewer_cloud/models/pdf_options.rb +490 -0
- data/lib/groupdocs_viewer_cloud/models/pdf_view_info.rb +219 -0
- data/lib/groupdocs_viewer_cloud/models/project_management_options.rb +66 -3
- data/lib/groupdocs_viewer_cloud/models/project_management_view_info.rb +234 -0
- data/lib/groupdocs_viewer_cloud/models/render_options.rb +89 -10
- data/lib/groupdocs_viewer_cloud/models/resource.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/spreadsheet_options.rb +57 -5
- data/lib/groupdocs_viewer_cloud/models/storage_exist.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/storage_file.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/text_element.rb +274 -0
- data/lib/groupdocs_viewer_cloud/models/tile.rb +264 -0
- data/lib/groupdocs_viewer_cloud/models/view_options.rb +5 -5
- data/lib/groupdocs_viewer_cloud/models/view_result.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/watermark.rb +44 -2
- data/lib/groupdocs_viewer_cloud/models/word.rb +286 -0
- data/lib/groupdocs_viewer_cloud/models/word_processing_options.rb +219 -0
- data/lib/groupdocs_viewer_cloud/version.rb +2 -2
- metadata +20 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="file_info.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="file_version.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="file_versions.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="files_list.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="files_upload_result.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="format.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="formats_result.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="html_options.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -37,30 +37,51 @@ module GroupDocsViewerCloud
|
|
|
37
37
|
# Count pages which should be rendered
|
|
38
38
|
attr_accessor :count_pages_to_render
|
|
39
39
|
|
|
40
|
+
# Pages list to render. Ignored, if StartPageNumber and CountPagesToRender are provided
|
|
41
|
+
attr_accessor :pages_to_render
|
|
42
|
+
|
|
43
|
+
# Page rotations
|
|
44
|
+
attr_accessor :page_rotations
|
|
45
|
+
|
|
40
46
|
# Default font name may be specified in following cases: - You want to generally specify the default font to fall back on, if particular font in the document cannot be found during rendering. - Your document uses fonts, that contain non-English characters and you want to make sure any missing font is replaced with one that has the same character set available.
|
|
41
47
|
attr_accessor :default_font_name
|
|
42
48
|
|
|
43
49
|
# Default encoding for the plain text files such as .csv, .txt and .eml files when encoding is not specified in header
|
|
44
50
|
attr_accessor :default_encoding
|
|
45
51
|
|
|
46
|
-
# When enabled comments will be rendered to the output
|
|
52
|
+
# When enabled comments will be rendered to the output
|
|
47
53
|
attr_accessor :render_comments
|
|
48
54
|
|
|
55
|
+
# When enabled notes will be rendered to the output
|
|
56
|
+
attr_accessor :render_notes
|
|
57
|
+
|
|
49
58
|
# When enabled hidden pages, sheets or slides will be rendered to the output
|
|
50
59
|
attr_accessor :render_hidden_pages
|
|
51
60
|
|
|
52
|
-
# Rendering options for Spreadsheet file formats
|
|
61
|
+
# Rendering options for Spreadsheet source file formats Spreadsheet file formats include files with extensions: .xls, .xlsx, .xlsm, .xlsb, .csv, .ods, .ots, .xltx, .xltm, .tsv
|
|
53
62
|
attr_accessor :spreadsheet_options
|
|
54
63
|
|
|
55
|
-
# Rendering options for CAD file formats
|
|
64
|
+
# Rendering options for CAD source file formats CAD file formats include files with extensions: .dwg, .dxf, .dgn, .ifc, .stl
|
|
56
65
|
attr_accessor :cad_options
|
|
57
66
|
|
|
58
|
-
# Rendering options for Email file formats
|
|
67
|
+
# Rendering options for Email source file formats Email file formats include files with extensions: .msg, .eml, .emlx, .ifc, .stl
|
|
59
68
|
attr_accessor :email_options
|
|
60
69
|
|
|
61
|
-
# Rendering options for Project file formats
|
|
70
|
+
# Rendering options for MS Project source file formats Project file formats include files with extensions: .mpt, .mpp
|
|
62
71
|
attr_accessor :project_management_options
|
|
63
72
|
|
|
73
|
+
# Rendering options for PDF source file formats
|
|
74
|
+
attr_accessor :pdf_document_options
|
|
75
|
+
|
|
76
|
+
# Rendering options for WordProcessing source file formats
|
|
77
|
+
attr_accessor :word_processing_options
|
|
78
|
+
|
|
79
|
+
# Rendering options for Outlook source file formats
|
|
80
|
+
attr_accessor :outlook_options
|
|
81
|
+
|
|
82
|
+
# Rendering options for Archive source file formats
|
|
83
|
+
attr_accessor :archive_options
|
|
84
|
+
|
|
64
85
|
# Controls output HTML document resources (styles, images and fonts) linking. By default this option is disabled and all the resources are embedded into HTML document.
|
|
65
86
|
attr_accessor :external_resources
|
|
66
87
|
|
|
@@ -70,22 +91,41 @@ module GroupDocsViewerCloud
|
|
|
70
91
|
# Indicates whether rendering will provide responsive web pages, that look well on different device types. Default value is false.
|
|
71
92
|
attr_accessor :is_responsive
|
|
72
93
|
|
|
94
|
+
# Enables HTML content and HTML resources minification
|
|
95
|
+
attr_accessor :minify
|
|
96
|
+
|
|
97
|
+
# When enabled prevents adding any fonts into HTML document
|
|
98
|
+
attr_accessor :exclude_fonts
|
|
99
|
+
|
|
100
|
+
# This option is supported for presentations only. The list of font names, to exclude from HTML document
|
|
101
|
+
attr_accessor :fonts_to_exclude
|
|
102
|
+
|
|
73
103
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
74
104
|
def self.attribute_map
|
|
75
105
|
{
|
|
76
106
|
:'start_page_number' => :'StartPageNumber',
|
|
77
107
|
:'count_pages_to_render' => :'CountPagesToRender',
|
|
108
|
+
:'pages_to_render' => :'PagesToRender',
|
|
109
|
+
:'page_rotations' => :'PageRotations',
|
|
78
110
|
:'default_font_name' => :'DefaultFontName',
|
|
79
111
|
:'default_encoding' => :'DefaultEncoding',
|
|
80
112
|
:'render_comments' => :'RenderComments',
|
|
113
|
+
:'render_notes' => :'RenderNotes',
|
|
81
114
|
:'render_hidden_pages' => :'RenderHiddenPages',
|
|
82
115
|
:'spreadsheet_options' => :'SpreadsheetOptions',
|
|
83
116
|
:'cad_options' => :'CadOptions',
|
|
84
117
|
:'email_options' => :'EmailOptions',
|
|
85
118
|
:'project_management_options' => :'ProjectManagementOptions',
|
|
119
|
+
:'pdf_document_options' => :'PdfDocumentOptions',
|
|
120
|
+
:'word_processing_options' => :'WordProcessingOptions',
|
|
121
|
+
:'outlook_options' => :'OutlookOptions',
|
|
122
|
+
:'archive_options' => :'ArchiveOptions',
|
|
86
123
|
:'external_resources' => :'ExternalResources',
|
|
87
124
|
:'resource_path' => :'ResourcePath',
|
|
88
|
-
:'is_responsive' => :'IsResponsive'
|
|
125
|
+
:'is_responsive' => :'IsResponsive',
|
|
126
|
+
:'minify' => :'Minify',
|
|
127
|
+
:'exclude_fonts' => :'ExcludeFonts',
|
|
128
|
+
:'fonts_to_exclude' => :'FontsToExclude'
|
|
89
129
|
}
|
|
90
130
|
end
|
|
91
131
|
|
|
@@ -94,17 +134,27 @@ module GroupDocsViewerCloud
|
|
|
94
134
|
{
|
|
95
135
|
:'start_page_number' => :'Integer',
|
|
96
136
|
:'count_pages_to_render' => :'Integer',
|
|
137
|
+
:'pages_to_render' => :'Array<Integer>',
|
|
138
|
+
:'page_rotations' => :'Array<PageRotation>',
|
|
97
139
|
:'default_font_name' => :'String',
|
|
98
140
|
:'default_encoding' => :'String',
|
|
99
141
|
:'render_comments' => :'BOOLEAN',
|
|
142
|
+
:'render_notes' => :'BOOLEAN',
|
|
100
143
|
:'render_hidden_pages' => :'BOOLEAN',
|
|
101
144
|
:'spreadsheet_options' => :'SpreadsheetOptions',
|
|
102
145
|
:'cad_options' => :'CadOptions',
|
|
103
146
|
:'email_options' => :'EmailOptions',
|
|
104
147
|
:'project_management_options' => :'ProjectManagementOptions',
|
|
148
|
+
:'pdf_document_options' => :'PdfDocumentOptions',
|
|
149
|
+
:'word_processing_options' => :'WordProcessingOptions',
|
|
150
|
+
:'outlook_options' => :'OutlookOptions',
|
|
151
|
+
:'archive_options' => :'ArchiveOptions',
|
|
105
152
|
:'external_resources' => :'BOOLEAN',
|
|
106
153
|
:'resource_path' => :'String',
|
|
107
|
-
:'is_responsive' => :'BOOLEAN'
|
|
154
|
+
:'is_responsive' => :'BOOLEAN',
|
|
155
|
+
:'minify' => :'BOOLEAN',
|
|
156
|
+
:'exclude_fonts' => :'BOOLEAN',
|
|
157
|
+
:'fonts_to_exclude' => :'Array<String>'
|
|
108
158
|
}
|
|
109
159
|
end
|
|
110
160
|
|
|
@@ -124,6 +174,18 @@ module GroupDocsViewerCloud
|
|
|
124
174
|
self.count_pages_to_render = attributes[:'CountPagesToRender']
|
|
125
175
|
end
|
|
126
176
|
|
|
177
|
+
if attributes.key?(:'PagesToRender')
|
|
178
|
+
if (value = attributes[:'PagesToRender']).is_a?(Array)
|
|
179
|
+
self.pages_to_render = value
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
if attributes.key?(:'PageRotations')
|
|
184
|
+
if (value = attributes[:'PageRotations']).is_a?(Array)
|
|
185
|
+
self.page_rotations = value
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
|
|
127
189
|
if attributes.key?(:'DefaultFontName')
|
|
128
190
|
self.default_font_name = attributes[:'DefaultFontName']
|
|
129
191
|
end
|
|
@@ -136,6 +198,10 @@ module GroupDocsViewerCloud
|
|
|
136
198
|
self.render_comments = attributes[:'RenderComments']
|
|
137
199
|
end
|
|
138
200
|
|
|
201
|
+
if attributes.key?(:'RenderNotes')
|
|
202
|
+
self.render_notes = attributes[:'RenderNotes']
|
|
203
|
+
end
|
|
204
|
+
|
|
139
205
|
if attributes.key?(:'RenderHiddenPages')
|
|
140
206
|
self.render_hidden_pages = attributes[:'RenderHiddenPages']
|
|
141
207
|
end
|
|
@@ -156,6 +222,22 @@ module GroupDocsViewerCloud
|
|
|
156
222
|
self.project_management_options = attributes[:'ProjectManagementOptions']
|
|
157
223
|
end
|
|
158
224
|
|
|
225
|
+
if attributes.key?(:'PdfDocumentOptions')
|
|
226
|
+
self.pdf_document_options = attributes[:'PdfDocumentOptions']
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
if attributes.key?(:'WordProcessingOptions')
|
|
230
|
+
self.word_processing_options = attributes[:'WordProcessingOptions']
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
if attributes.key?(:'OutlookOptions')
|
|
234
|
+
self.outlook_options = attributes[:'OutlookOptions']
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
if attributes.key?(:'ArchiveOptions')
|
|
238
|
+
self.archive_options = attributes[:'ArchiveOptions']
|
|
239
|
+
end
|
|
240
|
+
|
|
159
241
|
if attributes.key?(:'ExternalResources')
|
|
160
242
|
self.external_resources = attributes[:'ExternalResources']
|
|
161
243
|
end
|
|
@@ -168,6 +250,20 @@ module GroupDocsViewerCloud
|
|
|
168
250
|
self.is_responsive = attributes[:'IsResponsive']
|
|
169
251
|
end
|
|
170
252
|
|
|
253
|
+
if attributes.key?(:'Minify')
|
|
254
|
+
self.minify = attributes[:'Minify']
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
if attributes.key?(:'ExcludeFonts')
|
|
258
|
+
self.exclude_fonts = attributes[:'ExcludeFonts']
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
if attributes.key?(:'FontsToExclude')
|
|
262
|
+
if (value = attributes[:'FontsToExclude']).is_a?(Array)
|
|
263
|
+
self.fonts_to_exclude = value
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
|
|
171
267
|
end
|
|
172
268
|
|
|
173
269
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -186,6 +282,10 @@ module GroupDocsViewerCloud
|
|
|
186
282
|
invalid_properties.push("invalid value for 'render_comments', render_comments cannot be nil.")
|
|
187
283
|
end
|
|
188
284
|
|
|
285
|
+
if @render_notes.nil?
|
|
286
|
+
invalid_properties.push("invalid value for 'render_notes', render_notes cannot be nil.")
|
|
287
|
+
end
|
|
288
|
+
|
|
189
289
|
if @render_hidden_pages.nil?
|
|
190
290
|
invalid_properties.push("invalid value for 'render_hidden_pages', render_hidden_pages cannot be nil.")
|
|
191
291
|
end
|
|
@@ -198,6 +298,14 @@ module GroupDocsViewerCloud
|
|
|
198
298
|
invalid_properties.push("invalid value for 'is_responsive', is_responsive cannot be nil.")
|
|
199
299
|
end
|
|
200
300
|
|
|
301
|
+
if @minify.nil?
|
|
302
|
+
invalid_properties.push("invalid value for 'minify', minify cannot be nil.")
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
if @exclude_fonts.nil?
|
|
306
|
+
invalid_properties.push("invalid value for 'exclude_fonts', exclude_fonts cannot be nil.")
|
|
307
|
+
end
|
|
308
|
+
|
|
201
309
|
return invalid_properties
|
|
202
310
|
end
|
|
203
311
|
|
|
@@ -207,9 +315,12 @@ module GroupDocsViewerCloud
|
|
|
207
315
|
return false if @start_page_number.nil?
|
|
208
316
|
return false if @count_pages_to_render.nil?
|
|
209
317
|
return false if @render_comments.nil?
|
|
318
|
+
return false if @render_notes.nil?
|
|
210
319
|
return false if @render_hidden_pages.nil?
|
|
211
320
|
return false if @external_resources.nil?
|
|
212
321
|
return false if @is_responsive.nil?
|
|
322
|
+
return false if @minify.nil?
|
|
323
|
+
return false if @exclude_fonts.nil?
|
|
213
324
|
return true
|
|
214
325
|
end
|
|
215
326
|
|
|
@@ -220,17 +331,27 @@ module GroupDocsViewerCloud
|
|
|
220
331
|
self.class == other.class &&
|
|
221
332
|
start_page_number == other.start_page_number &&
|
|
222
333
|
count_pages_to_render == other.count_pages_to_render &&
|
|
334
|
+
pages_to_render == other.pages_to_render &&
|
|
335
|
+
page_rotations == other.page_rotations &&
|
|
223
336
|
default_font_name == other.default_font_name &&
|
|
224
337
|
default_encoding == other.default_encoding &&
|
|
225
338
|
render_comments == other.render_comments &&
|
|
339
|
+
render_notes == other.render_notes &&
|
|
226
340
|
render_hidden_pages == other.render_hidden_pages &&
|
|
227
341
|
spreadsheet_options == other.spreadsheet_options &&
|
|
228
342
|
cad_options == other.cad_options &&
|
|
229
343
|
email_options == other.email_options &&
|
|
230
344
|
project_management_options == other.project_management_options &&
|
|
345
|
+
pdf_document_options == other.pdf_document_options &&
|
|
346
|
+
word_processing_options == other.word_processing_options &&
|
|
347
|
+
outlook_options == other.outlook_options &&
|
|
348
|
+
archive_options == other.archive_options &&
|
|
231
349
|
external_resources == other.external_resources &&
|
|
232
350
|
resource_path == other.resource_path &&
|
|
233
|
-
is_responsive == other.is_responsive
|
|
351
|
+
is_responsive == other.is_responsive &&
|
|
352
|
+
minify == other.minify &&
|
|
353
|
+
exclude_fonts == other.exclude_fonts &&
|
|
354
|
+
fonts_to_exclude == other.fonts_to_exclude
|
|
234
355
|
end
|
|
235
356
|
|
|
236
357
|
# @see the `==` method
|
|
@@ -242,7 +363,7 @@ module GroupDocsViewerCloud
|
|
|
242
363
|
# Calculates hash code according to all attributes.
|
|
243
364
|
# @return [Fixnum] Hash code
|
|
244
365
|
def hash
|
|
245
|
-
[start_page_number, count_pages_to_render, default_font_name, default_encoding, render_comments, render_hidden_pages, spreadsheet_options, cad_options, email_options, project_management_options, external_resources, resource_path, is_responsive].hash
|
|
366
|
+
[start_page_number, count_pages_to_render, pages_to_render, page_rotations, default_font_name, default_encoding, render_comments, render_notes, render_hidden_pages, spreadsheet_options, cad_options, email_options, project_management_options, pdf_document_options, word_processing_options, outlook_options, archive_options, external_resources, resource_path, is_responsive, minify, exclude_fonts, fonts_to_exclude].hash
|
|
246
367
|
end
|
|
247
368
|
|
|
248
369
|
# Downcases first letter.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="html_resource.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="image_options.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -37,30 +37,51 @@ module GroupDocsViewerCloud
|
|
|
37
37
|
# Count pages which should be rendered
|
|
38
38
|
attr_accessor :count_pages_to_render
|
|
39
39
|
|
|
40
|
+
# Pages list to render. Ignored, if StartPageNumber and CountPagesToRender are provided
|
|
41
|
+
attr_accessor :pages_to_render
|
|
42
|
+
|
|
43
|
+
# Page rotations
|
|
44
|
+
attr_accessor :page_rotations
|
|
45
|
+
|
|
40
46
|
# Default font name may be specified in following cases: - You want to generally specify the default font to fall back on, if particular font in the document cannot be found during rendering. - Your document uses fonts, that contain non-English characters and you want to make sure any missing font is replaced with one that has the same character set available.
|
|
41
47
|
attr_accessor :default_font_name
|
|
42
48
|
|
|
43
49
|
# Default encoding for the plain text files such as .csv, .txt and .eml files when encoding is not specified in header
|
|
44
50
|
attr_accessor :default_encoding
|
|
45
51
|
|
|
46
|
-
# When enabled comments will be rendered to the output
|
|
52
|
+
# When enabled comments will be rendered to the output
|
|
47
53
|
attr_accessor :render_comments
|
|
48
54
|
|
|
55
|
+
# When enabled notes will be rendered to the output
|
|
56
|
+
attr_accessor :render_notes
|
|
57
|
+
|
|
49
58
|
# When enabled hidden pages, sheets or slides will be rendered to the output
|
|
50
59
|
attr_accessor :render_hidden_pages
|
|
51
60
|
|
|
52
|
-
# Rendering options for Spreadsheet file formats
|
|
61
|
+
# Rendering options for Spreadsheet source file formats Spreadsheet file formats include files with extensions: .xls, .xlsx, .xlsm, .xlsb, .csv, .ods, .ots, .xltx, .xltm, .tsv
|
|
53
62
|
attr_accessor :spreadsheet_options
|
|
54
63
|
|
|
55
|
-
# Rendering options for CAD file formats
|
|
64
|
+
# Rendering options for CAD source file formats CAD file formats include files with extensions: .dwg, .dxf, .dgn, .ifc, .stl
|
|
56
65
|
attr_accessor :cad_options
|
|
57
66
|
|
|
58
|
-
# Rendering options for Email file formats
|
|
67
|
+
# Rendering options for Email source file formats Email file formats include files with extensions: .msg, .eml, .emlx, .ifc, .stl
|
|
59
68
|
attr_accessor :email_options
|
|
60
69
|
|
|
61
|
-
# Rendering options for Project file formats
|
|
70
|
+
# Rendering options for MS Project source file formats Project file formats include files with extensions: .mpt, .mpp
|
|
62
71
|
attr_accessor :project_management_options
|
|
63
72
|
|
|
73
|
+
# Rendering options for PDF source file formats
|
|
74
|
+
attr_accessor :pdf_document_options
|
|
75
|
+
|
|
76
|
+
# Rendering options for WordProcessing source file formats
|
|
77
|
+
attr_accessor :word_processing_options
|
|
78
|
+
|
|
79
|
+
# Rendering options for Outlook source file formats
|
|
80
|
+
attr_accessor :outlook_options
|
|
81
|
+
|
|
82
|
+
# Rendering options for Archive source file formats
|
|
83
|
+
attr_accessor :archive_options
|
|
84
|
+
|
|
64
85
|
# Allows to specify output image width. Specify image width in case when you want to change output image dimensions. When Width has value and Height value is 0 then Height value will be calculated to save image proportions.
|
|
65
86
|
attr_accessor :width
|
|
66
87
|
|
|
@@ -78,14 +99,21 @@ module GroupDocsViewerCloud
|
|
|
78
99
|
{
|
|
79
100
|
:'start_page_number' => :'StartPageNumber',
|
|
80
101
|
:'count_pages_to_render' => :'CountPagesToRender',
|
|
102
|
+
:'pages_to_render' => :'PagesToRender',
|
|
103
|
+
:'page_rotations' => :'PageRotations',
|
|
81
104
|
:'default_font_name' => :'DefaultFontName',
|
|
82
105
|
:'default_encoding' => :'DefaultEncoding',
|
|
83
106
|
:'render_comments' => :'RenderComments',
|
|
107
|
+
:'render_notes' => :'RenderNotes',
|
|
84
108
|
:'render_hidden_pages' => :'RenderHiddenPages',
|
|
85
109
|
:'spreadsheet_options' => :'SpreadsheetOptions',
|
|
86
110
|
:'cad_options' => :'CadOptions',
|
|
87
111
|
:'email_options' => :'EmailOptions',
|
|
88
112
|
:'project_management_options' => :'ProjectManagementOptions',
|
|
113
|
+
:'pdf_document_options' => :'PdfDocumentOptions',
|
|
114
|
+
:'word_processing_options' => :'WordProcessingOptions',
|
|
115
|
+
:'outlook_options' => :'OutlookOptions',
|
|
116
|
+
:'archive_options' => :'ArchiveOptions',
|
|
89
117
|
:'width' => :'Width',
|
|
90
118
|
:'height' => :'Height',
|
|
91
119
|
:'extract_text' => :'ExtractText',
|
|
@@ -98,14 +126,21 @@ module GroupDocsViewerCloud
|
|
|
98
126
|
{
|
|
99
127
|
:'start_page_number' => :'Integer',
|
|
100
128
|
:'count_pages_to_render' => :'Integer',
|
|
129
|
+
:'pages_to_render' => :'Array<Integer>',
|
|
130
|
+
:'page_rotations' => :'Array<PageRotation>',
|
|
101
131
|
:'default_font_name' => :'String',
|
|
102
132
|
:'default_encoding' => :'String',
|
|
103
133
|
:'render_comments' => :'BOOLEAN',
|
|
134
|
+
:'render_notes' => :'BOOLEAN',
|
|
104
135
|
:'render_hidden_pages' => :'BOOLEAN',
|
|
105
136
|
:'spreadsheet_options' => :'SpreadsheetOptions',
|
|
106
137
|
:'cad_options' => :'CadOptions',
|
|
107
138
|
:'email_options' => :'EmailOptions',
|
|
108
139
|
:'project_management_options' => :'ProjectManagementOptions',
|
|
140
|
+
:'pdf_document_options' => :'PdfDocumentOptions',
|
|
141
|
+
:'word_processing_options' => :'WordProcessingOptions',
|
|
142
|
+
:'outlook_options' => :'OutlookOptions',
|
|
143
|
+
:'archive_options' => :'ArchiveOptions',
|
|
109
144
|
:'width' => :'Integer',
|
|
110
145
|
:'height' => :'Integer',
|
|
111
146
|
:'extract_text' => :'BOOLEAN',
|
|
@@ -129,6 +164,18 @@ module GroupDocsViewerCloud
|
|
|
129
164
|
self.count_pages_to_render = attributes[:'CountPagesToRender']
|
|
130
165
|
end
|
|
131
166
|
|
|
167
|
+
if attributes.key?(:'PagesToRender')
|
|
168
|
+
if (value = attributes[:'PagesToRender']).is_a?(Array)
|
|
169
|
+
self.pages_to_render = value
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
if attributes.key?(:'PageRotations')
|
|
174
|
+
if (value = attributes[:'PageRotations']).is_a?(Array)
|
|
175
|
+
self.page_rotations = value
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
|
|
132
179
|
if attributes.key?(:'DefaultFontName')
|
|
133
180
|
self.default_font_name = attributes[:'DefaultFontName']
|
|
134
181
|
end
|
|
@@ -141,6 +188,10 @@ module GroupDocsViewerCloud
|
|
|
141
188
|
self.render_comments = attributes[:'RenderComments']
|
|
142
189
|
end
|
|
143
190
|
|
|
191
|
+
if attributes.key?(:'RenderNotes')
|
|
192
|
+
self.render_notes = attributes[:'RenderNotes']
|
|
193
|
+
end
|
|
194
|
+
|
|
144
195
|
if attributes.key?(:'RenderHiddenPages')
|
|
145
196
|
self.render_hidden_pages = attributes[:'RenderHiddenPages']
|
|
146
197
|
end
|
|
@@ -161,6 +212,22 @@ module GroupDocsViewerCloud
|
|
|
161
212
|
self.project_management_options = attributes[:'ProjectManagementOptions']
|
|
162
213
|
end
|
|
163
214
|
|
|
215
|
+
if attributes.key?(:'PdfDocumentOptions')
|
|
216
|
+
self.pdf_document_options = attributes[:'PdfDocumentOptions']
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
if attributes.key?(:'WordProcessingOptions')
|
|
220
|
+
self.word_processing_options = attributes[:'WordProcessingOptions']
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
if attributes.key?(:'OutlookOptions')
|
|
224
|
+
self.outlook_options = attributes[:'OutlookOptions']
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
if attributes.key?(:'ArchiveOptions')
|
|
228
|
+
self.archive_options = attributes[:'ArchiveOptions']
|
|
229
|
+
end
|
|
230
|
+
|
|
164
231
|
if attributes.key?(:'Width')
|
|
165
232
|
self.width = attributes[:'Width']
|
|
166
233
|
end
|
|
@@ -195,6 +262,10 @@ module GroupDocsViewerCloud
|
|
|
195
262
|
invalid_properties.push("invalid value for 'render_comments', render_comments cannot be nil.")
|
|
196
263
|
end
|
|
197
264
|
|
|
265
|
+
if @render_notes.nil?
|
|
266
|
+
invalid_properties.push("invalid value for 'render_notes', render_notes cannot be nil.")
|
|
267
|
+
end
|
|
268
|
+
|
|
198
269
|
if @render_hidden_pages.nil?
|
|
199
270
|
invalid_properties.push("invalid value for 'render_hidden_pages', render_hidden_pages cannot be nil.")
|
|
200
271
|
end
|
|
@@ -224,6 +295,7 @@ module GroupDocsViewerCloud
|
|
|
224
295
|
return false if @start_page_number.nil?
|
|
225
296
|
return false if @count_pages_to_render.nil?
|
|
226
297
|
return false if @render_comments.nil?
|
|
298
|
+
return false if @render_notes.nil?
|
|
227
299
|
return false if @render_hidden_pages.nil?
|
|
228
300
|
return false if @width.nil?
|
|
229
301
|
return false if @height.nil?
|
|
@@ -239,14 +311,21 @@ module GroupDocsViewerCloud
|
|
|
239
311
|
self.class == other.class &&
|
|
240
312
|
start_page_number == other.start_page_number &&
|
|
241
313
|
count_pages_to_render == other.count_pages_to_render &&
|
|
314
|
+
pages_to_render == other.pages_to_render &&
|
|
315
|
+
page_rotations == other.page_rotations &&
|
|
242
316
|
default_font_name == other.default_font_name &&
|
|
243
317
|
default_encoding == other.default_encoding &&
|
|
244
318
|
render_comments == other.render_comments &&
|
|
319
|
+
render_notes == other.render_notes &&
|
|
245
320
|
render_hidden_pages == other.render_hidden_pages &&
|
|
246
321
|
spreadsheet_options == other.spreadsheet_options &&
|
|
247
322
|
cad_options == other.cad_options &&
|
|
248
323
|
email_options == other.email_options &&
|
|
249
324
|
project_management_options == other.project_management_options &&
|
|
325
|
+
pdf_document_options == other.pdf_document_options &&
|
|
326
|
+
word_processing_options == other.word_processing_options &&
|
|
327
|
+
outlook_options == other.outlook_options &&
|
|
328
|
+
archive_options == other.archive_options &&
|
|
250
329
|
width == other.width &&
|
|
251
330
|
height == other.height &&
|
|
252
331
|
extract_text == other.extract_text &&
|
|
@@ -262,7 +341,7 @@ module GroupDocsViewerCloud
|
|
|
262
341
|
# Calculates hash code according to all attributes.
|
|
263
342
|
# @return [Fixnum] Hash code
|
|
264
343
|
def hash
|
|
265
|
-
[start_page_number, count_pages_to_render, default_font_name, default_encoding, render_comments, render_hidden_pages, spreadsheet_options, cad_options, email_options, project_management_options, width, height, extract_text, jpeg_quality].hash
|
|
344
|
+
[start_page_number, count_pages_to_render, pages_to_render, page_rotations, default_font_name, default_encoding, render_comments, render_notes, render_hidden_pages, spreadsheet_options, cad_options, email_options, project_management_options, pdf_document_options, word_processing_options, outlook_options, archive_options, width, height, extract_text, jpeg_quality].hash
|
|
266
345
|
end
|
|
267
346
|
|
|
268
347
|
# Downcases first letter.
|