PreviewOptions

PreviewOptions class

Provides options to sets requirements and stream delegates for preview generation.

public class PreviewOptions

Constructors

Name Description
PreviewOptions(CreatePageStream) Initializes a new instance of the PreviewOptions class causing the output stream to be closed.
PreviewOptions(CreatePageStream, ReleasePageStream) Initializes a new instance of PreviewOptions class causing the output stream to be returned to the client for further use.

Properties

Name Description
CacheFolder { get; set; } Gets or sets the cache folder. By default the cache folder is set to user’s local temp directory.
CreatePageStream { get; set; } Gets or sets an instance of the page stream creation delegate.
Height { get; set; } Gets or sets the page preview height.
MaxDiskSpaceForCache { get; set; } Gets or sets the maximum available disk space for cache in bytes. The default value is 1073741824.
MaxMemoryForCache { get; set; } Gets or sets the maximum available memory for cache in memory in bytes. The default value is 1073741824.
PageNumbers { get; set; } Gets or sets an array of page numbers to generate previews.
PreviewFormat { get; set; } Gets or sets the preview image format.
ReleasePageStream { get; set; } Gets or sets an instance of the page preview completion delegate.
Resolution { get; set; } Gets or sets the page preview resolution.
Width { get; set; } Gets or sets the page preview width.

Remarks

Learn more

See Also