Copy link to clipboard
Copied
How to add master pages and it apply on pages in indesign document using indesign sdk functions by programatically.
For example , creating new document and add number of pages in it by using below code :
InterfacePtr<ICommand> newDocCmd(Utils<IDocumentCommands>()->CreateNewCommand(uiflags));
InterfacePtr<INewDocCmdData> newDocCmdData(newDocCmd, UseDefaultIID());
newDocCmdData->SetCreateBasicDocument(kFalse);
newDocCmdData->SetNumPages(numPages);
I want to know about master pages like this...
Copy link to clipboard
Copied
To create new masterspread you can use kNewMasterSpreadCmdBoss command. Within this boss class is an interface IMasterSpreadCmdData using which you can set the no. of pages, position and the base name of the master spread
Once the master spread is created then you can apply it to pages of your document. Do the following
-Manan
Copy link to clipboard
Copied
There should also be some command to indirectly invoke SetMasterPageData.
Copy link to clipboard
Copied
Very rightly pointed @Dirk Becker, that would be kApplyMasterSpreadCmdBoss
-Manan