LoadOptions
Leave feedback
On this page
Inheritance: java.lang.Object
public class LoadOptions
Specifies additional options for loading a document, such as an explicit file format or a password for encrypted files.
| Constructor | Description |
|---|---|
| LoadOptions() | Creates load options with automatic format detection. |
| LoadOptions(FileFormat fileFormat) | Creates load options with explicit file format. |
| Method | Description |
|---|---|
| getPassword() | |
| setPassword(String password) | |
| getFileFormat() | |
| getExtension() | |
| getMimeType() | |
| getFileFormatFromExtension(String extension) |
public LoadOptions()
Creates load options with automatic format detection.
public LoadOptions(FileFormat fileFormat)
Creates load options with explicit file format.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fileFormat | FileFormat | document file format |
public String getPassword()
Returns: java.lang.String
public void setPassword(String password)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| password | java.lang.String |
public FileFormat getFileFormat()
Returns: FileFormat
public String getExtension()
Returns: java.lang.String
public String getMimeType()
Returns: java.lang.String
public static FileFormat getFileFormatFromExtension(String extension)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| extension | java.lang.String |
Returns: FileFormat
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.