class AsposeSlidesCloud::PdfExportOptions
Provides options that control how a presentation is saved in Pdf format.
Attributes
Access permissions that should be granted when the document is opened with user access. Default is AccessPermissions.None.
Returns or sets an array of user-defined names of font families which Aspose.Slides should consider common.
True to apply specified ImageTransparentColor to an image.
Desired conformance level for generated PDF document.
True to draw black frame around each slide.
Determines if all characters of font should be embedded or only used subset.
Determines if Aspose.Slides will embed common fonts for ASCII (33..127 code range) text. Fonts for character codes greater than 127 are always embedded. Common fonts list includes PDF’s base 14 fonts and additional user specified fonts.
True to hide Ink elements in exported document.
Image
transparent color.
True to convert all OLE data from the presentation to embedded files in the resulting PDF.
True to use ROP operation or Opacity for rendering brush.
Returns or sets a value determining the quality of the JPEG images inside PDF document.
Setting user password to protect the PDF document.
True if text should be rasterized as a bitmap and saved to PDF when the font does not support bold styling. This approach can enhance the quality of text in the resulting PDF for certain fonts.
True to convert all metafiles used in a presentation to the PNG images.
Slides
layouting options
Returns or sets a value determining resolution of images inside PDF document. Property affects on file size, time of export and image quality. The default value is 96.
Specifies compression type to be used for all textual content in the document.
Public Class Methods
Source
# File lib/aspose_slides_cloud/models/pdf_export_options.rb, line 86 def self.attribute_map super.merge({ :'text_compression' => :'TextCompression', :'embed_full_fonts' => :'EmbedFullFonts', :'compliance' => :'Compliance', :'sufficient_resolution' => :'SufficientResolution', :'jpeg_quality' => :'JpegQuality', :'draw_slides_frame' => :'DrawSlidesFrame', :'show_hidden_slides' => :'ShowHiddenSlides', :'save_metafiles_as_png' => :'SaveMetafilesAsPng', :'password' => :'Password', :'embed_true_type_fonts_for_ascii' => :'EmbedTrueTypeFontsForASCII', :'additional_common_font_families' => :'AdditionalCommonFontFamilies', :'slides_layout_options' => :'SlidesLayoutOptions', :'image_transparent_color' => :'ImageTransparentColor', :'apply_image_transparent' => :'ApplyImageTransparent', :'access_permissions' => :'AccessPermissions', :'hide_ink' => :'HideInk', :'interpret_mask_op_as_opacity' => :'InterpretMaskOpAsOpacity', :'rasterize_unsupported_font_styles' => :'RasterizeUnsupportedFontStyles', :'include_ole_data' => :'IncludeOleData', }) end
Attribute mapping from ruby-style variable name to JSON key.
AsposeSlidesCloud::ExportOptions::attribute_map
Source
# File lib/aspose_slides_cloud/models/pdf_export_options.rb, line 137 def initialize(attributes = {}) super if attributes.has_key?(:'TextCompression') self.text_compression = attributes[:'TextCompression'] end if attributes.has_key?(:'EmbedFullFonts') self.embed_full_fonts = attributes[:'EmbedFullFonts'] end if attributes.has_key?(:'Compliance') self.compliance = attributes[:'Compliance'] end if attributes.has_key?(:'SufficientResolution') self.sufficient_resolution = attributes[:'SufficientResolution'] end if attributes.has_key?(:'JpegQuality') self.jpeg_quality = attributes[:'JpegQuality'] end if attributes.has_key?(:'DrawSlidesFrame') self.draw_slides_frame = attributes[:'DrawSlidesFrame'] end if attributes.has_key?(:'ShowHiddenSlides') self.show_hidden_slides = attributes[:'ShowHiddenSlides'] end if attributes.has_key?(:'SaveMetafilesAsPng') self.save_metafiles_as_png = attributes[:'SaveMetafilesAsPng'] end if attributes.has_key?(:'Password') self.password = attributes[:'Password'] end if attributes.has_key?(:'EmbedTrueTypeFontsForASCII') self.embed_true_type_fonts_for_ascii = attributes[:'EmbedTrueTypeFontsForASCII'] end if attributes.has_key?(:'AdditionalCommonFontFamilies') if (value = attributes[:'AdditionalCommonFontFamilies']).is_a?(Array) self.additional_common_font_families = value end end if attributes.has_key?(:'SlidesLayoutOptions') self.slides_layout_options = attributes[:'SlidesLayoutOptions'] end if attributes.has_key?(:'ImageTransparentColor') self.image_transparent_color = attributes[:'ImageTransparentColor'] end if attributes.has_key?(:'ApplyImageTransparent') self.apply_image_transparent = attributes[:'ApplyImageTransparent'] end if attributes.has_key?(:'AccessPermissions') self.access_permissions = attributes[:'AccessPermissions'] end if attributes.has_key?(:'HideInk') self.hide_ink = attributes[:'HideInk'] end if attributes.has_key?(:'InterpretMaskOpAsOpacity') self.interpret_mask_op_as_opacity = attributes[:'InterpretMaskOpAsOpacity'] end if attributes.has_key?(:'RasterizeUnsupportedFontStyles') self.rasterize_unsupported_font_styles = attributes[:'RasterizeUnsupportedFontStyles'] end if attributes.has_key?(:'IncludeOleData') self.include_ole_data = attributes[:'IncludeOleData'] end self.format = 'pdf' end
Initializes the object @param [Hash] attributes Model attributes in the form of hash
AsposeSlidesCloud::ExportOptions::new
Source
# File lib/aspose_slides_cloud/models/pdf_export_options.rb, line 111 def self.swagger_types super.merge({ :'text_compression' => :'String', :'embed_full_fonts' => :'BOOLEAN', :'compliance' => :'String', :'sufficient_resolution' => :'Float', :'jpeg_quality' => :'Integer', :'draw_slides_frame' => :'BOOLEAN', :'show_hidden_slides' => :'BOOLEAN', :'save_metafiles_as_png' => :'BOOLEAN', :'password' => :'String', :'embed_true_type_fonts_for_ascii' => :'BOOLEAN', :'additional_common_font_families' => :'Array<String>', :'slides_layout_options' => :'SlidesLayoutOptions', :'image_transparent_color' => :'String', :'apply_image_transparent' => :'BOOLEAN', :'access_permissions' => :'AccessPermissions', :'hide_ink' => :'BOOLEAN', :'interpret_mask_op_as_opacity' => :'BOOLEAN', :'rasterize_unsupported_font_styles' => :'BOOLEAN', :'include_ole_data' => :'BOOLEAN', }) end
Attribute type mapping.
AsposeSlidesCloud::ExportOptions::swagger_types
Public Instance Methods
Source
# File lib/aspose_slides_cloud/models/pdf_export_options.rb, line 260 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 && text_compression == o.text_compression && embed_full_fonts == o.embed_full_fonts && compliance == o.compliance && sufficient_resolution == o.sufficient_resolution && jpeg_quality == o.jpeg_quality && draw_slides_frame == o.draw_slides_frame && show_hidden_slides == o.show_hidden_slides && save_metafiles_as_png == o.save_metafiles_as_png && password == o.password && embed_true_type_fonts_for_ascii == o.embed_true_type_fonts_for_ascii && additional_common_font_families == o.additional_common_font_families && slides_layout_options == o.slides_layout_options && image_transparent_color == o.image_transparent_color && apply_image_transparent == o.apply_image_transparent && access_permissions == o.access_permissions && hide_ink == o.hide_ink && interpret_mask_op_as_opacity == o.interpret_mask_op_as_opacity && rasterize_unsupported_font_styles == o.rasterize_unsupported_font_styles && include_ole_data == o.include_ole_data end
Checks equality by comparing each attribute. @param [Object] Object to be compared
Source
# File lib/aspose_slides_cloud/models/pdf_export_options.rb, line 250 def compliance=(compliance) validator = EnumAttributeValidator.new('String', ['Pdf15', 'Pdf16', 'Pdf17', 'PdfA1b', 'PdfA1a', 'PdfA2b', 'PdfA2a', 'PdfA3b', 'PdfA3a', 'PdfUa', 'PdfA2u']) unless validator.valid?(compliance) fail ArgumentError, 'invalid value for "compliance", must be one of #{validator.allowable_values}.' end @compliance = compliance end
Custom attribute writer method checking allowed values (enum). @param [Object] compliance Object to be assigned
Source
# File lib/aspose_slides_cloud/models/pdf_export_options.rb, line 293 def eql?(o) self == o end
@see the ‘==` method @param [Object] Object to be compared
Source
# File lib/aspose_slides_cloud/models/pdf_export_options.rb, line 299 def hash [default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, skip_java_script_links, format, text_compression, embed_full_fonts, compliance, sufficient_resolution, jpeg_quality, draw_slides_frame, show_hidden_slides, save_metafiles_as_png, password, embed_true_type_fonts_for_ascii, additional_common_font_families, slides_layout_options, image_transparent_color, apply_image_transparent, access_permissions, hide_ink, interpret_mask_op_as_opacity, rasterize_unsupported_font_styles, include_ole_data].hash end
Calculates hash code according to all attributes. @return [Fixnum] Hash code
Source
# File lib/aspose_slides_cloud/models/pdf_export_options.rb, line 222 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/pdf_export_options.rb, line 240 def text_compression=(text_compression) validator = EnumAttributeValidator.new('String', ['None', 'Flate']) unless validator.valid?(text_compression) fail ArgumentError, 'invalid value for "text_compression", must be one of #{validator.allowable_values}.' end @text_compression = text_compression end
Custom attribute writer method checking allowed values (enum). @param [Object] text_compression
Object to be assigned
Source
# File lib/aspose_slides_cloud/models/pdf_export_options.rb, line 229 def valid? return false if !super text_compression_validator = EnumAttributeValidator.new('String', ['None', 'Flate']) return false unless text_compression_validator.valid?(@text_compression) compliance_validator = EnumAttributeValidator.new('String', ['Pdf15', 'Pdf16', 'Pdf17', 'PdfA1b', 'PdfA1a', 'PdfA2b', 'PdfA2a', 'PdfA3b', 'PdfA3a', 'PdfUa', 'PdfA2u']) return false unless compliance_validator.valid?(@compliance) 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?