Page related Commands
Page related Commands
- CurrentPage()
- Returns the Number of the current working Page. Pagenumbers are counted from 1 upwards.
- DeletePage(nr)
- Deletes the given Page, does nothing if the Document contains only one Page. Pagenumbers are counted from 1 upwards.
- GetAllObjects()
- Returns a List containing the Names of all Objects on the actual Page.
- GotoPage(nr)
- Moves to the Page "nr". If "nr" is outside the current rage of Pages nothing happens.
- NewPage(where, ["template"])
- Creates a new Page If "where" is -1 the new Page is appended to the Document, otherwise the new Page is inserted at "where". The Pagenumbers are counted from 1 upwards. The optional Parameter "template" specifies the Name of the Template Page for the new Page.
- PageCount()
- Returns the Number of Pages in the Document.
- PageDimensions()
- Returns a tuple with page domensions in used system e.g. when the document's page is in picas - picas are returned
- RedrawAll()
- Redraws all Pages.
- SetRedraw(bool)
- Disables Page Redraw when bool = 0, otherwise redrawing is enabled.
- SavePageAsEPS("name")
- Saves the actual Page as an EPS, returns true if successful.
- GetPageItems()
- Returns a list of tuples with items on the actual page. (name, objectType, order) E.g. [('Text1', 4, 0), ('Image1', 2, 1)] means that object named 'Text1' is a text frame (type 4) and is the first at the page...
- PageDimension()
- Returns a tupple with page dimensions in chosen measurements type (see e.g. GetUnit())