public abstract class PreviewHandler extends Object implements com.aspose.ms.System.IDisposable
Provides an abstract base class for all preview handlers.
Modifier and Type | Method and Description |
---|---|
protected abstract PreviewImageData[] |
createPreviews(int pageIndex,
int resolution)
Creates preview images for the specified page.
|
void |
dispose()
Disposes the current instance.
|
protected void |
dispose(boolean disposing)
Disposes the current instance.
|
protected abstract PreviewPage[] |
extractPreviewPages()
Extracts the collection of preview pages from a particular format.
|
PreviewImageData[] |
getPageImage(int pageIndex)
Creates preview images for the specified page.
|
PreviewImageData[] |
getPageImage(int pageIndex,
int resolution)
Creates preview images for the specified page.
|
PreviewPage[] |
getPages()
Gets a collection of the document pages for which previews can be generated.
|
boolean |
getPreviewSupported()
Gets a value indicating whether generating preview images is supported for the document.
|
abstract int |
getUnitOfMeasurement()
Gets the unit of measurement of the document.
|
public abstract int getUnitOfMeasurement()
Gets the unit of measurement of the document.
public PreviewPage[] getPages()
Gets a collection of the document pages for which previews can be generated.
public boolean getPreviewSupported()
Gets a value indicating whether generating preview images is supported for the document.
public PreviewImageData[] getPageImage(int pageIndex)
Creates preview images for the specified page.
pageIndex
- The zero-based index of the page to preview.public PreviewImageData[] getPageImage(int pageIndex, int resolution)
Creates preview images for the specified page.
pageIndex
- The zero-based index of the page to preview.resolution
- The resolution for generated images.public void dispose()
Disposes the current instance.
dispose
in interface com.aspose.ms.System.IDisposable
protected void dispose(boolean disposing)
Disposes the current instance.
disposing
- True to release both managed and unmanaged resources;
false to release only unmanaged resources.protected abstract PreviewPage[] extractPreviewPages()
Extracts the collection of preview pages from a particular format.
protected abstract PreviewImageData[] createPreviews(int pageIndex, int resolution)
Creates preview images for the specified page.
pageIndex
- The zero-based index of the page to preview.resolution
- The resolution for generated images.Copyright © 2019. All rights reserved.