Viewer

Viewer class

Represents main class that controls document rendering process.

public class Viewer : IDisposable

Constructors

Name Description
Viewer(Func<Stream>) Initializes new instance of Viewer class.
Viewer(Stream) Initializes new instance of Viewer class.
Viewer(string) Initializes new instance of Viewer class.
Viewer(Func<Stream>, Func<LoadOptions>) Initializes new instance of Viewer class.
Viewer(Func<Stream>, ViewerSettings) Initializes new instance of Viewer class.
Viewer(Stream, bool) Initializes new instance of Viewer class.
Viewer(Stream, LoadOptions) Initializes new instance of Viewer class.
Viewer(Stream, ViewerSettings) Initializes new instance of Viewer class.
Viewer(string, LoadOptions) Initializes new instance of Viewer class.
Viewer(string, ViewerSettings) Initializes new instance of Viewer class.
Viewer(Func<Stream>, Func<LoadOptions>, ViewerSettings) Initializes new instance of Viewer class.
Viewer(Stream, LoadOptions, bool) Initializes new instance of Viewer class.
Viewer(Stream, LoadOptions, ViewerSettings) Initializes new instance of Viewer class.
Viewer(Stream, ViewerSettings, bool) Initializes new instance of Viewer class.
Viewer(string, LoadOptions, ViewerSettings) Initializes new instance of Viewer class.
Viewer(Stream, LoadOptions, ViewerSettings, bool) Initializes new instance of Viewer class.

Methods

Name Description
Dispose() Releases file stream and managed internal resources.
GetAttachments() Returns attachments contained by the document.
GetAttachments(CancellationToken) Returns attachments contained by the document.
GetFileInfo() Returns information about file such as file-type and flag that indicates if file is encrypted.
GetViewInfo(ViewInfoOptions) Returns information about view and document specific information.
GetViewInfo(ViewInfoOptions, CancellationToken) Returns information about view and document specific information.
SaveAttachment(Attachment, Stream) Saves attachment file to destination stream.
SaveAttachment(Attachment, Stream, CancellationToken) Saves attachment file to destination stream.
View(ViewOptions) Creates view of all document pages.
View(ViewOptions, CancellationToken) Creates view of all document pages.
View(ViewOptions, params int[]) Creates view of specific document pages.
View(ViewOptions, CancellationToken, params int[]) Creates view of specific document pages.

See Also