PreviewOptions
Leave feedback
On this page
Provides options to sets requirements and stream delegates for preview generation.
public class PreviewOptions
| 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. |
| 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. |
Learn more
- namespace GroupDocs.Metadata.Options
- assembly GroupDocs.Metadata
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.