public class OdtSaveOptions extends SaveOptions
SaveFormat.ODT or SaveFormat.OTT format.
To learn more, visit the Specify Save Options documentation article.
At the moment provides only the getSaveFormat() / setSaveFormat(int) property, but in the future will have other options added, such as an encryption password or digital signature settings.
| Constructor and Description |
|---|
OdtSaveOptions()
Initializes a new instance of this class that can be used to save a document in the
SaveFormat.ODT format. |
OdtSaveOptions(int saveFormat)
Initializes a new instance of this class.
|
OdtSaveOptions(java.lang.String password)
Initializes a new instance of this class that can be used to save a document in the
SaveFormat.ODT format encrypted with a password. |
| Modifier and Type | Method and Description |
|---|---|
int |
getMeasureUnit()
Allows to specify units of measure to apply to document content.
|
java.lang.String |
getPassword()
Gets a password to encrypt document.
|
int |
getSaveFormat()
Specifies the format in which the document will be saved if this save options object is used.
|
boolean |
isStrictSchema11()
Specifies whether export should correspond to ODT specification 1.1 strictly.
|
void |
isStrictSchema11(boolean value)
Specifies whether export should correspond to ODT specification 1.1 strictly.
|
void |
setMeasureUnit(int value)
Allows to specify units of measure to apply to document content.
|
void |
setPassword(java.lang.String value)
Sets a password to encrypt document.
|
void |
setSaveFormat(int value)
Specifies the format in which the document will be saved if this save options object is used.
|
createSaveOptions, createSaveOptions, getAllowEmbeddingPostScriptFonts, getDefaultTemplate, getDml3DEffectsRenderingMode, getDmlEffectsRenderingMode, getDmlRenderingMode, getExportGeneratorName, getImlRenderingMode, getMemoryOptimization, getPrettyFormat, getProgressCallback, getTempFolder, getUpdateCreatedTimeProperty, getUpdateFields, getUpdateLastPrintedProperty, getUpdateLastSavedTimeProperty, getUpdateSdtContent, getUseAntiAliasing, getUseHighQualityRendering, setAllowEmbeddingPostScriptFonts, setDefaultTemplate, setDml3DEffectsRenderingMode, setDmlEffectsRenderingMode, setDmlRenderingMode, setExportGeneratorName, setImlRenderingMode, setMemoryOptimization, setPrettyFormat, setProgressCallback, setTempFolder, setUpdateCreatedTimeProperty, setUpdateFields, setUpdateLastPrintedProperty, setUpdateLastSavedTimeProperty, setUpdateSdtContent, setUseAntiAliasing, setUseHighQualityRenderingpublic OdtSaveOptions()
SaveFormat.ODT format.public OdtSaveOptions(java.lang.String password)
SaveFormat.ODT format encrypted with a password.public OdtSaveOptions(int saveFormat)
public int getSaveFormat()
SaveFormat.ODT or SaveFormat.OTT.getSaveFormat in class SaveOptionsint value. The returned value is one of SaveFormat constants.public void setSaveFormat(int value)
SaveFormat.ODT or SaveFormat.OTT.setSaveFormat in class SaveOptionsvalue - The corresponding int value. The value must be one of SaveFormat constants.public boolean isStrictSchema11()
boolean value.public void isStrictSchema11(boolean value)
value - The corresponding boolean value.public int getMeasureUnit()
OdtSaveMeasureUnit.CENTIMETERS
Open Office uses centimeters when specifying lengths, widths and other measurable formatting and content properties in documents whereas MS Office uses inches.int value. The returned value is one of OdtSaveMeasureUnit constants.public void setMeasureUnit(int value)
OdtSaveMeasureUnit.CENTIMETERS
Open Office uses centimeters when specifying lengths, widths and other measurable formatting and content properties in documents whereas MS Office uses inches.value - The corresponding int value. The value must be one of OdtSaveMeasureUnit constants.public java.lang.String getPassword()
In order to save document without encryption this property should be null or empty string.
public void setPassword(java.lang.String value)
In order to save document without encryption this property should be null or empty string.
value - A password to encrypt document.