PRemovePages

Deletes the specified range of pages and their contents from the open publication.


Command constructor

PRemovePages(short nFirstPage, short nLastPage);
short nFirstPage;
The first number in the range of pages to remove
short nLastPage;
The last number in the range of pages to remove
Master pages. To delete a master page, use the PDeleteMasterPage command.

Automatic text rethread. When a page or range of pages is deleted, PageMaker automatically rethreads text that comes before and after the deleted pages, and then renumbers the remaining pages.

No warning message. Unlike its menu counterpart, the PRemovePages command does not ask you to verify the action before deleting the pages.

Layout view only. The PRemovePages command works only in layout view.

Example. The following example deletes pages 3 and 4 and their contents from the open publication.

PRemovePages(3, 4);


See also

The PCut, PClear, and PDeleteMasterPage commands

The PGetPages query

Adobe PageMaker 6.5 Help > Commands > Layout > Remove Pages


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

Comments or suggestions? Contact Adobe Developer Support