LoadOptions
Leave feedback
On this page
Contains options that used to open the file. For details, see this page and its children.
public class LoadOptions
| Name | Description |
|---|---|
| LoadOptions() | Initializes an instance of the LoadOptions class. |
| LoadOptions(FileType) | Initializes an instance of the LoadOptions class. |
| Name | Description |
|---|---|
| DetectEncoding { get; set; } | Enables the encoding detection for the TXT, CSV, and TSV files. |
| Encoding { get; set; } | Sets the encoding used when opening text-based files or email messages such as CSV, TXT, and MSG. Default value is UTF8. |
| FileType { get; set; } | Sets the type of the file to open. |
| Password { get; set; } | Sets the password to open encrypted file. |
| ResourceLoadingTimeout { get; set; } | Sets the timeout to load external resources. |
| SkipExternalResources { get; set; } | Disables loading of all external resource such as images except WhitelistedResources. |
| TryRepair { get; set; } | When enabled GroupDocs.Viewer tries to repair structural corruption in PDF documents. Default value is false. |
| WhitelistedResources { get; set; } | The list of URL fragments corresponding to external resources that should be loaded when SkipExternalResources is set to true. |
- namespace GroupDocs.Viewer.Options
- assembly GroupDocs.Viewer
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.