ImportDocumentOptions
Leave feedback
On this page
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
- More about adding attachment to PDF documents: How to add attachment to PDF document.
- More about adding document to Word processing via OLE: Add document to Word processing via OLE.
- More about adding document to Presentation via OLE: Add document to Presentation via OLE.
- More about adding document to Spreadsheet via OLE: Add document to Spreadsheet via OLE.
- More about adding document to Diagram via OLE: Add document to Diagram via OLE.
| 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. |
| 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. |
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. |
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. |
public final byte[] getObjectData()
The data of the embedded object.
Returns: byte[]
public final String getExtension()
The extension of the embedded object.
Returns: java.lang.String
public final int getPageNumber()
The page number for inserting of the embedded object.
Returns: int
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[]
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.