public class SaveOptions extends Object
Allows to specify additional options (such as password) when saving a document to sign.
Constructor and Description |
---|
SaveOptions()
Initializes a new instance of SaveOptions class with default values.
|
SaveOptions(boolean overwriteExistingFile)
Initializes a new instance of SaveOptions class with specified output type and overwrite flag.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAddMissingExtenstion()
Gets or sets flag to automatically add extension when it was missing in output file path
Default value is false.
|
boolean |
getOverwriteExistingFiles()
Gets or sets whether to overwrite existing file with new output file.
|
String |
getPassword()
Gets or sets password to save signed document with password protection.
|
boolean |
getUseOriginalPassword()
Gets or sets whether to use password from LoadOptions to save signed document as protected.
|
void |
setAddMissingExtenstion(boolean value)
Gets or sets flag to automatically add extension when it was missing in output file path
Default value is false.
|
void |
setOverwriteExistingFiles(boolean value)
Gets or sets whether to overwrite existing file with new output file.
|
void |
setPassword(String value)
Gets or sets password to save signed document with password protection.
|
void |
setUseOriginalPassword(boolean value)
Gets or sets whether to use password from LoadOptions to save signed document as protected.
|
public SaveOptions()
Initializes a new instance of SaveOptions class with default values.
public SaveOptions(boolean overwriteExistingFile)
Initializes a new instance of SaveOptions class with specified output type and overwrite flag.
overwriteExistingFile
- Flag whether to overwrite signed file with same file.public final boolean getAddMissingExtenstion()
Gets or sets flag to automatically add extension when it was missing in output file path Default value is false.
public final boolean getOverwriteExistingFiles()
Gets or sets whether to overwrite existing file with new output file. Otherwise new file will be created with number as suffix.
public final String getPassword()
Gets or sets password to save signed document with password protection. This property is not supported for Image documents.
public final boolean getUseOriginalPassword()
Gets or sets whether to use password from LoadOptions to save signed document as protected. Default value is true. This property is not supported for Image documents.
public final void setAddMissingExtenstion(boolean value)
Gets or sets flag to automatically add extension when it was missing in output file path Default value is false.
public final void setOverwriteExistingFiles(boolean value)
Gets or sets whether to overwrite existing file with new output file. Otherwise new file will be created with number as suffix.
public final void setPassword(String value)
Gets or sets password to save signed document with password protection. This property is not supported for Image documents.
public final void setUseOriginalPassword(boolean value)
Gets or sets whether to use password from LoadOptions to save signed document as protected. Default value is true. This property is not supported for Image documents.