public class PageInfo
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.
Property Getters/Setters Summary | ||
---|---|---|
float | getHeightInPoints() | |
Gets the height of the page in points.
|
||
boolean | getLandscape() | |
Returns true if the page orientation specified in the document for this page is landscape.
|
||
int | getPaperSize() | |
Gets the paper size as enumeration.
The value of the property is PaperSize integer constant. |
||
int | getPaperTray() | |
Gets the paper tray (bin) for this page as specified in the document.
The value is implementation (printer) specific.
|
||
java.awt.Dimension | getSizeInPoints() | |
Gets the page size in points.
|
||
float | getWidthInPoints() | |
Gets the width of the page in points.
|
Method Summary | ||
---|---|---|
java.awt.Dimension | getSizeInPixels(float scale, float dpi) | |
Calculates the page size in pixels for a specified zoom factor and resolution.
|
||
java.awt.Dimension | getSizeInPixels(float scale, float horizontalDpi, float verticalDpi) | |
Calculates the page size in pixels for a specified zoom factor and resolution.
|
public float getHeightInPoints()
public boolean getLandscape()
public int getPaperSize()
public int getPaperTray()
public java.awt.Dimension getSizeInPoints()
public float getWidthInPoints()
public java.awt.Dimension getSizeInPixels(float scale, float dpi)
scale
- The zoom factor (1.0 is 100%).dpi
- The resolution (horizontal and vertical) to convert from points to pixels (dots per inch).public java.awt.Dimension getSizeInPixels(float scale, float horizontalDpi, float verticalDpi)
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).