GetPageHeight
Gets page height for current section.
Syntax
expression.GetPageHeight();
expression
- A variable that represents a ApiSection class.
Parameters
This method doesn't have any parameters.
Returns
Example
This example shows how to get the page height.
- Code
- Result
// How to get the page height.
// Get the final section of the page and get its height.
let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
let section = doc.GetFinalSection();
let height = section.GetPageHeight();
paragraph.AddText("Page height = " + height);