public class OoxmlSaveOptions extends SaveOptions
SaveFormat.DOCX, SaveFormat.DOCM, SaveFormat.DOTX, SaveFormat.DOTM or SaveFormat.FLAT_OPC format.
To learn more, visit the Specify Save Options documentation article.
| Constructor and Description |
|---|
OoxmlSaveOptions()
Initializes a new instance of this class that can be used to save a document in the
SaveFormat.DOCX format. |
OoxmlSaveOptions(int saveFormat)
Initializes a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCompliance()
Specifies the OOXML version for the output document.
|
int |
getCompressionLevel()
Specifies the compression level used to save document.
|
boolean |
getKeepLegacyControlChars()
Keeps original representation of legacy control characters.
|
java.lang.String |
getPassword()
Gets/sets a password to encrypt document using ECMA376 Standard encryption algorithm.
|
int |
getSaveFormat()
Specifies the format in which the document will be saved if this save options object is used.
|
void |
setCompliance(int value)
Specifies the OOXML version for the output document.
|
void |
setCompressionLevel(int value)
Specifies the compression level used to save document.
|
void |
setKeepLegacyControlChars(boolean value)
Keeps original representation of legacy control characters.
|
void |
setPassword(java.lang.String value)
Gets/sets a password to encrypt document using ECMA376 Standard encryption algorithm.
|
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 OoxmlSaveOptions()
SaveFormat.DOCX format.public OoxmlSaveOptions(int saveFormat)
public int getSaveFormat()
SaveFormat.DOCX, SaveFormat.DOCM, SaveFormat.DOTX, SaveFormat.DOTM or SaveFormat.FLAT_OPC.getSaveFormat in class SaveOptionsint value. The returned value is one of SaveFormat constants.public void setSaveFormat(int value)
SaveFormat.DOCX, SaveFormat.DOCM, SaveFormat.DOTX, SaveFormat.DOTM or SaveFormat.FLAT_OPC.setSaveFormat in class SaveOptionsvalue - The corresponding int value. The value must be one of SaveFormat constants.public java.lang.String getPassword()
In order to save document without encryption this property should be null or empty string.
String value.public void setPassword(java.lang.String value)
In order to save document without encryption this property should be null or empty string.
value - The corresponding String value.public int getCompliance()
OoxmlCompliance.ECMA_376_2006.int value. The returned value is one of OoxmlCompliance constants.public void setCompliance(int value)
OoxmlCompliance.ECMA_376_2006.value - The corresponding int value. The value must be one of OoxmlCompliance constants.public boolean getKeepLegacyControlChars()
boolean value.public void setKeepLegacyControlChars(boolean value)
value - The corresponding boolean value.public int getCompressionLevel()
CompressionLevel.NORMAL.int value. The returned value is one of CompressionLevel constants.public void setCompressionLevel(int value)
CompressionLevel.NORMAL.value - The corresponding int value. The value must be one of CompressionLevel constants.