public abstract class ImportDocumentOptions extends Object implements IImportDocumentOptions
Provides options for the embedded document import.
Constructor and Description |
---|
ImportDocumentOptions(byte[] objectData,
String extension,
int pageNumber)
Initializes a new instance of the
ImportDocumentOptions class. |
ImportDocumentOptions(String filePath,
int pageNumber)
Initializes a new instance of the
ImportDocumentOptions class. |
Modifier and Type | Method and Description |
---|---|
String |
getExtension()
The extension of the embedded object.
|
byte[] |
getImageData(String filePath)
Gets image data of the embedded object.
|
byte[] |
getObjectData()
The data of the embedded object.
|
int |
getPageNumber()
The page number for inserting of the embedded object.
|
public ImportDocumentOptions(byte[] objectData, String extension, int pageNumber)
Initializes a new instance of the ImportDocumentOptions
class.
objectData
- The data of the embedded object.extension
- The extension of the embedded object.pageNumber
- The page number for adding embedded object.public ImportDocumentOptions(String filePath, int pageNumber) throws Exception
Initializes a new instance of the ImportDocumentOptions
class.
filePath
- The file path of the embedded object.pageNumber
- The page number for adding embedded object.Exception
public final String getExtension()
The extension of the embedded object.
getExtension
in interface IImportDocumentOptions
public final byte[] getImageData(String filePath) throws Exception
Gets image data of the embedded object.
filePath
- The file path of the embedded object.Exception
public final byte[] getObjectData()
The data of the embedded object.
getObjectData
in interface IImportDocumentOptions
public final int getPageNumber()
The page number for inserting of the embedded object.
getPageNumber
in interface IImportDocumentOptions