Professional Documents
Culture Documents
Solutions 16
Solutions 16
Solution
To append the duplicated spread to the spread list (ISpreadList) in the target document, process
kCreateSpreadFromSpreadCmdBoss.
1. Process kNewSpreadCmdBoss to create a new spread at a position of your choice in the target
document’s spread list.
Related documentation
Sample code
SnpInspectLayoutModel
In the “Layout Fundamentals” chapter of Adobe InDesign Programming Guide, see two examples: “Code
that Iterates through Spreads and Visits their Children via IHierarchy” and “Code that Iterates through
Spreads and Filters Items by Page via ISpread.”
A page (kPageBoss) is characterized by the IMasterPage interface. A UIDRef that can instantiate an
IMasterPage interface is a page.
If you have a document (see “Acquiring a reference to a document”) and want to iterate through its pages,
use IPageList. See “Acquiring a reference to a page”.
If you have a spread (see “Acquiring a reference to a spread”) and want to iterate through its pages, use the
following:
ISpread::QueryPagesLayer provides access to the spread layer that stores the pages on its IHierarchy.
The child boss objects of this spread layer are the pages owned by the spread.
If you have a page item and want to know the page, if any, on which it lies or is drawn, use the following: