Class: AsposeWordsCloud::RenderPageOnlineRequest

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

Overview

Request model for render_page_online operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(document, page_index, format, load_encoding = nil, password = nil, fonts_location = nil) ⇒ RenderPageOnlineRequest

Initializes a new instance.

Parameters:

  • document

    The document.

  • page_index

    The index of the page.

  • format

    The destination format.

  • load_encoding (defaults to: nil)

    Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.

  • password (defaults to: nil)

    Password for opening an encrypted document.

  • 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/render_page_online_request.rb', line 59

def initialize(document, page_index, format, load_encoding = nil, password = nil, fonts_location = nil)
  self.document = document
  self.page_index = page_index
  self.format = format
  self.load_encoding = load_encoding
  self.password = password
  self.fonts_location = fonts_location
end

Instance Attribute Details

#documentObject

The document.



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

def document
  @document
end

#fonts_locationObject

Folder in filestorage with custom fonts.



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

def fonts_location
  @fonts_location
end

#formatObject

The destination format.



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

def format
  @format
end

#load_encodingObject

Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.



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

def load_encoding
  @load_encoding
end

#page_indexObject

The index of the page.



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

def page_index
  @page_index
end

#passwordObject

Password for opening an encrypted document.



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

def password
  @password
end