Interface IHtmlOptions
Namespace: Aspose.Slides.Export
Assembly: Aspose.Slides.dll (25.12.0)
Represents a HTML exporting options.
[ComVisible(true)]
[Guid("25f44504-eea1-4fc5-b20e-ebc8becb635d")]
public interface IHtmlOptions : ISaveOptionsImplements
Properties
AsISaveOptions
Returns ISaveOptions interface. Read-only Aspose.Slides.Export.ISaveOptions.
ISaveOptions AsISaveOptions { get; }Property Value
Remarks
For COM compatibility.
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) Read/write System.Boolean.
bool DeletePicturesCroppedAreas { get; set; }Property Value
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.
bool DisableFontLigatures { get; set; }Property Value
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.
IHtmlFormatter HtmlFormatter { get; set; }Property Value
InkOptions
Provides options that control the look of Ink objects in exported document. Read-only Aspose.Slides.Export.IInkOptions
IInkOptions InkOptions { get; }Property Value
JpegQuality
Returns or sets a value determining the quality of the JPEG images inside PDF document. Read/write System.Byte.
byte JpegQuality { get; set; }Property Value
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 Read/write Aspose.Slides.Export.IHtmlOptions.PicturesCompression.
PicturesCompression PicturesCompression { get; set; }Property Value
ShowHiddenSlides
Specifies whether the generated document should include hidden slides or not.
Default is false.
bool ShowHiddenSlides { get; set; }Property Value
SlideImageFormat
Returns or sets slide image format options. Read/write Aspose.Slides.Export.ISlideImageFormat.
ISlideImageFormat SlideImageFormat { get; set; }Property Value
SlidesLayoutOptions
Gets or sets the mode in which slides are placed on the page when exporting a presentation Aspose.Slides.Export.ISlidesLayoutOptions.
ISlidesLayoutOptions SlidesLayoutOptions { get; set; }Property Value
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.
bool SvgResponsiveLayout { get; set; }