LoadOptions class

LoadOptions class

Allows to specify additional options (such as format or default font) when loading a presentation.

The LoadOptions type exposes the following members:

Constructors

ConstructorDescription
__init__Creates new default load options.
__init__Creates new load options.

Properties

PropertyDescription
load_formatReturns or sets format of a presentation to load.
Read/write LoadFormat.
default_regular_fontReturns or sets Regular font used in case source font is not found.
Read/write str.
default_symbol_fontReturns or sets Symbol font used in case source font is not found.
Read/write str.
default_asian_fontReturns or sets Asian font used in case source font is not found.
Read/write str.
passwordGets or sets the password.
Read/write str.
only_load_document_propertiesThis property makes sense, if presentation file is password protected.
Value of true means that only document properties must be loaded from an encrypted
presentation file and password must be ignored.
Value of false means that entire encrypted presentation must be loaded with use of right
password.
If presentation isn’t encrypted then property value is always ignored.
If document properties of an encrypted file aren’t public and property value is true then
document properties cannot be loaded and exception will be thrown.
Read/write bool.
warning_callbackReturns or sets an object which receives warnings and decides whether loading
process will continue or will be aborted.
Read/write IWarningCallback.
blob_management_optionsRepresents the options which can be used to manage Binary Large Objects (BLOBs) handling behavior,
such as using of temporary files or max BLOBs bytes in memory. These options intended to set up
the best performance/memory consumption ratio for a perticular environment or requirements.
A Binary Large Object (BLOB) is a binary data stored as a single entity - i.e. BLOB can
be an audio, video or presentation itself.
document_level_font_sourcesSpecifies sources for external fonts to be used by the presentation.
These fonts are available to the presentation throughout its lifetime and are not shared with other presentations
interruption_tokenThe token to monitor for interruption requests.

This token manages the whole IPresentation instance lifetime. Any long-running operation, such as loading
or saving of presentation, will be interrupted via calling of the InterruptionTokenSource.interrupt method of
the InterruptionTokenSource.
resource_loading_callbackReturns or sets callback interface which manages external resources loading.
Read/write IResourceLoadingCallback.
spreadsheet_optionsGets options for spreadsheets. For example, these options affect calculating formulas for charts.
default_text_languageReturns or sets the default language for presentation text.
Read/write str.
delete_embedded_binary_objectsDetermines if Aspose.Slides will delete all embedded binary objects while presentation loading.

The types of the embedded binary objects:


* VBA Project IPresentation.vba_project
* OLE Object embedded data IOleEmbeddedDataInfo.embedded_file_data
* ActiveX Control binary data IControl.active_x_control_binary


Read/write bool.

See Also