Syntax: getPageHeight(
document)
Returns: the distance between the top and bottom margins, in points
This function returns the height of a document's "live area", the distance between the top and bottom margins of the document.
Example:
It is often convenient to retrieve the dimensions of the live area of a document and store them in Lingo variables for use in subsequent calculations. The following example creates two linked frames on the page, for formatting printed output into two columns.
-- create two new frames on the page
-- with 1/2 inch (36 points) in between
set w = getPageWidth(doc)
set h = getPageHeight(doc)
newFrame doc, Rect(0,0,(w/2)-18,h), TRUE
newFrame doc, Rect(0,0,(w/2)+18,h), TRUE