LoadOptions
Inheritance: java.lang.Object
public class LoadOptions
Allows to specify additional options (such as password) when opening a document to sign.
Constructors
| Constructor | Description |
|---|---|
| LoadOptions() | Initializes a new instance of LoadOptions class. |
Methods
| Method | Description |
|---|---|
| getPassword() | Gets or sets password to open a protected document. |
| setPassword(String value) | Gets or sets password to open a protected document. |
| getLoadExternalResources() | Gets or sets options that specifies if external document resources should be loaded. |
| setLoadExternalResources(boolean value) | Gets or sets options that specifies if external document resources should be loaded. |
| getPermissions() | The PDF document permissions such as printing, modification and data extraction. |
| setPermissions(Integer value) | Internal setter, used by document load processors to record permissions parsed from the file. |
LoadOptions()
public LoadOptions()
Initializes a new instance of LoadOptions class.
getPassword()
public final String getPassword()
Gets or sets password to open a protected document. It will be also used to save signed document as protected.
Returns: java.lang.String
setPassword(String value)
public final void setPassword(String value)
Gets or sets password to open a protected document. It will be also used to save signed document as protected.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
getLoadExternalResources()
public final boolean getLoadExternalResources()
Gets or sets options that specifies if external document resources should be loaded. This option with disabled value (false) allows to save loading time for the documents with many or large external resource links. By default value is enabled (true).
Returns: boolean
setLoadExternalResources(boolean value)
public final void setLoadExternalResources(boolean value)
Gets or sets options that specifies if external document resources should be loaded. This option with disabled value (false) allows to save loading time for the documents with many or large external resource links. By default value is enabled (true).
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean |
getPermissions()
public final Integer getPermissions()
The PDF document permissions such as printing, modification and data extraction. Only for PDF documents. Read-only \u2014 populated automatically while loading the document. The value is a flags combination from Permissions.
Returns: java.lang.Integer
setPermissions(Integer value)
public final void setPermissions(Integer value)
Internal setter, used by document load processors to record permissions parsed from the file.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.Integer |