Таблица DocumentAPI.PageOrientation
Таблица PageOrientation содержит варианты ориентации страницы документа. Может быть использована для получения / установки ориентации страниц для секции или документа в методах Section:setPageOrientation(), Section:getPageOrientation().
| Значение | Описание |
|---|---|
DocumentAPI.PageOrientation_Landscape | Альбомная ориентация страницы |
DocumentAPI.PageOrientation_Portrait | Книжная ориентация страницы |
Примеры
local section = document:getBlocks():getBlock(0):getSection()
section:setPageOrientation(DocumentAPI.PageOrientation_Landscape)
print(section:getPageOrientation())
local section = document:setPageOrientation(DocumentAPI.PageOrientation_Portrait)
local section = document:getBlocks():getBlock(0):getSection()
print(section:getPageOrientation())