public class WordProcessingEditOptions extends Object implements IEditOptions
Allows to specify custom options for editing documents of all supportable WordProcessing (Words-compliant) formats like DOC(X), RTF, ODT etc.
| Constructor and Description |
|---|
WordProcessingEditOptions()
Creates and returns a new instance of the WordProcessingEditOptions
class, where all options are set to their default values
|
WordProcessingEditOptions(boolean enablePagination)
Creates and returns a new instance of the WordProcessingEditOptions
class with specified pagination and default all other options
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getEnableLanguageInformation()
Specifies whether language information is exported to the HTML markup in
a form of 'lang' HTML attributes.
|
boolean |
getEnablePagination()
Allows to enable or disable pagination in the resultant HTML document.
|
boolean |
getExtractOnlyUsedFont()
Gets or sets a value indicating whether extract only font resources that
are used in the textual content of the document.
|
int |
getFontExtraction()
Responsible for extracting font resources, which are used in the input
WordProcessing document.
|
String |
getInputControlsClassName()
Allows to specify a class name, which will be placed to the 'class'
attributes in every HTML element, that represents some field in the input
WordProcessing document.
|
boolean |
getUseInlineStyles()
Controls where to store the styling and formatting data of the input WordProcessing document: in external stylesheet (
false) or as inline styles in the HTML markup (true). |
void |
setEnableLanguageInformation(boolean value)
Specifies whether language information is exported to the HTML markup in
a form of 'lang' HTML attributes.
|
void |
setEnablePagination(boolean value)
Allows to enable or disable pagination in the resultant HTML document.
|
void |
setExtractOnlyUsedFont(boolean value)
Gets or sets a value indicating whether extract only font resources that
are used in the textual content of the document.
|
void |
setFontExtraction(int value)
Responsible for extracting font resources, which are used in the input
WordProcessing document.
|
void |
setInputControlsClassName(String value)
Allows to specify a class name, which will be placed to the 'class'
attributes in every HTML element, that represents some field in the input
WordProcessing document.
|
void |
setUseInlineStyles(boolean value)
Controls where to store the styling and formatting data of the input WordProcessing document: in external stylesheet (
false) or as inline styles in the HTML markup (true). |
public WordProcessingEditOptions()
Creates and returns a new instance of the WordProcessingEditOptions class, where all options are set to their default values
public WordProcessingEditOptions(boolean enablePagination)
Creates and returns a new instance of the WordProcessingEditOptions class with specified pagination and default all other options
enablePagination - Pagination flag, that enables HTML output,
adjusted for paged modepublic final boolean getEnableLanguageInformation()
Specifies whether language information is exported to the HTML markup in a form of 'lang' HTML attributes. This option may be useful for roundtrip conversion of the multi-language documents. By default it is disabled (false).
public final boolean getEnablePagination()
Allows to enable or disable pagination in the resultant HTML document. By default is disabled (false).
public final boolean getExtractOnlyUsedFont()
Gets or sets a value indicating whether extract only font resources that are used in the textual content of the document.
Value:true if it is required to extract only those font
resources, which are used in text content of the document; otherwise,
false. Default value is false.
public final int getFontExtraction()
Responsible for extracting font resources, which are used in the input WordProcessing document. By default doesn't extract any fonts (NotExtract).
public final String getInputControlsClassName()
Allows to specify a class name, which will be placed to the 'class' attributes in every HTML element, that represents some field in the input WordProcessing document. By default is NULL - 'class' attributes are not applied.
public final boolean getUseInlineStyles()
Controls where to store the styling and formatting data of the input WordProcessing document: in external stylesheet (false) or as inline styles in the HTML markup (true). By default external styles are used (false).
public final void setEnableLanguageInformation(boolean value)
Specifies whether language information is exported to the HTML markup in a form of 'lang' HTML attributes. This option may be useful for roundtrip conversion of the multi-language documents. By default it is disabled (false).
public final void setEnablePagination(boolean value)
Allows to enable or disable pagination in the resultant HTML document. By default is disabled (false).
public final void setExtractOnlyUsedFont(boolean value)
Gets or sets a value indicating whether extract only font resources that are used in the textual content of the document.
Value:true if it is required to extract only those font
resources, which are used in text content of the document; otherwise,
false. Default value is false.
public final void setFontExtraction(int value)
Responsible for extracting font resources, which are used in the input WordProcessing document. By default doesn't extract any fonts (NotExtract).
public final void setInputControlsClassName(String value)
Allows to specify a class name, which will be placed to the 'class' attributes in every HTML element, that represents some field in the input WordProcessing document. By default is NULL - 'class' attributes are not applied.
public final void setUseInlineStyles(boolean value)
Controls where to store the styling and formatting data of the input WordProcessing document: in external stylesheet (false) or as inline styles in the HTML markup (true). By default external styles are used (false).
Copyright © 2024. All rights reserved.