Class HtmlOptions

Class HtmlOptions

Namespace: Aspose.Slides.Export
Assembly: Aspose.Slides.dll (25.12.0)

Represents a HTML exporting options.

[ComVisible(true)]
[ClassInterface(ClassInterfaceType.None)]
[Guid("5c0c4aba-9234-48dd-afb3-3d5a56344e90")]
public class HtmlOptions : SaveOptions, IHtmlOptions, ISaveOptions

Inheritance

object SaveOptions HtmlOptions

Implements

IHtmlOptions , ISaveOptions

Inherited Members

SaveOptions.WarningCallback , SaveOptions.ProgressCallback , SaveOptions.DefaultRegularFont , SaveOptions.GradientStyle , SaveOptions.SkipJavaScriptLinks

Constructors

HtmlOptions(ILinkEmbedController)

Creates a new HtmlOptions object specifiing callback.

public HtmlOptions(ILinkEmbedController linkEmbedController)

Parameters

linkEmbedController ILinkEmbedController

Callback object which controls saving project.

HtmlOptions()

Creates a new HtmlOptions object for saving into single HTML file.

public HtmlOptions()

Properties

DeletePicturesCroppedAreas

A boolean flag indicates if the cropped parts remain as part of the document. If true the cropped parts will removed, if false they will be serialized in the document (which can possible lead to a larger file)

public bool DeletePicturesCroppedAreas { get; set; }

Property Value

bool

DisableFontLigatures

Gets or sets a value indicating whether text is rendered without using ligatures. When set to true, ligatures will be disabled in the rendered output. By default, this property is set to false.

public bool DisableFontLigatures { get; set; }

Property Value

bool

Examples

Example:

using (Presentation pres = new Presentation("pres.pptx"))
            {
                HtmlOptions options = new HtmlOptions
                {
                    DisableFontLigatures = true // Disable ligatures in text rendering
                };

                pres.Save(outputSlidePath, SaveFormat.Html, options);
            }

HtmlFormatter

Returns or sets HTML template. Read/write Aspose.Slides.Export.IHtmlFormatter.

public IHtmlFormatter HtmlFormatter { get; set; }

Property Value

IHtmlFormatter

InkOptions

Provides options that control the look of Ink objects in exported document. Read-only Aspose.Slides.Export.IInkOptions

public IInkOptions InkOptions { get; }

Property Value

IInkOptions

JpegQuality

Returns or sets a value determining the quality of the JPEG images inside PDF document. Read/write System.Byte.

public byte JpegQuality { get; set; }

Property Value

byte

Remarks

Has effect only when a document contains JPEG images.

Use this property to get or set the quality of the images inside a document when saving in PDF format. The value may vary from 0 to 100 where 0 means worst quality but maximum compression and 100 means best quality but minimum compression.

The default value is 95.

PicturesCompression

Represents the pictures compression level

public PicturesCompression PicturesCompression { get; set; }

Property Value

PicturesCompression

ShowHiddenSlides

Specifies whether the generated document should include hidden slides or not. Default is false.

public bool ShowHiddenSlides { get; set; }

Property Value

bool

SlideImageFormat

Returns or sets slide image format options. Read/write Aspose.Slides.Export.ISlideImageFormat.

public ISlideImageFormat SlideImageFormat { get; set; }

Property Value

ISlideImageFormat

SlidesLayoutOptions

Gets or sets the mode in which slides are placed on the page when exporting a presentation Aspose.Slides.Export.ISlidesLayoutOptions.

public ISlidesLayoutOptions SlidesLayoutOptions { get; set; }

Property Value

ISlidesLayoutOptions

Examples

Example:

using (Presentation pres = new Presentation("pres.pptx"))
            {
                HtmlOptions options = new HtmlOptions
                {
                    SlidesLayoutOptions = new HandoutLayoutingOptions
                    {
                        Handout = HandoutType.Handouts4Horizontal,
                    }
                };

                pres.Save("pres.html", SaveFormat.Html, options);
            }

SvgResponsiveLayout

True to exclude width and height attributes from svg container - that will make layout responsive. False - otherwise. Read/write System.Boolean.

public bool SvgResponsiveLayout { get; set; }

Property Value

bool