HtmlLoadOptions

HtmlLoadOptions

Overview

HtmlLoadOptions is a class in Aspose.Words FOSS for .NET. Inherits from: LoadOptions.

Allows to specify additional options when loading HTML document into a Document object.

This class provides 5 methods for working with HtmlLoadOptions objects in .NET programs. Available methods include: Equals, HtmlLoadOptions, LoadOptions. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: BaseUri, BlockImportMode, ConvertMetafilesToPng, ConvertShapeToOfficeMath, ConvertSvgToEmf, Encoding, and 19 more.

Properties

NameTypeAccessDescription
SupportVmlboolRead/WriteGets or sets a value indicating whether to support VML images.
WebRequestTimeoutintRead/WriteThe number of milliseconds to wait before the web request times out.
PreferredControlTypeHtmlControlTypeRead/WriteGets or sets preferred type of document nodes that will represent imported <input> and <select> elements.
IgnoreNoscriptElementsboolRead/WriteGets or sets a value indicating whether to ignore <noscript> HTML elements.
ConvertSvgToEmfboolRead/WriteGets or sets a value indicating whether to convert loaded SVG images to the EMF format.
BlockImportModeBlockImportModeRead/WriteGets or sets a value that specifies how properties of block-level elements are imported.
SupportFontFaceRulesboolRead/WriteGets or sets a value indicating whether to support @font-face rules and whether to load declared fonts.
LoadFormatLoadFormatRead/WriteSpecifies the format of the document to be loaded.
PasswordstringRead/WriteGets or sets the password for opening an encrypted document.
BaseUristringRead/WriteGets or sets the string that will be used to resolve relative URIs found in the document into absolute URIs when required.
EncodingEncodingRead/WriteGets or sets the encoding that will be used to load an HTML, TXT, or CHM document if the encoding is not specified inside the document.
ResourceLoadingCallbackIResourceLoadingCallbackRead/WriteAllows to control how external resources (images, style sheets) are loaded when a document is imported from HTML, MHTML.
WarningCallbackIWarningCallbackRead/WriteCalled during a load operation, when an issue is detected that might result in data or formatting fidelity loss.
ProgressCallbackIDocumentLoadingCallbackRead/WriteCalled during loading a document and accepts data about loading progress.
PreserveIncludePictureFieldboolRead/WriteGets or sets whether to preserve the INCLUDEPICTURE field when reading Microsoft Word formats.
ConvertShapeToOfficeMathboolRead/WriteGets or sets whether to convert shapes with EquationXML to Office Math objects.
FontSettingsFontSettingsRead/WriteAllows to specify document font settings.
TempFolderstringRead/WriteAllows to use temporary files when reading document.
ConvertMetafilesToPngboolRead/WriteGets or sets whether to convert metafile(Wmf or Emf) images to Png image format.
MswVersionMsWordVersionRead/WriteAllows to specify that the document loading process should match a specific MS Word version.
UpdateDirtyFieldsboolRead/WriteSpecifies whether to update the fields with the dirty attribute.
IgnoreOleDataboolRead/WriteSpecifies whether to ignore the OLE data.
UseSystemLcidboolRead/WriteGets or sets whether to use LCID value obtained from Windows registry to determine page setup default margins.
LanguagePreferencesLanguagePreferencesReadGets language preferences that will be used when document is loading.
RecoveryModeDocumentRecoveryModeRead/WriteDefines how the document should be handled if errors occur during loading.

Methods

SignatureDescription
HtmlLoadOptions()Initializes a new instance of this class with default values.
HtmlLoadOptions(password: string)A shortcut to initialize a new instance of this class with the specified password to load an encrypted document.
HtmlLoadOptions(loadFormat: LoadFormat, password: string, baseUri: string)A shortcut to initialize a new instance of this class with properties set to the specified values.
LoadOptions()Initializes a new instance of this class with default values.
Equals(obj: object)Determines whether the specified object is equal in value to the current object.

See Also