Skip to main content

Метод Section:getPageProperties

Метод возвращает параметры страниц раздела DocumentAPI.PageProperties.

Пример​


local section = document:getBlocks():getBlock(0):getSection()
local properties = section:getPageProperties()
print(properties.width)
print(properties.height)
print(properties.margins.left)
print(properties.margins.top)