public class HtmlLoadOptions extends LoadOptions
Document object.
To learn more, visit the Specify Load Options documentation article.
| Constructor and Description |
|---|
HtmlLoadOptions()
Initializes a new instance of this class with default values.
|
HtmlLoadOptions(int loadFormat,
java.lang.String password,
java.lang.String baseUri)
Initializes a new instance of this class.
|
HtmlLoadOptions(java.lang.String password)
A shortcut to initialize a new instance of this class with the specified password to load an encrypted document.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBlockImportMode()
Gets a value that specifies how properties of block-level elements are imported.
|
boolean |
getConvertSvgToEmf()
Gets a value indicating whether to convert loaded SVG images to the EMF format.
|
boolean |
getIgnoreNoscriptElements()
Gets a value indicating whether to ignore
|
int |
getPreferredControlType()
Gets preferred type of document nodes that will represent imported and
|
boolean |
getSupportVml()
Gets a value indicating whether to support VML images.
|
int |
getWebRequestTimeout()
The number of milliseconds to wait before the web request times out.
|
void |
setBlockImportMode(int value)
Sets a value that specifies how properties of block-level elements are imported.
|
void |
setConvertSvgToEmf(boolean value)
Sets a value indicating whether to convert loaded SVG images to the EMF format.
|
void |
setIgnoreNoscriptElements(boolean value)
Sets a value indicating whether to ignore
|
void |
setPreferredControlType(int value)
Sets preferred type of document nodes that will represent imported and
|
void |
setSupportVml(boolean value)
Sets a value indicating whether to support VML images.
|
void |
setWebRequestTimeout(int value)
The number of milliseconds to wait before the web request times out.
|
getBaseUri, getConvertMetafilesToPng, getConvertShapeToOfficeMath, getEncoding, getFontSettings, getLanguagePreferences, getLoadFormat, getMswVersion, getPassword, getPreserveIncludePictureField, getProgressCallback, getResourceLoadingCallback, getTempFolder, getUpdateDirtyFields, getWarningCallback, setBaseUri, setConvertMetafilesToPng, setConvertShapeToOfficeMath, setEncoding, setFontSettings, setLoadFormat, setMswVersion, setPassword, setPreserveIncludePictureField, setProgressCallback, setResourceLoadingCallback, setTempFolder, setUpdateDirtyFields, setWarningCallbackpublic HtmlLoadOptions()
public HtmlLoadOptions(java.lang.String password)
password - The password to open an encrypted document. Can be null or empty string.public HtmlLoadOptions(int loadFormat,
java.lang.String password,
java.lang.String baseUri)
public boolean getSupportVml()
public void setSupportVml(boolean value)
value - A value indicating whether to support VML images.public int getWebRequestTimeout()
int value.public void setWebRequestTimeout(int value)
value - The corresponding int value.public int getPreferredControlType()
public void setPreferredControlType(int value)
value - Preferred type of document nodes that will represent imported and public boolean getIgnoreNoscriptElements()
public void setIgnoreNoscriptElements(boolean value)
false.
Like MS Word, Aspose.Words does not support scripts and by default loads content of true forces Aspose.Words to ignore all value - A value indicating whether to ignore public boolean getConvertSvgToEmf()
false and, if possible, loaded SVG images are stored as is without conversion.
Newer versions of MS Word support SVG images natively. If the MS Word version specified in load options supports SVG, Aspose.Words will store SVG images as is without conversion. If SVG is not supported, loaded SVG images will be converted to the EMF format.
If, however, this option is set to true, Aspose.Words will convert loaded SVG images to EMF even if SVG images are supported by the specified version of MS Word.
public void setConvertSvgToEmf(boolean value)
false and, if possible, loaded SVG images are stored as is without conversion.
Newer versions of MS Word support SVG images natively. If the MS Word version specified in load options supports SVG, Aspose.Words will store SVG images as is without conversion. If SVG is not supported, loaded SVG images will be converted to the EMF format.
If, however, this option is set to true, Aspose.Words will convert loaded SVG images to EMF even if SVG images are supported by the specified version of MS Word.
value - A value indicating whether to convert loaded SVG images to the EMF format.public int getBlockImportMode()
BlockImportMode.MERGE.BlockImportMode constants.public void setBlockImportMode(int value)
BlockImportMode.MERGE.value - A value that specifies how properties of block-level elements are imported. The value must be one of BlockImportMode constants.