Interface IRenderingOptions

Interface IRenderingOptions

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

Provides options that control how a presentation/slide is rendered.

[ComVisible(true)]
[Guid("5F8883CD-3CE7-44D4-91A4-775E68FADEBB")]
public interface IRenderingOptions : ISaveOptions

Implements

ISaveOptions

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);
}

Properties

AsISaveOptions

Returns ISaveOptions interface. Read-only Aspose.Slides.Export.ISaveOptions.

ISaveOptions AsISaveOptions { get; }

Property Value

ISaveOptions

Remarks

For COM compatibility.

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

bool

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

IInkOptions InkOptions { get; }

Property Value

IInkOptions

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

ISlidesLayoutOptions

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");
                }
            }