com.groupdocs.merger.domain.result

Class PageInfo

  • All Implemented Interfaces:
    IPageInfo


    public class PageInfo
    extends Object
    implements IPageInfo

    Defines page description properties.

    • Constructor Summary

      Constructors 
      Constructor and Description
      PageInfo(int number, boolean visible)
      Initializes new instance of PageInfo class.
      PageInfo(int number, boolean visible, int width, int height)
      Initializes new instance of PageInfo class.
    • 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.ArgumentException - 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.ArgumentException - Thrown when number is less or equal to zero.
        com.aspose.ms.System.ArgumentException - Thrown when width is less or equal to zero.
        com.aspose.ms.System.ArgumentException - 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
      • setHeight

        public final void setHeight(int value)

        Gets page height in pixels when converted to image.

      • setNumber

        public final void setNumber(int value)

        Gets the page number.

      • setVisible

        public final void setVisible(boolean value)

        Indicates whether page is visibile or not.

      • setWidth

        public final void setWidth(int value)

        Gets page width in pixels when converted to image.