class AsposeSlidesCloud::PptxExportOptions

Provides options that control how a presentation is saved in PPTX format.

Attributes

conformance[RW]

The conformance class to which the PresentationML document conforms.

zip64_mode[RW]

Specifies whether the ZIP64 format is used for the Presentation document. The default value is Zip64Mode.IfNecessary.

Public Class Methods

attribute_map() click to toggle source

Attribute mapping from ruby-style variable name to JSON key.

# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 35
def self.attribute_map
  super.merge({
    :'conformance' => :'Conformance',
    :'zip64_mode' => :'Zip64Mode',
  })
end
new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Calls superclass method AsposeSlidesCloud::ExportOptions::new
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 52
def initialize(attributes = {})
  super

  if attributes.has_key?(:'Conformance')
    self.conformance = attributes[:'Conformance']
  end

  if attributes.has_key?(:'Zip64Mode')
    self.zip64_mode = attributes[:'Zip64Mode']
  end
  self.format = 'pptx'
end
swagger_types() click to toggle source

Attribute type mapping.

# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 43
def self.swagger_types
  super.merge({
    :'conformance' => :'String',
    :'zip64_mode' => :'String',
  })
end

Public Instance Methods

==(o) click to toggle source

Checks equality by comparing each attribute. @param [Object] Object to be compared

# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 105
def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      default_regular_font == o.default_regular_font &&
      gradient_style == o.gradient_style &&
      font_fallback_rules == o.font_fallback_rules &&
      font_subst_rules == o.font_subst_rules &&
      format == o.format &&
      conformance == o.conformance &&
      zip64_mode == o.zip64_mode
end
conformance=(conformance) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] conformance Object to be assigned

# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 85
def conformance=(conformance)
  validator = EnumAttributeValidator.new('String', ['Ecma376', 'Iso29500Transitional', 'Iso29500Strict'])
  unless validator.valid?(conformance)
    fail ArgumentError, 'invalid value for "conformance", must be one of #{validator.allowable_values}.'
  end
  @conformance = conformance
end
eql?(o) click to toggle source

@see the ‘==` method @param [Object] Object to be compared

# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 119
def eql?(o)
  self == o
end
hash() click to toggle source

Calculates hash code according to all attributes. @return [Fixnum] Hash code

# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 125
def hash
  [default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, conformance, zip64_mode].hash
end
list_invalid_properties() click to toggle source

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 67
def list_invalid_properties
  invalid_properties = super
  invalid_properties
end
valid?() click to toggle source

Check to see if the all the properties in the model are valid @return true if the model is valid

Calls superclass method AsposeSlidesCloud::ExportOptions#valid?
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 74
def valid?
  return false if !super
  conformance_validator = EnumAttributeValidator.new('String', ['Ecma376', 'Iso29500Transitional', 'Iso29500Strict'])
  return false unless conformance_validator.valid?(@conformance)
  zip64_mode_validator = EnumAttributeValidator.new('String', ['Never', 'IfNecessary', 'Always'])
  return false unless zip64_mode_validator.valid?(@zip64_mode)
  true
end
zip64_mode=(zip64_mode) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] zip64_mode Object to be assigned

# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 95
def zip64_mode=(zip64_mode)
  validator = EnumAttributeValidator.new('String', ['Never', 'IfNecessary', 'Always'])
  unless validator.valid?(zip64_mode)
    fail ArgumentError, 'invalid value for "zip64_mode", must be one of #{validator.allowable_values}.'
  end
  @zip64_mode = zip64_mode
end