LoadOptions class

LoadOptions class

Contains options that used to open the file. For details, see this page and its children.

The LoadOptions type exposes the following members:

Constructors

Constructor Description
init Initializes an instance of the LoadOptions class.
init Initializes an instance of the LoadOptions class.

Properties

Property Description
file_type Sets the type of the file to open.
password Sets the password to open encrypted file.
encoding Sets the encoding used when opening text-based files or email messages such as
FileType.CSV,
FileType.TXT,
and FileType.MSG.
Default value is UTF8.
detect_encoding Enables the encoding detection for the FileType.TXT, FileType.CSV, and FileType.TSV files.
resource_loading_timeout Sets the timeout to load external resources.
skip_external_resources Disables loading of all external resource such as images except LoadOptions.whitelisted_resources.
whitelisted_resources The list of URL fragments corresponding to external resources that should be loaded
when LoadOptions.skip_external_resources is set to true.
try_repair When enabled GroupDocs.Viewer tries to repair structural corruption in PDF documents.
Default value is false.

See Also