LoadOptions

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.

Constructors

Constructor Description
LoadOptions() Creates load options with automatic format detection.
LoadOptions(FileFormat fileFormat) Creates load options with explicit file format.

Methods

LoadOptions()

public LoadOptions()

Creates load options with automatic format detection.

LoadOptions(FileFormat fileFormat)

public LoadOptions(FileFormat fileFormat)

Creates load options with explicit file format.

Parameters:

Parameter Type Description
fileFormat FileFormat document file format

getPassword()

public String getPassword()

Returns: java.lang.String

setPassword(String password)

public void setPassword(String password)

Parameters:

Parameter Type Description
password java.lang.String

getFileFormat()

public FileFormat getFileFormat()

Returns: FileFormat

getExtension()

public String getExtension()

Returns: java.lang.String

getMimeType()

public String getMimeType()

Returns: java.lang.String

getFileFormatFromExtension(String extension)

public static FileFormat getFileFormatFromExtension(String extension)

Parameters:

Parameter Type Description
extension java.lang.String

Returns: FileFormat