PInsertPages

Inserts pages into the current document. The pages can be inserted before the current spread, between the pages of the current spread, or after the current spread (a spread is a number of pages that can be viewed at once on the screen.)


Command constructors

PInsertPages::PInsertPages (short nHowMany,
								short cWhere,
								const char * sLeftMaster,
								const char * sRightMaster )

Insert nHowMany pages in the current publication.

nHowMany: The number of pages to insert.
cWhere: Where to insert the pages
kNewPagesBefore or 0 to insert the pages before the current pages
kNewPagesAfter or 1 to insert the pages after the current pages
kNewPagesBetween or 2 to insert the pages between the pages of the current spread
sLeftMaster: Name of the master page to use for the left hand pages.
sRightMaster: Name of the master page to use for the right hand pages.

Master Pages. An empty string for the master pages will assign the default master pages to the newly inserted pages.

Example. This example adds two new pages after the current page.

PInsertPages(2, kNewPagesAfter, "", "");


See also

The PPage and PShowPages commands.


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