Class: GroupDocsViewerCloud::ConvertAndDownloadRequest
- Inherits:
-
Object
- Object
- GroupDocsViewerCloud::ConvertAndDownloadRequest
- Defined in:
- lib/groupdocs_viewer_cloud/api/view_api.rb
Overview
Request model for convert_and_download operation.
Instance Attribute Summary collapse
-
#file ⇒ Object
Input file to convert.
-
#format ⇒ Object
Requested conversion format: HTML, JPG, PNG or PDF.
-
#pages ⇒ Object
Pages range to render, like "1,2" or "3-5,10".
-
#password ⇒ Object
Input document password.
Instance Method Summary collapse
-
#initialize(format, file, pages = nil, password = nil) ⇒ ConvertAndDownloadRequest
constructor
Initializes a new instance.
Constructor Details
#initialize(format, file, pages = nil, password = nil) ⇒ ConvertAndDownloadRequest
Initializes a new instance.
340 341 342 343 344 345 |
# File 'lib/groupdocs_viewer_cloud/api/view_api.rb', line 340 def initialize(format, file, pages = nil, password = nil) self.format = format self.file = file self.pages = pages self.password = password end |
Instance Attribute Details
#file ⇒ Object
Input file to convert
328 329 330 |
# File 'lib/groupdocs_viewer_cloud/api/view_api.rb', line 328 def file @file end |
#format ⇒ Object
Requested conversion format: HTML, JPG, PNG or PDF
326 327 328 |
# File 'lib/groupdocs_viewer_cloud/api/view_api.rb', line 326 def format @format end |
#pages ⇒ Object
Pages range to render, like "1,2" or "3-5,10"
330 331 332 |
# File 'lib/groupdocs_viewer_cloud/api/view_api.rb', line 330 def pages @pages end |
#password ⇒ Object
Input document password
332 333 334 |
# File 'lib/groupdocs_viewer_cloud/api/view_api.rb', line 332 def password @password end |