RenderingOptions

RenderingOptions class

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

public class RenderingOptions : SaveOptions, IRenderingOptions

Constructors

Name Description
RenderingOptions() Default constructor.

Properties

Name Description
DefaultRegularFont { get; set; } Returns or sets font used in case source font is not found. Read-write String.
NotesCommentsLayouting { get; } Provides options that control how notes and comments is placed in exported document.
ProgressCallback { get; set; } Represents a callback object for saving progress updates in percentage. See IProgressCallback.
WarningCallback { get; set; } Returns of sets an object which receives warnings and decides whether loading process will continue or will be aborted. Read/write IWarningCallback.

Examples

[C#]
using (Presentation pres = new Presentation("pres.pptx"))
  {
  IRenderingOptions renderingOpts = new RenderingOptions();
  renderingOpts.NotesCommentsLayouting.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);
}

See Also