HtmlLoadOptions class
HtmlLoadOptions class
Allows to specify additional options when loading HTML document into a Document object. To learn more, visit the Specify Load Options documentation article.
Inheritance: HtmlLoadOptions → LoadOptions
Constructors
Name | Description |
---|---|
HtmlLoadOptions() | Initializes a new instance of this class with default values. |
HtmlLoadOptions(password) | A shortcut to initialize a new instance of this class with the specified password to load an encrypted document. |
HtmlLoadOptions(loadFormat, password, baseUri) | A shortcut to initialize a new instance of this class with properties set to the specified values. |
Properties
Name | Description |
---|---|
baseUri | Gets or sets the string that will be used to resolve relative URIs found in the document into absolute URIs when required. Can be null or empty string. Default is null .(Inherited from LoadOptions) |
blockImportMode | Gets or sets a value that specifies how properties of block-level elements are imported. Default value is BlockImportMode.Merge. |
convertMetafilesToPng | Gets or sets whether to convert metafile(Wmf or Emf) images to Png image format. (Inherited from LoadOptions) |
convertShapeToOfficeMath | Gets or sets whether to convert shapes with EquationXML to Office Math objects. (Inherited from LoadOptions) |
convertSvgToEmf | Gets or sets a value indicating whether to convert loaded SVG images to the EMF format. Default value is false and, if possible, loaded SVG images are stored as is without conversion. |
encoding | Gets 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. Can be null . Default is null .(Inherited from LoadOptions) |
fontSettings | Allows to specify document font settings. (Inherited from LoadOptions) |
ignoreNoscriptElements | Gets or sets a value indicating whether to ignore <noscript> HTML elements. Default value is false . |
ignoreOleData | Specifies whether to ignore the OLE data. (Inherited from LoadOptions) |
languagePreferences | Gets language preferences that will be used when document is loading. (Inherited from LoadOptions) |
loadFormat | Specifies the format of the document to be loaded. Default is LoadFormat.Auto. (Inherited from LoadOptions) |
mswVersion | Allows to specify that the document loading process should match a specific MS Word version. Default value is MsWordVersion.Word2019 (Inherited from LoadOptions) |
password | Gets or sets the password for opening an encrypted document. Can be null or empty string. Default is null .(Inherited from LoadOptions) |
preferredControlType | Gets or sets preferred type of document nodes that will represent imported <input> and <select> elements. Default value is HtmlControlType.FormField. |
preserveIncludePictureField | Gets or sets whether to preserve the INCLUDEPICTURE field when reading Microsoft Word formats. The default value is false .(Inherited from LoadOptions) |
progressCallback | Called during loading a document and accepts data about loading progress. (Inherited from LoadOptions) |
resourceLoadingCallback | Allows to control how external resources (images, style sheets) are loaded when a document is imported from HTML, MHTML. (Inherited from LoadOptions) |
supportFontFaceRules | Gets or sets a value indicating whether to support @font-face rules and whether to load declared fonts. Default value is false . |
supportVml | Gets or sets a value indicating whether to support VML images. |
tempFolder | Allows to use temporary files when reading document. By default this property is null and no temporary files are used.(Inherited from LoadOptions) |
updateDirtyFields | Specifies whether to update the fields with the dirty attribute.(Inherited from LoadOptions) |
useSystemLcid | Gets or sets whether to use LCID value obtained from Windows registry to determine page setup default margins. (Inherited from LoadOptions) |
webRequestTimeout | The number of milliseconds to wait before the web request times out. The default value is 100000 milliseconds (100 seconds). |
See Also
- module Aspose.Words.Loading
- class LoadOptions