Class: AsposeWordsCloud::ConvertDocumentRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose_words_cloud/models/requests/convert_document_request.rb

Overview

Request model for convert_document operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(document, format, storage = nil, out_path = nil, file_name_field_value = nil, fonts_location = nil) ⇒ ConvertDocumentRequest

Initializes a new instance.

Parameters:

  • document

    Converting document.

  • format

    Format to convert.

  • storage (defaults to: nil)

    Original document storage.

  • out_path (defaults to: nil)

    Path for saving operation result to the local storage.

  • file_name_field_value (defaults to: nil)

    This file name will be used when resulting document has dynamic field for document file name filename. If it is not set, “sourceFilename” will be used instead.

  • fonts_location (defaults to: nil)

    Folder in filestorage with custom fonts.



59
60
61
62
63
64
65
66
# File 'lib/aspose_words_cloud/models/requests/convert_document_request.rb', line 59

def initialize(document, format, storage = nil, out_path = nil, file_name_field_value = nil, fonts_location = nil)
  self.document = document
  self.format = format
  self.storage = storage
  self.out_path = out_path
  self.file_name_field_value = file_name_field_value
  self.fonts_location = fonts_location
end

Instance Attribute Details

#documentObject

Converting document.



33
34
35
# File 'lib/aspose_words_cloud/models/requests/convert_document_request.rb', line 33

def document
  @document
end

#file_name_field_valueObject

This file name will be used when resulting document has dynamic field for document file name filename. If it is not set, “sourceFilename” will be used instead.



45
46
47
# File 'lib/aspose_words_cloud/models/requests/convert_document_request.rb', line 45

def file_name_field_value
  @file_name_field_value
end

#fonts_locationObject

Folder in filestorage with custom fonts.



48
49
50
# File 'lib/aspose_words_cloud/models/requests/convert_document_request.rb', line 48

def fonts_location
  @fonts_location
end

#formatObject

Format to convert.



36
37
38
# File 'lib/aspose_words_cloud/models/requests/convert_document_request.rb', line 36

def format
  @format
end

#out_pathObject

Path for saving operation result to the local storage.



42
43
44
# File 'lib/aspose_words_cloud/models/requests/convert_document_request.rb', line 42

def out_path
  @out_path
end

#storageObject

Original document storage.



39
40
41
# File 'lib/aspose_words_cloud/models/requests/convert_document_request.rb', line 39

def storage
  @storage
end