com.aspose.words
Class PageInfo

java.lang.Object
    extended by 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:
#Error Cref: M:Aspose.Words.Document.GetPageInfo(System.Int32)

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.
Aspose.Words.PaperSizegetPaperSize()
           Gets the paper size as enumeration.
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)
          
 

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 Aspose.Words.PaperSize getPaperSize()
Gets the paper size as enumeration.

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 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)

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.