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(int outputType)
Initializes a new instance of SaveOptions class with specified output type.
|
SaveOptions(int outputType,
boolean overwriteExistingFile)
Initializes a new instance of SaveOptions class with specified output type and overwrite flag.
|
SaveOptions(int outputType,
String outputFileName)
Initializes a new instance of SaveOptions class with specified output type and file name.
|
SaveOptions(int outputType,
String outputFileName,
boolean overwriteExistingFile)
Initializes a new instance of SaveOptions class with specified output type, file name and overwrite flag.
|
Modifier and Type | Method and Description |
---|---|
String |
getOutputFileName()
Gets or sets file name of signed document.
|
int |
getOutputType()
Result type of signed document - String or Stream.
|
boolean |
getOverwriteExistingFiles()
Gets or sets whether to overwrite existing file with new output file.
|
String |
getPassword()
Gets or sets password to save signed document as protected.
|
boolean |
getUseOriginalPassword()
Gets or sets whether to use password from LoadOptions to save signed document as protected.
|
void |
setOutputFileName(String value)
Gets or sets file name of signed document.
|
void |
setOutputType(int value)
Result type of signed document - String or Stream.
|
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 as protected.
|
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(int outputType)
Initializes a new instance of SaveOptions class with specified output type.
outputType
- Output type.public SaveOptions(int outputType, boolean overwriteExistingFile)
Initializes a new instance of SaveOptions class with specified output type and overwrite flag.
outputType
- Output type.overwriteExistingFile
- Flag whether to overwrite signed file with same file.public SaveOptions(int outputType, String outputFileName)
Initializes a new instance of SaveOptions class with specified output type and file name.
outputType
- Output type.outputFileName
- Output file name.public SaveOptions(int outputType, String outputFileName, boolean overwriteExistingFile)
Initializes a new instance of SaveOptions class with specified output type, file name and overwrite flag.
outputType
- Output type.outputFileName
- Output file name.overwriteExistingFile
- Flag whether to overwrite signed file with same file.public String getOutputFileName()
Gets or sets file name of signed document.
public int getOutputType()
Result type of signed document - String or Stream. Default is Stream.
public 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 String getPassword()
Gets or sets password to save signed document as protected.
public boolean getUseOriginalPassword()
Gets or sets whether to use password from LoadOptions to save signed document as protected. Default value is true.
public void setOutputFileName(String value)
Gets or sets file name of signed document.
public void setOutputType(int value)
Result type of signed document - String or Stream. Default is Stream.
public 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 void setPassword(String value)
Gets or sets password to save signed document as protected.
public void setUseOriginalPassword(boolean value)
Gets or sets whether to use password from LoadOptions to save signed document as protected. Default value is true.
Copyright © 2018. All rights reserved.