public class LoadOptions extends Object
Provides options that will be used to open a file.
Learn more
The following example demonstrates how to open password-protected document.
LoadOptions loadOptions = new LoadOptions("mysecretpassword");
try (Redactor redactor = new Redactor("PasswordProtected.pdf", loadOptions))
{
// work with document
}
Constructor and Description |
---|
LoadOptions()
Initializes a new instance of LoadOptions class.
|
LoadOptions(String password)
Initializes a new instance of LoadOptions class with specified password.
|
Modifier and Type | Method and Description |
---|---|
String |
getPassword()
Gets a password for password-protected documents.
|
void |
setPassword(String value)
Sets a password for password-protected documents.
|
public LoadOptions()
Initializes a new instance of LoadOptions class.
public LoadOptions(String password)
Initializes a new instance of LoadOptions class with specified password.
password
- Password for protected filespublic final String getPassword()
Gets a password for password-protected documents.
public final void setPassword(String value)
Sets a password for password-protected documents.
value
- A password for password-protected documents.