PMasterPage

Applies the named master pages to the range of pages specified (or to the current pages if you do not include a range).


Command constructor

PMasterPage(const char * sLeftMaster, const char * sRightMaster = NULL, const char * sRange = NULL, PMBool bKeepGuides = false, PMBool bKeepColumns = false, PMBool bAdjustLayout = false);
const char * sLeftMaster;
Name of master page to apply to left pages (or to single pages for single-sided publications)
Specify an empty string ("") to leave left page unchanged or if applying master to right page only.
const char * sRightMaster;
Name of master page to apply to right pages
Specify an empty string ("") to leave right page unchanged or for single-sided publications
const char * sRange;
Range of pages to apply masters to (e.g., "1-5, 17-21, 44-49")
"all" to apply specified masters to all pages
Specify an empty string ("") to apply specified masters to the current page or pages.
PMBool bKeepGuides;
true Pages to which no master page is applied ("None" is applied) keep ruler guides
false ruler guides are removed
PMBool bKeepColumns;
true Pages to which no master page is applied ("None" is applied) keep their column settings
false column settings are removed
PMBool bAdjustLayout;
true automatically adjust the page layout to the new master page
false do not adjust the page layout to the new master page
Specifying ranges. The value of sRange can be a single range (e.g., "1-10") or several ranges (e.g., "1-5, 8-10, 13-14"). Use commas to separate the ranges. A maximum of 64 characters is allowed. The range must be valid or PageMaker returns an error (e.g., you can't specify "1-14" for a 10-page publication).

None and Document master. To apply None or Document master to a page, do not include the brackets that enclose the names in the menu. For example:

PMasterPage("None", "Document master", "5-10");

Example. The following example applies "Ad layout"to left pages and "Editorial" master to right pages, for the pages from 1 to 100.

PMasterPage("Ad layout", "Editorial", "1-100");


See also

The PDefineMasterPage, PDeleteMasterPage, PRenameMasterPage, and PSaveAsMasterPage commands

The PGetMasterPage, PGetMasterPageInfo, and PGetMasterPageList queries

Adobe PageMaker 6.5 Help > Commands > Window > Master Pages


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

Comments or suggestions? Contact Adobe Developer Support