IPreviewOptions
Leave feedback
On this page
All Implemented Interfaces: com.groupdocs.merger.domain.options.interfaces.IPageOptions
public interface IPreviewOptions extends IPageOptions
Interface for the preview options.
| Method | Description |
|---|---|
| getWidth() | Preview width. |
| setWidth(int value) | Preview width. |
| getHeight() | Preview height. |
| setHeight(int value) | Preview height. |
| getResolution() | Image resolution. |
| setResolution(int value) | Image resolution. |
| getMode() | Gets the mode for preview. |
| validate(FileType fileType) | Validates the split options. |
| getPathByPageNumber(int pageNumber, String extension) | Gets the full file path of previewed document by page number with defined extension. |
| getPageStreamFactory() | Delegate that defines method to create output page preview stream. |
public abstract int getWidth()
Preview width.
Returns: int
public abstract void setWidth(int value)
Preview width.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
public abstract int getHeight()
Preview height.
Returns: int
public abstract void setHeight(int value)
Preview height.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
public abstract int getResolution()
Image resolution.
Returns: int
public abstract void setResolution(int value)
Image resolution.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
public abstract int getMode()
Gets the mode for preview.
Returns: int
public abstract void validate(FileType fileType)
Validates the split options.
Parameters:
public abstract String getPathByPageNumber(int pageNumber, String extension)
Gets the full file path of previewed document by page number with defined extension.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| pageNumber | int | Page number of preview. |
| extension | java.lang.String | Extension of file. |
Returns: java.lang.String - The full file path.
public abstract PageStreamFactory getPageStreamFactory()
Delegate that defines method to create output page preview stream.
Returns: PageStreamFactory
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.