public class DocSaveOptions extends SaveOptions
SaveFormat.DOC or SaveFormat.DOT 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 |
|---|
DocSaveOptions()
Initializes a new instance of this class that can be used to save a document in the
SaveFormat.DOC format. |
DocSaveOptions(int saveFormat)
Initializes a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAlwaysCompressMetafiles()
When
false, small metafiles are not compressed for performance reason. |
java.lang.String |
getPassword()
Gets/sets a password to encrypt document using RC4 encryption method.
|
int |
getSaveFormat()
Specifies the format in which the document will be saved if this save options object is used.
|
boolean |
getSavePictureBullet()
When
false, PictureBullet data is not saved to output document. |
boolean |
getSaveRoutingSlip()
When
false, RoutingSlip data is not saved to output document. |
void |
setAlwaysCompressMetafiles(boolean value)
When
false, small metafiles are not compressed for performance reason. |
void |
setPassword(java.lang.String value)
Gets/sets a password to encrypt document using RC4 encryption method.
|
void |
setSaveFormat(int value)
Specifies the format in which the document will be saved if this save options object is used.
|
void |
setSavePictureBullet(boolean value)
When
false, PictureBullet data is not saved to output document. |
void |
setSaveRoutingSlip(boolean value)
When
false, RoutingSlip data is not saved to output document. |
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 DocSaveOptions()
SaveFormat.DOC format.public DocSaveOptions(int saveFormat)
public int getSaveFormat()
SaveFormat.DOC or SaveFormat.DOT.getSaveFormat in class SaveOptionsint value. The returned value is one of SaveFormat constants.public void setSaveFormat(int value)
SaveFormat.DOC or SaveFormat.DOT.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 boolean getSaveRoutingSlip()
false, RoutingSlip data is not saved to output document. Default value is true.boolean value.public void setSaveRoutingSlip(boolean value)
false, RoutingSlip data is not saved to output document. Default value is true.value - The corresponding boolean value.public boolean getAlwaysCompressMetafiles()
false, small metafiles are not compressed for performance reason. Default value is true, all metafiles are compressed regardless of its size.boolean value.public void setAlwaysCompressMetafiles(boolean value)
false, small metafiles are not compressed for performance reason. Default value is true, all metafiles are compressed regardless of its size.value - The corresponding boolean value.public boolean getSavePictureBullet()
false, PictureBullet data is not saved to output document. Default value is true.
This option is provided for Word 97, which cannot work correctly with PictureBullet data. To remove PictureBullet data, set the option to "false".
boolean value.public void setSavePictureBullet(boolean value)
false, PictureBullet data is not saved to output document. Default value is true.
This option is provided for Word 97, which cannot work correctly with PictureBullet data. To remove PictureBullet data, set the option to "false".
value - The corresponding boolean value.