com.groupdocs.annotation.domain.image

Class PageImage



  • public class PageImage
    extends Page

    Page image description

    • Constructor Detail

      • PageImage

        public PageImage(int pageNumber)

        Initializes a new instance of the PageImage class.

        Parameters:
        pageNumber - The page number.
      • PageImage

        public PageImage(int pageNumber,
                 InputStream stream)

        Initializes a new instance of the PageImage class.

        Parameters:
        pageNumber - The page number.
        stream - The stream.
    • Method Detail

      • getThumbnail

        public final InputStream getThumbnail()

        Get page thumbnail. Default size would be 300x180

        Returns:
        Stream of JPEG image
      • getThumbnail

        public final InputStream getThumbnail(int width,
                               int height)

        Get page thumbnail.

        Parameters:
        width - Thumbnail width
        height - Thumbnail height
        Returns:
        Stream of JPEG image