ImportDocumentOptions

Inheritance: java.lang.Object

All Implemented Interfaces: com.groupdocs.merger.domain.options.interfaces.IImportDocumentOptions

public abstract class ImportDocumentOptions implements IImportDocumentOptions

Provides options for the embedded document import.


Learn more

Constructors

Constructor 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.

Methods

Method Description
getObjectData() The data of the embedded object.
getExtension() The extension of the embedded object.
getPageNumber() The page number for inserting of the embedded object.
getImageData(String filePath) Gets image data of the embedded object.

ImportDocumentOptions(byte[] objectData, String extension, int pageNumber)

public ImportDocumentOptions(byte[] objectData, String extension, int pageNumber)

Initializes a new instance of the ImportDocumentOptions class.

Parameters:

Parameter Type Description
objectData byte[] The data of the embedded object.
extension java.lang.String The extension of the embedded object.
pageNumber int The page number for adding embedded object.

ImportDocumentOptions(String filePath, int pageNumber)

public ImportDocumentOptions(String filePath, int pageNumber)

Initializes a new instance of the ImportDocumentOptions class.

Parameters:

Parameter Type Description
filePath java.lang.String The file path of the embedded object.
pageNumber int The page number for adding embedded object.

getObjectData()

public final byte[] getObjectData()

The data of the embedded object.

Returns: byte[]

getExtension()

public final String getExtension()

The extension of the embedded object.

Returns: java.lang.String

getPageNumber()

public final int getPageNumber()

The page number for inserting of the embedded object.

Returns: int

getImageData(String filePath)

public final byte[] getImageData(String filePath)

Gets image data of the embedded object.

Parameters:

Parameter Type Description
filePath java.lang.String The file path of the embedded object.

Returns: byte[]