Render notes
GroupDocs.Viewer does not include document notes in the rendering results. If you want to see notes in your rendering result, use RenderNotes
property of the ViewOptions
object.
The following are the steps to include the notes in the rendering result.
- Initialize the object of HtmlViewOptions
- Set HtmlViewOptions objectRenderNotes property to true
- Pass HtmlViewOptions object to View method
The following code sample renders Presentation with notes.
using (Viewer viewer = new Viewer("sample.pptx"))
{
HtmlViewOptions viewOptions = HtmlViewOptions.ForEmbeddedResources();
viewOptions.RenderNotes = true;
viewer.View(viewOptions);
}