com.aspose.words

Class PageInfo

  • java.lang.Object
    • com.aspose.words.PageInfo
public class PageInfo 
extends java.lang.Object

Represents information about a particular document page.

The page width and height returned by this object represent the "final" size of the page e.g. they are already rotated to the correct orientation.

See Also:
Document.getPageInfo(int)

Property Getters/Setters Summary
floatgetHeightInPoints()
Gets the height of the page in points.
booleangetLandscape()
Returns true if the page orientation specified in the document for this page is landscape.
intgetPaperSize()
Gets the paper size as enumeration. The value of the property is PaperSize integer constant.
intgetPaperTray()
Gets the paper tray (bin) for this page as specified in the document. The value is implementation (printer) specific.
java.awt.DimensiongetSizeInPoints()
Gets the page size in points.
floatgetWidthInPoints()
Gets the width of the page in points.
 
Method Summary
java.awt.DimensiongetSizeInPixels(float scale, float dpi)
Calculates the page size in pixels for a specified zoom factor and resolution.
java.awt.DimensiongetSizeInPixels(float scale, float horizontalDpi, float verticalDpi)
Calculates the page size in pixels for a specified zoom factor and resolution.
 

    • Property Getters/Setters Detail

      • getHeightInPoints

        public float getHeightInPoints()
        
        Gets the height of the page in points.
      • getLandscape

        public boolean getLandscape()
        
        Returns true if the page orientation specified in the document for this page is landscape.
      • getPaperSize

        public int getPaperSize()
        
        Gets the paper size as enumeration. The value of the property is PaperSize integer constant.
      • getPaperTray

        public int getPaperTray()
        
        Gets the paper tray (bin) for this page as specified in the document. The value is implementation (printer) specific.
      • getSizeInPoints

        public java.awt.Dimension getSizeInPoints()
        
        Gets the page size in points.
      • getWidthInPoints

        public float getWidthInPoints()
        
        Gets the width of the page in points.
    • Method Detail

      • getSizeInPixels

        public java.awt.Dimension getSizeInPixels(float scale, float dpi)
        Calculates the page size in pixels for a specified zoom factor and resolution.
        Parameters:
        scale - The zoom factor (1.0 is 100%).
        dpi - The resolution (horizontal and vertical) to convert from points to pixels (dots per inch).
        Returns:
        The size of the page in pixels.
      • getSizeInPixels

        public java.awt.Dimension getSizeInPixels(float scale, float horizontalDpi, float verticalDpi)
        Calculates the page size in pixels for a specified zoom factor and resolution.
        Parameters:
        scale - The zoom factor (1.0 is 100%).
        horizontalDpi - The horizontal resolution to convert from points to pixels (dots per inch).
        verticalDpi - The vertical resolution to convert from points to pixels (dots per inch).
        Returns:
        The size of the page in pixels.