Class RenderingOptions
Namespace: Aspose.Slides.Export
Assembly: Aspose.Slides.dll (25.12.0)
Provides options that control how a presentation/slide is rendered.
[ComVisible(true)]
[ClassInterface(ClassInterfaceType.None)]
[Guid("12A23569-2657-45BC-8E99-9150A1546D27")]
public class RenderingOptions : SaveOptions, IRenderingOptions, ISaveOptionsInheritance
object ← SaveOptions ← RenderingOptions
Implements
IRenderingOptions , ISaveOptions
Inherited Members
SaveOptions.WarningCallback , SaveOptions.ProgressCallback , SaveOptions.DefaultRegularFont , SaveOptions.GradientStyle , SaveOptions.SkipJavaScriptLinks
Examples
using (Presentation pres = new Presentation("pres.pptx"))
{
IRenderingOptions renderingOpts = new RenderingOptions();
renderingOpts.SlidesLayoutOptions = new NotesCommentsLayoutingOptions() { NotesPosition = NotesPositions.BottomTruncated };
pres.Slides[0].GetThumbnail(renderingOpts).Save("pres-Original.png", ImageFormat.Png);
renderingOpts.DefaultRegularFont = "Arial Black";
pres.Slides[0].GetThumbnail(renderingOpts).Save("pres-ArialBlackDefault.png", ImageFormat.Png);
renderingOpts.DefaultRegularFont = "Arial Narrow";
pres.Slides[0].GetThumbnail(renderingOpts).Save("pres-ArialNarrowDefault.png", ImageFormat.Png);
}Constructors
RenderingOptions()
Default constructor.
public RenderingOptions()Properties
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
Examples
Example:
using (Presentation pres = new Presentation("pres.pptx"))
{
RenderingOptions options = new RenderingOptions
{
DisableFontLigatures = true // Disable ligatures in text rendering
};
Bitmap[] renderedSlides = pres.GetImage(options);
for (var index = 0; index < renderedSlides.Length; index++)
{
var slideImage = renderedSlides[index];
slideImage.Save($"slide-{index}.png");
}
}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
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
Examples
Example:
using (Presentation pres = new Presentation("pres.pptx"))
{
RenderingOptions options = new RenderingOptions
{
SlidesLayoutOptions = new HandoutLayoutingOptions
{
Handout = HandoutType.Handouts4Horizontal,
PrintSlideNumbers = false
}
};
Bitmap[] handoutSlides = pres.GetThumbnails(options);
for (var index = 0; index < handoutSlides.Length; index++)
{
var handoutSllide = handoutSlides[index];
handoutSllide.Save($"handout-{index}.png");
}
}