Class: AsposeSlidesCloud::PdfExportOptions

Inherits:
BaseObject
  • Object
show all
Defined in:
lib/aspose_slides_cloud/models/pdf_export_options.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseObject

#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s

Constructor Details

#initialize(attributes = {}) ⇒ PdfExportOptions

Returns a new instance of PdfExportOptions.



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# File 'lib/aspose_slides_cloud/models/pdf_export_options.rb', line 51

def initialize(attributes = {})
  return if !attributes.is_a?(Hash) || attributes.empty?

  # convert string to symbol for hash key
  attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}

  
  if attributes[:'TextCompression']
    self.text_compression = attributes[:'TextCompression']
  end
  
  if attributes[:'EmbedFullFonts']
    self.embed_full_fonts = attributes[:'EmbedFullFonts']
  end
  
  if attributes[:'Compliance']
    self.compliance = attributes[:'Compliance']
  end
  
  if attributes[:'JpegQuality']
    self.jpeg_quality = attributes[:'JpegQuality']
  end
  
  if attributes[:'SaveMetafilesAsPng']
    self.save_metafiles_as_png = attributes[:'SaveMetafilesAsPng']
  end
  
  if attributes[:'Password']
    self.password = attributes[:'Password']
  end
  
  if attributes[:'EmbedTrueTypeFontsForASCII']
    self.embed_true_type_fonts_for_ascii = attributes[:'EmbedTrueTypeFontsForASCII']
  end
  
  if attributes[:'ExportFormat']
    self.export_format = attributes[:'ExportFormat']
  end
  
end

Instance Attribute Details

#complianceObject

Returns the value of attribute compliance.



4
5
6
# File 'lib/aspose_slides_cloud/models/pdf_export_options.rb', line 4

def compliance
  @compliance
end

#embed_full_fontsObject

Returns the value of attribute embed_full_fonts.



4
5
6
# File 'lib/aspose_slides_cloud/models/pdf_export_options.rb', line 4

def embed_full_fonts
  @embed_full_fonts
end

#embed_true_type_fonts_for_asciiObject

Returns the value of attribute embed_true_type_fonts_for_ascii.



4
5
6
# File 'lib/aspose_slides_cloud/models/pdf_export_options.rb', line 4

def embed_true_type_fonts_for_ascii
  @embed_true_type_fonts_for_ascii
end

#export_formatObject

Returns the value of attribute export_format.



4
5
6
# File 'lib/aspose_slides_cloud/models/pdf_export_options.rb', line 4

def export_format
  @export_format
end

#jpeg_qualityObject

Returns the value of attribute jpeg_quality.



4
5
6
# File 'lib/aspose_slides_cloud/models/pdf_export_options.rb', line 4

def jpeg_quality
  @jpeg_quality
end

#passwordObject

Returns the value of attribute password.



4
5
6
# File 'lib/aspose_slides_cloud/models/pdf_export_options.rb', line 4

def password
  @password
end

#save_metafiles_as_pngObject

Returns the value of attribute save_metafiles_as_png.



4
5
6
# File 'lib/aspose_slides_cloud/models/pdf_export_options.rb', line 4

def save_metafiles_as_png
  @save_metafiles_as_png
end

#text_compressionObject

Returns the value of attribute text_compression.



4
5
6
# File 'lib/aspose_slides_cloud/models/pdf_export_options.rb', line 4

def text_compression
  @text_compression
end

Class Method Details

.attribute_mapObject

attribute mapping from ruby-style variable name to JSON key



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/aspose_slides_cloud/models/pdf_export_options.rb', line 6

def self.attribute_map
  {
    
    # 
    :'text_compression' => :'TextCompression',
    
    # 
    :'embed_full_fonts' => :'EmbedFullFonts',
    
    # 
    :'compliance' => :'Compliance',
    
    # 
    :'jpeg_quality' => :'JpegQuality',
    
    # 
    :'save_metafiles_as_png' => :'SaveMetafilesAsPng',
    
    # 
    :'password' => :'Password',
    
    # 
    :'embed_true_type_fonts_for_ascii' => :'EmbedTrueTypeFontsForASCII',
    
    # 
    :'export_format' => :'ExportFormat'
    
  }
end

.swagger_typesObject

attribute type



37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/aspose_slides_cloud/models/pdf_export_options.rb', line 37

def self.swagger_types
  {
    :'text_compression' => :'String',
    :'embed_full_fonts' => :'BOOLEAN',
    :'compliance' => :'String',
    :'jpeg_quality' => :'String',
    :'save_metafiles_as_png' => :'BOOLEAN',
    :'password' => :'String',
    :'embed_true_type_fonts_for_ascii' => :'BOOLEAN',
    :'export_format' => :'String'
    
  }
end