Sets the distance, in twips, of a header or footer to the top or bottom of the page.

<void> HeaderFooter.setDistance(<Number> distance, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

Parameter Description
distance Specifies the distance, in twips, of a header or footer to the top or bottom of the page.
callback Optional. Is called when the operation completed.
errorCallback Optional. Is called when the operation failed with an error.