PGetPageRect

Gets the coordinates of the current page (or of the two-page spread if facing pages are displayed).


Query results

long xLeft;
x coordinate of left edge of page, relative to zero point in twips
long yTop;
y coordinate of top edge of page, relative to zero point in twips
long xRight;
x coordinate of right edge of page, relative to zero point in twips
long yBottom;
y coordinate of bottom edge of page, relative to zero point in twips
Facing pages. With facing pages specified, xLeft corresponds to the left edge of the left page and xRight corresponds to the right edge of the right page.

Example.

PGetPageRect pageRect;
long width = pageRect.xRight - pageRect.xLeft;
long height = pageRect.yBottom - pageRect.yTop;


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support