Skip to main content
Known Participant
July 11, 2008
Question

[CS3] Inserting Pages: Master?

  • July 11, 2008
  • 1 reply
  • 269 views
Hello,

I want to insert pages in a document via InDesign SDK.

For this I need a list of the available "Masters".

How can I get a list of them?

Alois Blaimer
This topic has been closed for replies.

1 reply

Participating Frequently
July 12, 2008
Hello Mr. Blaimer,<br /><br />"IMasterSpreadList" interface would be a solution you are looking for. <br /><br />Sample code snippet <br /><br />InterfacePtr<IMasterSpreadList> ptrSpreadList(refDoc, IID_IMASTERSPREADLIST);<br />if(nil == ptrSpreadList)<br /> break;<br /> <br />int32 nNum = ptrSpreadList->GetMasterSpreadCount();<br /><br />I hope this helps<br /><br />Regards<br />- Amit Gupta<br />Indesign Colsultant<br />www.metadesignsolutions.com