groupdocs_viewer_cloud 18.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/groupdocs_viewer_cloud.rb +104 -0
- data/lib/groupdocs_viewer_cloud/api/viewer_api.rb +5296 -0
- data/lib/groupdocs_viewer_cloud/api_client.rb +390 -0
- data/lib/groupdocs_viewer_cloud/api_error.rb +56 -0
- data/lib/groupdocs_viewer_cloud/configuration.rb +95 -0
- data/lib/groupdocs_viewer_cloud/models/attachment.rb +216 -0
- data/lib/groupdocs_viewer_cloud/models/attachment_collection.rb +228 -0
- data/lib/groupdocs_viewer_cloud/models/attachment_info.rb +226 -0
- data/lib/groupdocs_viewer_cloud/models/cad_options.rb +270 -0
- data/lib/groupdocs_viewer_cloud/models/cells_options.rb +296 -0
- data/lib/groupdocs_viewer_cloud/models/document_info.rb +282 -0
- data/lib/groupdocs_viewer_cloud/models/document_info_options.rb +348 -0
- data/lib/groupdocs_viewer_cloud/models/email_options.rb +228 -0
- data/lib/groupdocs_viewer_cloud/models/field_label.rb +216 -0
- data/lib/groupdocs_viewer_cloud/models/file_response.rb +196 -0
- data/lib/groupdocs_viewer_cloud/models/font_collection.rb +208 -0
- data/lib/groupdocs_viewer_cloud/models/font_family.rb +206 -0
- data/lib/groupdocs_viewer_cloud/models/format.rb +216 -0
- data/lib/groupdocs_viewer_cloud/models/format_collection.rb +208 -0
- data/lib/groupdocs_viewer_cloud/models/html_attachment_page_collection.rb +238 -0
- data/lib/groupdocs_viewer_cloud/models/html_options.rb +428 -0
- data/lib/groupdocs_viewer_cloud/models/html_page.rb +228 -0
- data/lib/groupdocs_viewer_cloud/models/html_page_collection.rb +228 -0
- data/lib/groupdocs_viewer_cloud/models/image_attachment_page_collection.rb +238 -0
- data/lib/groupdocs_viewer_cloud/models/image_options.rb +408 -0
- data/lib/groupdocs_viewer_cloud/models/image_page.rb +216 -0
- data/lib/groupdocs_viewer_cloud/models/image_page_collection.rb +238 -0
- data/lib/groupdocs_viewer_cloud/models/page_info.rb +268 -0
- data/lib/groupdocs_viewer_cloud/models/page_info_collection.rb +208 -0
- data/lib/groupdocs_viewer_cloud/models/pdf_file_info.rb +236 -0
- data/lib/groupdocs_viewer_cloud/models/pdf_file_options.rb +348 -0
- data/lib/groupdocs_viewer_cloud/models/pdf_options.rb +236 -0
- data/lib/groupdocs_viewer_cloud/models/project_options.rb +216 -0
- data/lib/groupdocs_viewer_cloud/models/render_options.rb +368 -0
- data/lib/groupdocs_viewer_cloud/models/render_options_base.rb +348 -0
- data/lib/groupdocs_viewer_cloud/models/reorder_options.rb +226 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_attachment_pages_cache_request.rb +65 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_pages_cache_from_content_request.rb +65 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_pages_cache_from_url_request.rb +65 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_pages_cache_request.rb +61 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_pdf_file_from_content_request.rb +65 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_pdf_file_from_url_request.rb +65 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_pdf_file_request.rb +61 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_delete_attachment_pages_cache_request.rb +57 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_delete_pages_cache_request.rb +53 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_info_request.rb +65 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_info_with_options_request.rb +61 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_page_request.rb +109 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_page_resource_request.rb +65 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_pages_request.rb +113 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_request.rb +61 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachments_request.rb +57 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_document_info_from_content_request.rb +61 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_document_info_from_url_request.rb +69 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_document_info_from_url_with_options_request.rb +61 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_document_info_request.rb +65 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_document_info_with_options_request.rb +57 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_page_request.rb +101 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_page_resource_request.rb +61 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_pages_from_url_request.rb +109 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_pages_request.rb +105 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_pdf_file_from_url_request.rb +77 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_pdf_file_request.rb +73 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_zip_with_attachment_pages_request.rb +113 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_zip_with_pages_request.rb +105 -0
- data/lib/groupdocs_viewer_cloud/models/requests/html_transform_pages_request.rb +57 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_attachment_pages_cache_request.rb +65 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_pages_cache_from_content_request.rb +65 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_pages_cache_from_url_request.rb +65 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_pages_cache_request.rb +61 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_pdf_file_from_content_request.rb +65 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_pdf_file_from_url_request.rb +65 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_pdf_file_request.rb +61 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_delete_attachment_pages_cache_request.rb +57 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_delete_pages_cache_request.rb +53 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_info_request.rb +69 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_info_with_options_request.rb +61 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_page_request.rb +105 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_pages_request.rb +109 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_request.rb +61 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachments_request.rb +57 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_document_info_from_content_request.rb +61 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_document_info_from_url_request.rb +73 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_document_info_from_url_with_options_request.rb +61 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_document_info_request.rb +69 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_document_info_with_options_request.rb +57 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_page_request.rb +97 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_pages_from_url_request.rb +105 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_pages_request.rb +101 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_pdf_file_from_url_request.rb +77 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_pdf_file_request.rb +73 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_zip_with_attachment_pages_request.rb +109 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_zip_with_pages_request.rb +101 -0
- data/lib/groupdocs_viewer_cloud/models/requests/image_transform_pages_request.rb +57 -0
- data/lib/groupdocs_viewer_cloud/models/resource.rb +216 -0
- data/lib/groupdocs_viewer_cloud/models/resource_url.rb +206 -0
- data/lib/groupdocs_viewer_cloud/models/rotate_options.rb +226 -0
- data/lib/groupdocs_viewer_cloud/models/row_info.rb +270 -0
- data/lib/groupdocs_viewer_cloud/models/slides_options.rb +206 -0
- data/lib/groupdocs_viewer_cloud/models/tile.rb +236 -0
- data/lib/groupdocs_viewer_cloud/models/transform_options_base.rb +216 -0
- data/lib/groupdocs_viewer_cloud/models/watermark.rb +236 -0
- data/lib/groupdocs_viewer_cloud/models/words_options.rb +216 -0
- data/lib/groupdocs_viewer_cloud/version.rb +29 -0
- metadata +235 -0
@@ -0,0 +1,53 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="image_delete_pages_cache_request.rb">
|
4
|
+
# Copyright (c) 2003-2018 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
|
+
module GroupDocsViewerCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for image_delete_pages_cache operation.
|
32
|
+
#
|
33
|
+
class ImageDeletePagesCacheRequest
|
34
|
+
|
35
|
+
# The file name.
|
36
|
+
attr_accessor :file_name
|
37
|
+
# The folder which contains specified file in storage.
|
38
|
+
attr_accessor :folder
|
39
|
+
# The file storage which have to be used.
|
40
|
+
attr_accessor :storage
|
41
|
+
|
42
|
+
#
|
43
|
+
# Initializes a new instance.
|
44
|
+
# @param file_name The file name.
|
45
|
+
# @param folder The folder which contains specified file in storage.
|
46
|
+
# @param storage The file storage which have to be used.
|
47
|
+
def initialize(file_name, folder = nil, storage = nil)
|
48
|
+
self.file_name = file_name
|
49
|
+
self.folder = folder
|
50
|
+
self.storage = storage
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="image_get_attachment_info_request.rb">
|
4
|
+
# Copyright (c) 2003-2018 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
|
+
module GroupDocsViewerCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for image_get_attachment_info operation.
|
32
|
+
#
|
33
|
+
class ImageGetAttachmentInfoRequest
|
34
|
+
|
35
|
+
# The file name.
|
36
|
+
attr_accessor :file_name
|
37
|
+
# The attachment name.
|
38
|
+
attr_accessor :attachment_name
|
39
|
+
# When this options is set to true text contained in document will be extracted and returned along with other information.
|
40
|
+
attr_accessor :extract_text
|
41
|
+
# The document password.
|
42
|
+
attr_accessor :password
|
43
|
+
# The attachment password.
|
44
|
+
attr_accessor :attachment_password
|
45
|
+
# The folder which contains specified file in storage.
|
46
|
+
attr_accessor :folder
|
47
|
+
# The file storage which have to be used.
|
48
|
+
attr_accessor :storage
|
49
|
+
|
50
|
+
#
|
51
|
+
# Initializes a new instance.
|
52
|
+
# @param file_name The file name.
|
53
|
+
# @param attachment_name The attachment name.
|
54
|
+
# @param extract_text When this options is set to true text contained in document will be extracted and returned along with other information.
|
55
|
+
# @param password The document password.
|
56
|
+
# @param attachment_password The attachment password.
|
57
|
+
# @param folder The folder which contains specified file in storage.
|
58
|
+
# @param storage The file storage which have to be used.
|
59
|
+
def initialize(file_name, attachment_name, extract_text = nil, password = nil, attachment_password = nil, folder = nil, storage = nil)
|
60
|
+
self.file_name = file_name
|
61
|
+
self.attachment_name = attachment_name
|
62
|
+
self.extract_text = extract_text
|
63
|
+
self.password = password
|
64
|
+
self.attachment_password = attachment_password
|
65
|
+
self.folder = folder
|
66
|
+
self.storage = storage
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_info_with_options_request.rb
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="image_get_attachment_info_with_options_request.rb">
|
4
|
+
# Copyright (c) 2003-2018 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
|
+
module GroupDocsViewerCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for image_get_attachment_info_with_options operation.
|
32
|
+
#
|
33
|
+
class ImageGetAttachmentInfoWithOptionsRequest
|
34
|
+
|
35
|
+
# The file name.
|
36
|
+
attr_accessor :file_name
|
37
|
+
# The attachment name.
|
38
|
+
attr_accessor :attachment_name
|
39
|
+
# The rendering options.
|
40
|
+
attr_accessor :document_info_options
|
41
|
+
# The folder which contains specified file in storage.
|
42
|
+
attr_accessor :folder
|
43
|
+
# The file storage which have to be used.
|
44
|
+
attr_accessor :storage
|
45
|
+
|
46
|
+
#
|
47
|
+
# Initializes a new instance.
|
48
|
+
# @param file_name The file name.
|
49
|
+
# @param attachment_name The attachment name.
|
50
|
+
# @param document_info_options The rendering options.
|
51
|
+
# @param folder The folder which contains specified file in storage.
|
52
|
+
# @param storage The file storage which have to be used.
|
53
|
+
def initialize(file_name, attachment_name, document_info_options = nil, folder = nil, storage = nil)
|
54
|
+
self.file_name = file_name
|
55
|
+
self.attachment_name = attachment_name
|
56
|
+
self.document_info_options = document_info_options
|
57
|
+
self.folder = folder
|
58
|
+
self.storage = storage
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,105 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="image_get_attachment_page_request.rb">
|
4
|
+
# Copyright (c) 2003-2018 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
|
+
module GroupDocsViewerCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for image_get_attachment_page operation.
|
32
|
+
#
|
33
|
+
class ImageGetAttachmentPageRequest
|
34
|
+
|
35
|
+
# The file name.
|
36
|
+
attr_accessor :file_name
|
37
|
+
# Name of the attachment.
|
38
|
+
attr_accessor :attachment_name
|
39
|
+
# The attachment page number.
|
40
|
+
attr_accessor :page_number
|
41
|
+
# The image format (jpg, png or bmp). Default value is png.
|
42
|
+
attr_accessor :format
|
43
|
+
# The image width.
|
44
|
+
attr_accessor :width
|
45
|
+
# The image height.
|
46
|
+
attr_accessor :height
|
47
|
+
# The image quality for jpg format. Default value is 90.
|
48
|
+
attr_accessor :quality
|
49
|
+
# The document password.
|
50
|
+
attr_accessor :password
|
51
|
+
# The attachment password.
|
52
|
+
attr_accessor :attachment_password
|
53
|
+
# When this options is set to true text contained in document will be extracted and returned along with other information.
|
54
|
+
attr_accessor :extract_text
|
55
|
+
# Allows to render document comments.
|
56
|
+
attr_accessor :render_comments
|
57
|
+
# Enables rendering of document hidden pages, sheets or slides.
|
58
|
+
attr_accessor :render_hidden_pages
|
59
|
+
# The name of the default font.
|
60
|
+
attr_accessor :default_font_name
|
61
|
+
# The folder with custom fonts in storage.
|
62
|
+
attr_accessor :fonts_folder
|
63
|
+
# The folder which contains specified file in storage.
|
64
|
+
attr_accessor :folder
|
65
|
+
# The file storage which have to be used.
|
66
|
+
attr_accessor :storage
|
67
|
+
|
68
|
+
#
|
69
|
+
# Initializes a new instance.
|
70
|
+
# @param file_name The file name.
|
71
|
+
# @param attachment_name Name of the attachment.
|
72
|
+
# @param page_number The attachment page number.
|
73
|
+
# @param format The image format (jpg, png or bmp). Default value is png.
|
74
|
+
# @param width The image width.
|
75
|
+
# @param height The image height.
|
76
|
+
# @param quality The image quality for jpg format. Default value is 90.
|
77
|
+
# @param password The document password.
|
78
|
+
# @param attachment_password The attachment password.
|
79
|
+
# @param extract_text When this options is set to true text contained in document will be extracted and returned along with other information.
|
80
|
+
# @param render_comments Allows to render document comments.
|
81
|
+
# @param render_hidden_pages Enables rendering of document hidden pages, sheets or slides.
|
82
|
+
# @param default_font_name The name of the default font.
|
83
|
+
# @param fonts_folder The folder with custom fonts in storage.
|
84
|
+
# @param folder The folder which contains specified file in storage.
|
85
|
+
# @param storage The file storage which have to be used.
|
86
|
+
def initialize(file_name, attachment_name, page_number, format = nil, width = nil, height = nil, quality = nil, password = nil, attachment_password = nil, extract_text = nil, render_comments = nil, render_hidden_pages = nil, default_font_name = nil, fonts_folder = nil, folder = nil, storage = nil)
|
87
|
+
self.file_name = file_name
|
88
|
+
self.attachment_name = attachment_name
|
89
|
+
self.page_number = page_number
|
90
|
+
self.format = format
|
91
|
+
self.width = width
|
92
|
+
self.height = height
|
93
|
+
self.quality = quality
|
94
|
+
self.password = password
|
95
|
+
self.attachment_password = attachment_password
|
96
|
+
self.extract_text = extract_text
|
97
|
+
self.render_comments = render_comments
|
98
|
+
self.render_hidden_pages = render_hidden_pages
|
99
|
+
self.default_font_name = default_font_name
|
100
|
+
self.fonts_folder = fonts_folder
|
101
|
+
self.folder = folder
|
102
|
+
self.storage = storage
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
@@ -0,0 +1,109 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="image_get_attachment_pages_request.rb">
|
4
|
+
# Copyright (c) 2003-2018 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
|
+
module GroupDocsViewerCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for image_get_attachment_pages operation.
|
32
|
+
#
|
33
|
+
class ImageGetAttachmentPagesRequest
|
34
|
+
|
35
|
+
# The file name.
|
36
|
+
attr_accessor :file_name
|
37
|
+
# The attachment name.
|
38
|
+
attr_accessor :attachment_name
|
39
|
+
# The image format (jpg, png or bmp). Default value is png.
|
40
|
+
attr_accessor :format
|
41
|
+
# The image width.
|
42
|
+
attr_accessor :width
|
43
|
+
# The image height.
|
44
|
+
attr_accessor :height
|
45
|
+
# The image quality for jpg format. Default value is 90.
|
46
|
+
attr_accessor :quality
|
47
|
+
# The starting document page number to render.
|
48
|
+
attr_accessor :start_page_number
|
49
|
+
# The count of document pages to render.
|
50
|
+
attr_accessor :count_pages
|
51
|
+
# Allows to render document comments.
|
52
|
+
attr_accessor :render_comments
|
53
|
+
# Enables rendering of document hidden pages, sheets or slides.
|
54
|
+
attr_accessor :render_hidden_pages
|
55
|
+
# The document password.
|
56
|
+
attr_accessor :password
|
57
|
+
# The attachment password.
|
58
|
+
attr_accessor :attachment_password
|
59
|
+
# When this options is set to true text contained in document will be extracted and returned along with other information.
|
60
|
+
attr_accessor :extract_text
|
61
|
+
# The name of the default font.
|
62
|
+
attr_accessor :default_font_name
|
63
|
+
# The folder with custom fonts in storage.
|
64
|
+
attr_accessor :fonts_folder
|
65
|
+
# The folder which contains specified file in storage.
|
66
|
+
attr_accessor :folder
|
67
|
+
# The file storage which have to be used.
|
68
|
+
attr_accessor :storage
|
69
|
+
|
70
|
+
#
|
71
|
+
# Initializes a new instance.
|
72
|
+
# @param file_name The file name.
|
73
|
+
# @param attachment_name The attachment name.
|
74
|
+
# @param format The image format (jpg, png or bmp). Default value is png.
|
75
|
+
# @param width The image width.
|
76
|
+
# @param height The image height.
|
77
|
+
# @param quality The image quality for jpg format. Default value is 90.
|
78
|
+
# @param start_page_number The starting document page number to render.
|
79
|
+
# @param count_pages The count of document pages to render.
|
80
|
+
# @param render_comments Allows to render document comments.
|
81
|
+
# @param render_hidden_pages Enables rendering of document hidden pages, sheets or slides.
|
82
|
+
# @param password The document password.
|
83
|
+
# @param attachment_password The attachment password.
|
84
|
+
# @param extract_text When this options is set to true text contained in document will be extracted and returned along with other information.
|
85
|
+
# @param default_font_name The name of the default font.
|
86
|
+
# @param fonts_folder The folder with custom fonts in storage.
|
87
|
+
# @param folder The folder which contains specified file in storage.
|
88
|
+
# @param storage The file storage which have to be used.
|
89
|
+
def initialize(file_name, attachment_name, format = nil, width = nil, height = nil, quality = nil, start_page_number = nil, count_pages = nil, render_comments = nil, render_hidden_pages = nil, password = nil, attachment_password = nil, extract_text = nil, default_font_name = nil, fonts_folder = nil, folder = nil, storage = nil)
|
90
|
+
self.file_name = file_name
|
91
|
+
self.attachment_name = attachment_name
|
92
|
+
self.format = format
|
93
|
+
self.width = width
|
94
|
+
self.height = height
|
95
|
+
self.quality = quality
|
96
|
+
self.start_page_number = start_page_number
|
97
|
+
self.count_pages = count_pages
|
98
|
+
self.render_comments = render_comments
|
99
|
+
self.render_hidden_pages = render_hidden_pages
|
100
|
+
self.password = password
|
101
|
+
self.attachment_password = attachment_password
|
102
|
+
self.extract_text = extract_text
|
103
|
+
self.default_font_name = default_font_name
|
104
|
+
self.fonts_folder = fonts_folder
|
105
|
+
self.folder = folder
|
106
|
+
self.storage = storage
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="image_get_attachment_request.rb">
|
4
|
+
# Copyright (c) 2003-2018 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
|
+
module GroupDocsViewerCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for image_get_attachment operation.
|
32
|
+
#
|
33
|
+
class ImageGetAttachmentRequest
|
34
|
+
|
35
|
+
# The file name.
|
36
|
+
attr_accessor :file_name
|
37
|
+
# Name of the attachment.
|
38
|
+
attr_accessor :attachment_name
|
39
|
+
# The document password.
|
40
|
+
attr_accessor :password
|
41
|
+
# The folder which contains specified file in storage.
|
42
|
+
attr_accessor :folder
|
43
|
+
# The file storage which have to be used.
|
44
|
+
attr_accessor :storage
|
45
|
+
|
46
|
+
#
|
47
|
+
# Initializes a new instance.
|
48
|
+
# @param file_name The file name.
|
49
|
+
# @param attachment_name Name of the attachment.
|
50
|
+
# @param password The document password.
|
51
|
+
# @param folder The folder which contains specified file in storage.
|
52
|
+
# @param storage The file storage which have to be used.
|
53
|
+
def initialize(file_name, attachment_name, password = nil, folder = nil, storage = nil)
|
54
|
+
self.file_name = file_name
|
55
|
+
self.attachment_name = attachment_name
|
56
|
+
self.password = password
|
57
|
+
self.folder = folder
|
58
|
+
self.storage = storage
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|