PGetPageNumber

Gets the page number of the currently displayed page or, if a master page is displayed, gets the name of the master page.


Query results

short nPageNumber;

Page number (between 0 and 1000) of currently displayed page (or odd page number of pair of facing pages)
-3 if left page of master page is currently displayed
-4 if right page of master page is currently displayed

const char * sMasterName;

"" if a standard page is displayed
Name of currently displayed master page

Do not confuse this query with PGetPageNumbers, which has a very similar name.

Facing pages. In double-sided, facing-pages mode, PageMaker returns the odd page number of any facing-page pair.


See also

The PGetMasterPage, PGetPages, and PGetPageNumbers queries


Comments or suggestions? Contact Adobe Developer Support
Copyright © 1997 - 2001 Adobe Systems Incorporated. All rights reserved.
Legal notices and trademark attributions