Class: GroupDocsViewerCloud::ConvertAndDownloadRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/groupdocs_viewer_cloud/api/view_api.rb

Overview

Request model for convert_and_download operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(format, file, pages = nil, password = nil) ⇒ ConvertAndDownloadRequest

Initializes a new instance.

Parameters:

  • format

    Requested conversion format: HTML, JPG, PNG or PDF

  • file

    Input file to convert

  • pages (defaults to: nil)

    Pages range to render, like "1,2" or "3-5,10"

  • password (defaults to: nil)

    Input document password



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

#fileObject

Input file to convert



328
329
330
# File 'lib/groupdocs_viewer_cloud/api/view_api.rb', line 328

def file
  @file
end

#formatObject

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

#pagesObject

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

#passwordObject

Input document password



332
333
334
# File 'lib/groupdocs_viewer_cloud/api/view_api.rb', line 332

def password
  @password
end