You are on page 1of 1

CHAPTER 1: Layout Spreads and pages 18

NOTE: IPageList does not list master pages (the pages owned by master spreads). It lists only pages owned
by spreads (kSpreadBoss).

To iterate through all pages in a spread, use ISpread.

Sample code

CHMLFiltImportProvider::LoadImage

Related APIs

 IPageList

 ISpread

 kPageBoss

Rearranging pages
You can rearrange the order of pages in a document.

Solution

Use kMovePageCmdBoss.

Related APIs

 IPageList

 kPageBoss

Copying a page
You can duplicate a page together with the page items on it.

Solution

To append the duplicated page to the target document, use kCreatePageFromPageCmdBoss.

To control the spread in which the duplicate is made, do one of the following:

 Create a new spread for the page using kNewSpreadCmdBoss.

 Process kDuplicatePageCmdBoss.

Related API

kPageBoss

You might also like