com.groupdocs.watermark.legacy

Interfaces

Classes

Exceptions

com.groupdocs.watermark.legacy

Class PreviewHandler

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable

    Deprecated.

    @Deprecated
    public abstract class PreviewHandler
    extends Object
    implements com.aspose.ms.System.IDisposable

    Provides an abstract base class for all preview handlers.

    • Method Detail

      • getUnitOfMeasurement

        public abstract int getUnitOfMeasurement()
        Deprecated. 

        Gets the unit of measurement of the document.

        Returns:
        The unit of measurement of the document.
      • getPages

        public final PreviewPage[] getPages()
        Deprecated. 

        Gets a collection of the document pages for which previews can be generated.

        Returns:
        A collection of the document pages for which previews can be generated.
      • getPreviewSupported

        public boolean getPreviewSupported()
        Deprecated. 

        Gets a value indicating whether generating preview images is supported for the document.

        Returns:
        True if previews can be generated for the document; otherwise, false.
      • getPageImage

        public final PreviewImageData[] getPageImage(int pageIndex)
        Deprecated. 

        Creates preview images for the specified page.

        Parameters:
        pageIndex - The zero-based index of the page to preview.
        Returns:
        A collection of preview images.
      • getPageImage

        public final PreviewImageData[] getPageImage(int pageIndex,
                                      int resolution)
        Deprecated. 

        Creates preview images for the specified page.

        Parameters:
        pageIndex - The zero-based index of the page to preview.
        resolution - The resolution for generated images.
        Returns:
        A collection of preview images.
      • dispose

        protected void dispose(boolean disposing)
        Deprecated. 

        Disposes the current instance.

        Parameters:
        disposing - True to release both managed and unmanaged resources; false to release only unmanaged resources.
      • dispose

        public final void dispose()
        Deprecated. 

        Disposes the current instance.

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable
      • extractPreviewPages

        protected abstract PreviewPage[] extractPreviewPages()
        Deprecated. 

        Extracts the collection of preview pages from a particular format.

        Returns:
        The collection of preview pages.
      • createPreviews

        protected abstract PreviewImageData[] createPreviews(int pageIndex,
                                        int resolution)
        Deprecated. 

        Creates preview images for the specified page.

        Parameters:
        pageIndex - The zero-based index of the page to preview.
        resolution - The resolution for generated images.
        Returns:
        The collection of preview images.