PSaveAsMasterPage

Copies the content, guides, and margins of the current pages to the specified master page, either creating a new master or overwriting an existing one.


Command constructor

PSaveAsMasterPage(const char * sMasterName, PMBool bOverwrite);
const char * sMasterName;
Name of new master page (maximum of 31 charac ters)
PMBool bOverwrite;
false to leave existing master unchanged (if one exists with same name)
true to overwrite existing master (if one exists with same name)
Layout view only. The PSaveAsMasterPage command works only in layout view.

Facing pages. If a two-page spread is currently displayed, PSaveAsMasterPage creates a two-page master spread. If a single page is displayed, PSaveAsMasterPage creates a single master page.

Unique name. When you copy a page to a new master page, be sure you are not overwriting an existing one. Use the PGetMasterPageList to determine the names of all existing master pages.

Example. Copies the content, guides, and margins of the current page to a new master named "Chapter." If an existing master already has the name "Chapter," the PSaveAsMasterPage overwrites it.

PSaveAsMasterPage("Chapter", true);


See also

The PDefineMasterPage, PDeleteMasterPage, PMasterPage, and PRenameMasterPage commands

The PGetMasterPage and PGetMasterPageInfo 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