class AsposeSlidesCloud::MarkdownExportOptions
Provides options that control how a presentation is saved in Html5 format.
Attributes
Specifies markdown specification to convert presentation. Default is TextOnly.
Specifies markdown specification to convert presentation. Default is MultiMarkdown.
Specifies how repeated space characters are preserved to maintain visual alignment.
Specifies folder name to save images. Default is Images
.
Specifies whether the generated document should have new lines of \\r(Macintosh), \\n(Unix) or \\r\\n(Windows). Default is Unix.
true to remove empty or whitespace-only lines from the final Markdown output. Default is false.
Specifies whether the generated document should include comments. Default is false.
Specifies whether the generated document should include slide number. Default is false.
The format of slide number headers.
Public Class Methods
Source
# File lib/aspose_slides_cloud/models/markdown_export_options.rb, line 59 def self.attribute_map super.merge({ :'export_type' => :'ExportType', :'flavor' => :'Flavor', :'new_line_type' => :'NewLineType', :'images_save_folder_name' => :'ImagesSaveFolderName', :'show_slide_number' => :'ShowSlideNumber', :'show_comments' => :'ShowComments', :'show_hidden_slides' => :'ShowHiddenSlides', :'remove_empty_lines' => :'RemoveEmptyLines', :'handle_repeated_spaces' => :'HandleRepeatedSpaces', :'slide_number_format' => :'SlideNumberFormat', }) end
Attribute mapping from ruby-style variable name to JSON key.
AsposeSlidesCloud::ExportOptions::attribute_map
Source
# File lib/aspose_slides_cloud/models/markdown_export_options.rb, line 92 def initialize(attributes = {}) super if attributes.has_key?(:'ExportType') self.export_type = attributes[:'ExportType'] end if attributes.has_key?(:'Flavor') self.flavor = attributes[:'Flavor'] end if attributes.has_key?(:'NewLineType') self.new_line_type = attributes[:'NewLineType'] end if attributes.has_key?(:'ImagesSaveFolderName') self.images_save_folder_name = attributes[:'ImagesSaveFolderName'] end if attributes.has_key?(:'ShowSlideNumber') self.show_slide_number = attributes[:'ShowSlideNumber'] end if attributes.has_key?(:'ShowComments') self.show_comments = attributes[:'ShowComments'] end if attributes.has_key?(:'ShowHiddenSlides') self.show_hidden_slides = attributes[:'ShowHiddenSlides'] end if attributes.has_key?(:'RemoveEmptyLines') self.remove_empty_lines = attributes[:'RemoveEmptyLines'] end if attributes.has_key?(:'HandleRepeatedSpaces') self.handle_repeated_spaces = attributes[:'HandleRepeatedSpaces'] end if attributes.has_key?(:'SlideNumberFormat') self.slide_number_format = attributes[:'SlideNumberFormat'] end self.format = 'md' end
Initializes the object @param [Hash] attributes Model attributes in the form of hash
AsposeSlidesCloud::ExportOptions::new
Source
# File lib/aspose_slides_cloud/models/markdown_export_options.rb, line 75 def self.swagger_types super.merge({ :'export_type' => :'String', :'flavor' => :'String', :'new_line_type' => :'String', :'images_save_folder_name' => :'String', :'show_slide_number' => :'BOOLEAN', :'show_comments' => :'BOOLEAN', :'show_hidden_slides' => :'BOOLEAN', :'remove_empty_lines' => :'BOOLEAN', :'handle_repeated_spaces' => :'String', :'slide_number_format' => :'String', }) end
Attribute type mapping.
AsposeSlidesCloud::ExportOptions::swagger_types
Public Instance Methods
Source
# File lib/aspose_slides_cloud/models/markdown_export_options.rb, line 201 def ==(o) return true if self.equal?(o) self.class == o.class && default_regular_font == o.default_regular_font && delete_embedded_binary_objects == o.delete_embedded_binary_objects && gradient_style == o.gradient_style && font_fallback_rules == o.font_fallback_rules && font_subst_rules == o.font_subst_rules && skip_java_script_links == o.skip_java_script_links && format == o.format && export_type == o.export_type && flavor == o.flavor && new_line_type == o.new_line_type && images_save_folder_name == o.images_save_folder_name && show_slide_number == o.show_slide_number && show_comments == o.show_comments && show_hidden_slides == o.show_hidden_slides && remove_empty_lines == o.remove_empty_lines && handle_repeated_spaces == o.handle_repeated_spaces && slide_number_format == o.slide_number_format end
Checks equality by comparing each attribute. @param [Object] Object to be compared
Source
# File lib/aspose_slides_cloud/models/markdown_export_options.rb, line 225 def eql?(o) self == o end
@see the ‘==` method @param [Object] Object to be compared
Source
# File lib/aspose_slides_cloud/models/markdown_export_options.rb, line 161 def export_type=(export_type) validator = EnumAttributeValidator.new('String', ['Sequential', 'TextOnly', 'Visual']) unless validator.valid?(export_type) fail ArgumentError, 'invalid value for "export_type", must be one of #{validator.allowable_values}.' end @export_type = export_type end
Custom attribute writer method checking allowed values (enum). @param [Object] export_type
Object to be assigned
Source
# File lib/aspose_slides_cloud/models/markdown_export_options.rb, line 171 def flavor=(flavor) validator = EnumAttributeValidator.new('String', ['Github', 'Gruber', 'MultiMarkdown', 'CommonMark', 'MarkdownExtra', 'Pandoc', 'Kramdown', 'Markua', 'Maruku', 'Markdown2', 'Remarkable', 'Showdown', 'Ghost', 'GitLab', 'Haroopad', 'IaWriter', 'Redcarpet', 'ScholarlyMarkdown', 'Taiga', 'Trello', 'S9ETextFormatter', 'XWiki', 'StackOverflow', 'Default']) unless validator.valid?(flavor) fail ArgumentError, 'invalid value for "flavor", must be one of #{validator.allowable_values}.' end @flavor = flavor end
Custom attribute writer method checking allowed values (enum). @param [Object] flavor Object to be assigned
Source
# File lib/aspose_slides_cloud/models/markdown_export_options.rb, line 191 def handle_repeated_spaces=(handle_repeated_spaces) validator = EnumAttributeValidator.new('String', ['None', 'AlternateSpacesToNbsp', 'MultipleSpacesToNbsp']) unless validator.valid?(handle_repeated_spaces) fail ArgumentError, 'invalid value for "handle_repeated_spaces", must be one of #{validator.allowable_values}.' end @handle_repeated_spaces = handle_repeated_spaces end
Custom attribute writer method checking allowed values (enum). @param [Object] handle_repeated_spaces
Object to be assigned
Source
# File lib/aspose_slides_cloud/models/markdown_export_options.rb, line 231 def hash [default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, skip_java_script_links, format, export_type, flavor, new_line_type, images_save_folder_name, show_slide_number, show_comments, show_hidden_slides, remove_empty_lines, handle_repeated_spaces, slide_number_format].hash end
Calculates hash code according to all attributes. @return [Fixnum] Hash code
Source
# File lib/aspose_slides_cloud/models/markdown_export_options.rb, line 139 def list_invalid_properties invalid_properties = super invalid_properties end
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
AsposeSlidesCloud::ExportOptions#list_invalid_properties
Source
# File lib/aspose_slides_cloud/models/markdown_export_options.rb, line 181 def new_line_type=(new_line_type) validator = EnumAttributeValidator.new('String', ['Windows', 'Unix', 'Mac']) unless validator.valid?(new_line_type) fail ArgumentError, 'invalid value for "new_line_type", must be one of #{validator.allowable_values}.' end @new_line_type = new_line_type end
Custom attribute writer method checking allowed values (enum). @param [Object] new_line_type
Object to be assigned
Source
# File lib/aspose_slides_cloud/models/markdown_export_options.rb, line 146 def valid? return false if !super export_type_validator = EnumAttributeValidator.new('String', ['Sequential', 'TextOnly', 'Visual']) return false unless export_type_validator.valid?(@export_type) flavor_validator = EnumAttributeValidator.new('String', ['Github', 'Gruber', 'MultiMarkdown', 'CommonMark', 'MarkdownExtra', 'Pandoc', 'Kramdown', 'Markua', 'Maruku', 'Markdown2', 'Remarkable', 'Showdown', 'Ghost', 'GitLab', 'Haroopad', 'IaWriter', 'Redcarpet', 'ScholarlyMarkdown', 'Taiga', 'Trello', 'S9ETextFormatter', 'XWiki', 'StackOverflow', 'Default']) return false unless flavor_validator.valid?(@flavor) new_line_type_validator = EnumAttributeValidator.new('String', ['Windows', 'Unix', 'Mac']) return false unless new_line_type_validator.valid?(@new_line_type) handle_repeated_spaces_validator = EnumAttributeValidator.new('String', ['None', 'AlternateSpacesToNbsp', 'MultipleSpacesToNbsp']) return false unless handle_repeated_spaces_validator.valid?(@handle_repeated_spaces) true end
Check to see if the all the properties in the model are valid @return true if the model is valid
AsposeSlidesCloud::ExportOptions#valid?