Master pages

applyMasterPage

applyMasterPage(masterPageName, pageNumber)

Apply master page masterPageName on page pageNumber.

closeMasterPage

closeMasterPage()

Closes the currently active master page, if any, and returns editing to normal. Begin editing with editMasterPage().

createMasterPage

createMasterPage(pageName)

Creates a new master page named pageName and opens it for editing.

deleteMasterPage

deleteMasterPage(pageName)

Delete the named master page.

editMasterPage

editMasterPage(pageName)

Enables master page editing and opens the named master page for editing. Finish editing with closeMasterPage().

getMasterPage

getMasterPage(pageNr)

Returns the name of master page applied to page "nr".

May raise IndexError if the page number is out of range.

masterPageNames

masterPageNames()

Returns a list of the names of all master pages in the document.