GetPageWidth
function GetPageWidth(): twips
Description
Gets page width for current section.
Returns
twips
Try It
var oDocument = Api.GetDocument();
var oParagraph = oDocument.GetElement(0);
var oSection = oDocument.GetFinalSection();
var nWidth = oSection.GetPageWidth();
oParagraph.AddText("Page width = " + nWidth);