Deprecated
getAllStyles
getAllStyles() -> list
Deprecated. Use getParagraphStyles() instead.
getStyle
getStyle(["name"])
Deprecated. Use getParagraphStyle() instead.
newDoc
newDoc(size, margins, orientation, firstPageNumber, unit, facingPages, firstSideLeft) -> bool
WARNING: Obsolete procedure! Use newDocument instead.
Creates a new document and returns true if successful. The parameters have the following meaning:
size = A tuple (width, height) describing the size of the document. You can use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc.
margins = A tuple (left, right, top, bottom) describing the document margins
orientation = the page orientation - constants PORTRAIT, LANDSCAPE
firstPageNumer = is the number of the first page in the document used for pagenumbering. While you'll usually want 1, it's useful to have higher numbers if you're creating a document in several parts.
unit: this value sets the measurement units used by the document. Use a predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS.
facingPages = FACINGPAGES, NOFACINGPAGES
firstSideLeft = FIRSTPAGELEFT, FIRSTPAGERIGHT
The values for width, height and the margins are expressed in the given unit for the document. PAPER_* constants are expressed in points. If your document is not in points, make sure to account for this.
example: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, FACINGPAGES, FIRSTPAGERIGHT)
Obsolete function. Don't use it.
Obsolete function. Don't use it.
setStyle
setStyle("style" [, "name"])
Deprecated. Use setParagraphStyle() instead.
unGroupObjects
unGroupObjects("name")
Destructs the group the object "name" belongs to.If "name" is not given the currently selected item is used.
Constants
Document folds
PAGE_1
PAGE_2
PAGE_3
PAGE_4