Class: GroupDocsConversionCloud::ConvertDocumentDirectRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/groupdocs_conversion_cloud/api/convert_api.rb

Overview

Request model for convert_document_direct operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(format, file, from_page = nil, pages_count = nil, load_options = nil, convert_options = nil) ⇒ ConvertDocumentDirectRequest

Initializes a new instance.

Parameters:

  • format

    Requested conversion format

  • file

    Input file to convert

  • from_page (defaults to: nil)

    Page start conversion from

  • pages_count (defaults to: nil)

    Number of pages to convert

  • load_options (defaults to: nil)

    Input file load options

  • convert_options (defaults to: nil)

    Conversion options



343
344
345
346
347
348
349
350
# File 'lib/groupdocs_conversion_cloud/api/convert_api.rb', line 343

def initialize(format, file, from_page = nil, pages_count = nil, load_options = nil, convert_options = nil)
   self.format = format
   self.file = file
   self.from_page = from_page
   self.pages_count = pages_count
   self.load_options = load_options
   self.convert_options = convert_options
end

Instance Attribute Details

#convert_optionsObject

Conversion options



333
334
335
# File 'lib/groupdocs_conversion_cloud/api/convert_api.rb', line 333

def convert_options
  @convert_options
end

#fileObject

Input file to convert



325
326
327
# File 'lib/groupdocs_conversion_cloud/api/convert_api.rb', line 325

def file
  @file
end

#formatObject

Requested conversion format



323
324
325
# File 'lib/groupdocs_conversion_cloud/api/convert_api.rb', line 323

def format
  @format
end

#from_pageObject

Page start conversion from



327
328
329
# File 'lib/groupdocs_conversion_cloud/api/convert_api.rb', line 327

def from_page
  @from_page
end

#load_optionsObject

Input file load options



331
332
333
# File 'lib/groupdocs_conversion_cloud/api/convert_api.rb', line 331

def load_options
  @load_options
end

#pages_countObject

Number of pages to convert



329
330
331
# File 'lib/groupdocs_conversion_cloud/api/convert_api.rb', line 329

def pages_count
  @pages_count
end