com.groupdocs.merger.domain.result

Class PageInfo

  • All Implemented Interfaces:
    IPageInfo


    public class PageInfo
    extends Object
    implements IPageInfo

    Defines page description properties.

    • Constructor Detail

      • PageInfo

        public PageInfo(int number,
                        boolean visible)

        Initializes new instance of PageInfo class.

        Parameters:
        number - The page number.
        visible - The page visibility indicator.
        Throws:
        com.aspose.ms.System.Exception - Thrown when number is less or equal to zero.
      • PageInfo

        public PageInfo(int number,
                        boolean visible,
                        int width,
                        int height)

        Initializes new instance of PageInfo class.

        Parameters:
        number - The page number.
        visible - The page visibility indicator.
        width - The width of the page in pixels when viewing as JPG or PNG.
        height - The height of the page in pixels when viewing as JPG or PNG.
        Throws:
        com.aspose.ms.System.Exception - Thrown when number is less or equal to zero.
        com.aspose.ms.System.Exception - Thrown when width is less or equal to zero.
        com.aspose.ms.System.Exception - Thrown when height is less or equal to zero.
    • Method Detail

      • getHeight

        public final int getHeight()

        Gets page height in pixels when converted to image.

        Specified by:
        getHeight in interface IPageInfo
      • getNumber

        public final int getNumber()

        Gets the page number.

        Specified by:
        getNumber in interface IPageInfo
      • getVisible

        public final boolean getVisible()

        Indicates whether page is visibile or not.

        Specified by:
        getVisible in interface IPageInfo
      • getWidth

        public final int getWidth()

        Gets page width in pixels when converted to image.

        Specified by:
        getWidth in interface IPageInfo